html, body { background: #000; }

/*
  Direction: a defence-technology company whose subject is the Renaissance.
  Black ground, hard edges, grotesque type, mono readouts, one amber signal
  colour. The art is literal: Michelangelo's marble and real oil paintings,
  read by machine vision.

  Function stays conventional: the offer, navigation, buttons and form look
  and behave the way people expect. Phone layout is the base.
*/
:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0b0b0b;
  --line: rgba(255, 255, 255, .16);
  --fg: #fff;
  --dim: rgba(255, 255, 255, .68);
  --amber: #ffb000;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --dock: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; overflow-x: clip; color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--amber); color: #000; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--amber); color: #000; transform: translateY(-200%); }
.skip:focus { transform: none; }

.wrap { width: min(100%, 1480px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

h1, h2 {
  font-weight: 600; font-stretch: 112%; text-transform: uppercase;
  letter-spacing: -.012em; line-height: 1; text-wrap: balance;
}
h2 { font-size: clamp(2rem, 8.4vw, 4.6rem); }

.label, dt {
  font-family: var(--mono); font-size: .75rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .07em;
}
.label { display: flex; gap: 12px; color: var(--dim); }
.label span { color: var(--amber); }
.body { color: var(--dim); font-size: 1.08rem; line-height: 1.5; max-width: 38rem; text-wrap: pretty; }
.hot { color: var(--amber); }
.live { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--amber); vertical-align: .06em; animation: blink 2.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .3; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid #fff; border-radius: 0; background: #fff; color: #000; cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--amber); border-color: var(--amber); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn.ghost:hover { background: #fff; color: #000; border-color: #fff; }
.btn.small { min-height: 44px; padding: 0 16px; }
.btn small { font: inherit; font-size: .68rem; opacity: .68; }

/* ---------- header ---------- */
.mark { width: 12px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; overflow: visible; }
.mark-hot { stroke: var(--amber); }
.bar {
  position: absolute; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter-r) 10px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; text-decoration: none; font-weight: 600; font-stretch: 125%; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.links, .bar .btn { display: none; }

/* ---------- phone dock ---------- */
.dock {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 8px var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 8px) var(--gutter);
  background: #000; border-top: 1px solid var(--line); transition: transform .2s ease;
}
.dock.away { transform: translateY(115%); }
.dock-link { display: flex; align-items: center; min-height: 48px; padding-right: 8px; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 190svh; background: #000; }
.pin { position: sticky; top: 0; height: 100svh; min-height: 480px; overflow: hidden; background: #000; isolation: isolate; }
.poster { position: absolute; z-index: 0; left: 50%; top: 2%; width: min(120vw, 66svh); height: auto; transform: translateX(-50%); transition: opacity .5s; }
.poster.gone { opacity: 0; }
#bust { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }

.hud { position: absolute; inset: 66px var(--gutter-r) auto auto; z-index: 2; pointer-events: none; }
.readout { display: grid; gap: 3px; font-family: var(--mono); font-size: .68rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; text-align: right; color: var(--dim); }
.readout div { display: flex; gap: 10px; justify-content: flex-end; }
.readout dt { font-size: inherit; color: rgba(255, 255, 255, .55); }
.readout dd { color: #fff; }
.readout div:nth-child(n+3) { display: none; }

.pin::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .92) 58%); }
.hero-copy {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter-r);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--dock) + 18px); display: grid; gap: 12px;
}
h1 { font-size: clamp(2.05rem, 10.1vw, 3.4rem); line-height: .98; text-shadow: 0 0 22px #000, 0 0 6px #000; }
.lede { font-size: 1rem; line-height: 1.38; color: rgba(255, 255, 255, .86); max-width: 34rem; text-shadow: 0 0 12px #000; text-wrap: pretty; }
.actions { display: none; flex-wrap: wrap; gap: 10px; }
.telemetry { display: none; }

html.js h1, html.js .lede, html.js .actions, html.js .telemetry { animation: up .9s var(--ease) backwards; }
html.js .lede { animation-delay: .08s; }
html.js .actions { animation-delay: .14s; }
html.js .telemetry { animation-delay: .25s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }

/* ---------- mission: the art leads, two lines of type ---------- */
.mission { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: flex-end; padding: 92vw 0 40px; border-top: 1px solid var(--line); background: #000; }
.radar { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.mission-grid { position: relative; z-index: 1; display: grid; gap: 28px; width: 100%; }
.mission-text { display: grid; gap: 12px; align-content: end; }
.mission h2 { font-size: clamp(1.8rem, 8.2vw, 3.7rem); text-shadow: 0 0 18px #000, 0 0 5px #000; }
.lead { font-size: clamp(1.02rem, 4.2vw, 1.3rem); line-height: 1.35; color: rgba(255, 255, 255, .86); max-width: 30em; text-shadow: 0 0 12px #000; }
.flux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 12px 16px 8px; background: #000; outline: 1px solid var(--line); }
.flux div { display: grid; grid-auto-rows: 38px; }
.flux dt, .flux dd { display: flex; align-items: center; height: 38px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.flux dt { color: #fff; }
.flux dd { color: #fff; }
.flux dd:last-child { border-bottom: 0; }
.flux .moving dt { color: var(--amber); }
.flux .moving dd { color: rgba(255, 255, 255, .62); }

/* ---------- systems ---------- */
.systems { padding: 72px 0 72px; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; margin-bottom: 40px; }
.target { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.fleet { border-top: 1px solid var(--line); }
.sys { display: grid; grid-template-columns: 64px 1fr; gap: 12px 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.logo { width: 64px; height: 64px; border-radius: 14px; }
h3 { font-weight: 600; font-stretch: 112%; font-size: clamp(1.6rem, 7vw, 2.3rem); line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.desc { grid-column: 1 / -1; color: rgba(255, 255, 255, .78); font-size: 1.08rem; line-height: 1.45; max-width: 34rem; text-wrap: pretty; }
.acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.table { border-top: 1px solid var(--line); }
.table div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.table dt { color: var(--dim); }
.table dd { font-size: .98rem; min-width: 0; overflow-wrap: anywhere; }

/* ---------- stack ---------- */
.stack { padding: 72px 0; border-top: 1px solid var(--line); }
.stack-grid { display: grid; gap: 28px; }
.orrery { position: relative; }
.orrery canvas { display: block; width: 100%; max-width: 74svh; margin: 0 auto; aspect-ratio: 1; }
.orrery figcaption { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.orrery figcaption span:first-child { color: var(--amber); }
.term { min-width: 0; background: #060606; outline: 1px solid var(--line); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.term-bar i { width: 8px; height: 8px; background: rgba(255, 255, 255, .22); }
.term-bar span { margin-left: 8px; }
.tree { margin: 0; padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: .86rem; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.tree .l { display: inline; }
.tree em { font-style: normal; font-weight: 500; color: var(--amber); }
.tree b { font-weight: 400; color: var(--amber); }
.tree .off { visibility: hidden; }
.cursor { display: inline-block; width: .6em; height: 1.05em; vertical-align: text-bottom; background: var(--amber); animation: blink 1.1s steps(2, jump-none) infinite; }

/* ---------- contract ---------- */
.contract { padding: 72px 0 calc(var(--dock) + 56px); border-top: 1px solid var(--line); }
.contract-grid { display: grid; gap: 40px; }
.contract-text { display: grid; gap: 22px; align-content: start; }
.contract h2 { font-size: clamp(1.9rem, 10.4vw, 6.4rem); }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; border-top: 1px solid var(--line); }
.caps li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-stretch: 112%; text-transform: uppercase; font-size: .92rem; }
.trust a { text-underline-offset: 3px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.field em { font-style: normal; opacity: .68; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 0; background: var(--panel); color: #fff;
  font: inherit; font-size: 17px; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; line-height: 1.45; }
.field select { background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%); background-size: 6px 6px; background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: 0; }
.field :user-invalid { border-color: #ff5b4a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.form-foot p { color: var(--dim); font-size: .95rem; }
.after { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--amber); font-family: var(--mono); font-size: .86rem; line-height: 1.45; }
.after[hidden], .ways[hidden] { display: none; }
.ways { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
.foot { padding: 34px var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + var(--dock) + 22px) var(--gutter); border-top: 1px solid var(--line); overflow: hidden; }
.wordmark { font-weight: 600; font-stretch: 125%; font-size: 5.72vw; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.foot-grid { display: grid; gap: 14px; margin-top: 24px; color: var(--dim); font-size: .92rem; line-height: 1.45; }
.foot-grid ul { display: flex; flex-wrap: wrap; gap: 0 20px; font-family: var(--mono); font-size: .8rem; }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-underline-offset: 3px; }

/* ---------- tablet and up ---------- */
@media (min-width: 760px) {
  body { font-size: 18px; }
  :root { --gutter: max(36px, env(safe-area-inset-left, 0px)); --gutter-r: max(36px, env(safe-area-inset-right, 0px)); --dock: 0px; }
  .dock { display: none; }
  .bar {
    position: fixed; padding-top: 10px; padding-bottom: 10px;
    border-bottom: 1px solid transparent; transition: background .2s, border-color .2s;
  }
  body.scrolled .bar { background: #000; border-bottom-color: var(--line); }
  .links { display: flex; gap: 2px; margin-left: auto; }
  .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-family: var(--mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--dim); transition: color .15s; }
  .links a:hover, .links a.on { color: #fff; }
  .bar .btn { display: inline-flex; }

  .pin::after { display: none; }
  .poster { left: 66%; top: 7%; width: min(58vw, 90svh); }
  .hud { inset: 84px var(--gutter-r) auto auto; }
  .readout div:nth-child(n+3) { display: flex; }

  .hero-copy { left: var(--gutter); right: auto; bottom: 100px; width: min(47vw, 44rem); gap: 18px; }
  h1 { font-size: min(5.1vw, 10svh); }
  .lede { font-size: 1.12rem; max-width: 29rem; }
  .actions { display: flex; }
  .telemetry {
    position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter-r); bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 12px 0 14px; border-top: 1px solid var(--line);
    background: #000; box-shadow: -100vw 0 0 #000, 100vw 0 0 #000;
  }
  .telemetry div { display: grid; gap: 3px; }
  .telemetry dt { color: rgba(255, 255, 255, .6); font-size: .66rem; }
  .telemetry dd { font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; }

  .mission { padding: 110px 0 44px; }
  .sec-head { margin-bottom: 64px; }
  .systems { padding: 110px 0; }
  .stack { padding: 110px 0; }
  .contract { padding: 110px 0; }
  .foot { padding-bottom: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr auto; gap: 30px; }
}

@media (min-width: 1000px) {
  .mission-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 72px; align-items: end; }
  .stack-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .tree { font-size: .9rem; line-height: 1.52; }
  .sys { grid-template-columns: 72px minmax(0, 3.2fr) minmax(0, 4fr) minmax(0, 4.6fr); gap: 24px; padding: 28px 0; }
  .logo { width: 72px; height: 72px; border-radius: 16px; }
  .desc, .acts { grid-column: auto; }
  .desc { font-size: 1.04rem; }
  .acts { justify-content: flex-end; }
  .contract-grid { grid-template-columns: 5fr 6fr; gap: 64px; }
  .form { grid-template-columns: 1fr 1fr; align-content: start; }
  .wide { grid-column: 1 / -1; }

  .sec-head { grid-template-columns: 7fr 4fr; gap: 18px 56px; align-items: end; }
  .sec-head .label { grid-column: 1 / -1; }
  .sec-head { grid-template-columns: 1fr; }
  }

@media (max-height: 500px) {
  .pin { min-height: 0; }
  #bust { opacity: .4; }
  .poster, .hud, .telemetry { display: none; }
  .hero-copy { bottom: calc(var(--dock) + 16px); }
  h1 { font-size: min(9svh, 5vw); }
  .lede { font-size: .95rem; }
}

@media (min-width: 1800px) { html { font-size: 19px; } }

/* ---------- reduced motion ---------- */
html.calm .hero { height: 100svh; }
html.calm .live { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
