/* Tacticon Systems — site.css
   Monochrome UI. --signal appears only in tiny doses (focus, live dot, link underline). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrainsmono-var-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E1010;
  --graphite: #181B1C;
  --line: #30353A;
  --mute: #9AA0A2;
  --bone: #E9E7E2;
  --signal: #C2A878;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1320px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --gutter: max(var(--pad), calc((100vw - var(--max)) / 2));
  --gap: clamp(1rem, 2vw, 2rem);
  --section: clamp(5.5rem, 12vw, 10.5rem);
  --nav-h: 4.75rem;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
  background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.55 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, picture, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--bone); color: var(--ink);
  font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Type helpers ---------- */
.mono, .kicker, .btn, .hud {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mono { color: var(--mute); }
.kicker {
  display: flex; align-items: center; gap: 1rem;
  color: var(--bone); opacity: .85; font-weight: 500;
}
.kicker::before { content: ""; width: 2rem; height: 1px; background: var(--bone); opacity: .7; }

.link {
  text-decoration: underline; text-decoration-color: var(--signal);
  text-decoration-thickness: 1px; text-underline-offset: .28em;
  transition: text-decoration-thickness .2s var(--ease);
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .875rem;
  padding: 1.05rem 1.5rem;
  background: transparent; color: var(--bone);
  border: 1px solid var(--bone); border-radius: 0;
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--bone); color: var(--ink); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn--sm { padding: .625rem 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.js .nav, .nav--solid { position: fixed; }
.nav.is-solid, .nav--solid { background: rgba(14, 16, 16, .94); border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* Logo: the SVG file is used as a mask so currentColor (bone) controls its colour. */
.logo {
  display: block; flex: none; height: 2.5rem; aspect-ratio: 896.86 / 166.21; color: var(--bone);
  background-color: currentColor;
  -webkit-mask: url("../img/logo-horizontal.svg") center / contain no-repeat;
  mask: url("../img/logo-horizontal.svg") center / contain no-repeat;
}
.logo--foot { height: 3.5rem; }
.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav__links a:not(.btn) {
  font-size: .9375rem; color: var(--bone); opacity: .8; text-decoration: none;
  text-decoration-color: var(--signal); text-underline-offset: .4em; text-decoration-thickness: 1px;
  transition: opacity .2s;
}
.nav__links a:not(.btn):hover { opacity: 1; text-decoration: underline; }

/* ---------- Media layers (video + poster) ---------- */
.media {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 30%, #2a2f27 0%, #141612 55%, var(--ink) 100%);
}
.media picture, .media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video { opacity: 0; transition: opacity 1s var(--ease); }
.media.is-playing video { opacity: 1; }
.shade { position: absolute; inset: 0; background: rgba(14, 16, 16, .1); }
/* Hero: light top fade for the nav, plus a localised gradient behind the text block (bottom-left). */
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 16, 16, .5) 0, rgba(14, 16, 16, 0) 18%),
    radial-gradient(ellipse 80% 90% at 0% 100%, rgba(14, 16, 16, .86) 0, rgba(14, 16, 16, .68) 45%, rgba(14, 16, 16, 0) 100%),
    linear-gradient(to top, rgba(14, 16, 16, .5) 0, rgba(14, 16, 16, 0) 30%);
}
.grain {
  position: absolute; inset: -64px; pointer-events: none;
  background: url("../img/grain.png") repeat;
  opacity: .08;
  animation: grain .9s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  17%  { transform: translate(-24px, 18px); }
  33%  { transform: translate(30px, -40px); }
  50%  { transform: translate(-48px, -12px); }
  67%  { transform: translate(14px, 44px); }
  83%  { transform: translate(40px, 8px); }
}

/* ---------- HUD (telemetry text + clock; illustrative, aria-hidden). Tracking boxes are baked into the video. ---------- */
.hud { position: absolute; inset: 0; pointer-events: none; color: var(--bone); font-size: .6875rem; }
.hud__tele { position: absolute; top: calc(var(--nav-h) + 1.75rem); left: var(--gutter); color: var(--bone); opacity: .75; }
.hud__clock { position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 4vh, 3rem); display: flex; align-items: center; gap: .625rem; color: var(--bone); opacity: .85; font-variant-numeric: tabular-nums; }
.hud__clock[hidden] { display: none; }
.hud__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
}
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 6rem); padding-bottom: clamp(5.5rem, 14vh, 9rem); }
.hero h1 {
  margin-top: 1.5rem; max-width: 17em;
  font-size: clamp(2.6rem, 6.5vw, 6rem); font-weight: 500; font-stretch: 112%;
  line-height: 1.02; letter-spacing: -.02em; text-wrap: balance;
}
.hero__sub { margin-top: 2rem; max-width: 34rem; color: var(--bone); opacity: .9; text-shadow: 0 1px 14px rgba(14, 16, 16, .6); }
.hero > .media, .hero > .shade { z-index: -2; }
.hero > .vignette, .hero > .grain { z-index: -1; }
.hero > .hud { z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise--2 { animation-delay: .12s; }
  .rise--3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); border-top: 1px solid var(--line); }
.section--alt { background: var(--graphite); }
.section__body { grid-column: 4 / 13; }

/* Section head: small mono number above a large sentence-case H2 */
.sec-head { grid-column: 1 / 4; }
.sec-num { margin: 0 0 1rem; font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.sec-title { font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; }
.sec-head--row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head--row > div { grid-column: 1 / 7; }
.sec-intro { grid-column: 8 / 13; color: var(--mute); max-width: 30rem; }

.statement {
  max-width: 24em;
  font-size: clamp(2.2rem, 4.2vw, 3.75rem); font-weight: 400; font-stretch: 108%;
  line-height: 1.16; letter-spacing: -.02em; text-wrap: pretty;
}
.body-copy { margin-top: clamp(2rem, 4vw, 3.25rem); max-width: 40rem; color: var(--bone); opacity: .8; }

/* Capabilities */
.tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tile__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media::before, .tile__media::after {
  content: ""; position: absolute; width: .875rem; height: .875rem; border: 0 solid var(--bone);
  opacity: 0; transition: opacity .3s var(--ease); z-index: 1;
}
.tile__media::before { top: 1rem; left: 1rem; border-top-width: 1px; border-left-width: 1px; }
.tile__media::after { bottom: 1rem; right: 1rem; border-bottom-width: 1px; border-right-width: 1px; }
.tile:hover .tile__media::before, .tile:hover .tile__media::after { opacity: .7; }
.tile h3 { margin-top: 1.5rem; font-size: 1.375rem; font-weight: 500; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.2; }
.tile p { margin-top: .625rem; max-width: 24rem; color: var(--mute); font-size: 1rem; line-height: 1.55; }
.tile strong, .principle strong { font-weight: 400; color: var(--bone); }
@media (prefers-reduced-motion: no-preference) {
  .tile__media img { animation: drift 34s ease-in-out infinite alternate; }
  .tile:nth-child(2) .tile__media img { animation-duration: 40s; animation-delay: -9s; }
  .tile:nth-child(3) .tile__media img { animation-duration: 37s; animation-delay: -17s; }
  .tile:nth-child(4) .tile__media img { animation-duration: 43s; animation-delay: -5s; }
  @keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, -1.5%, 0); } }
}

/* Interstitial */
.inter { position: relative; overflow: hidden; isolation: isolate; min-height: 70vh; min-height: 70svh; display: flex; align-items: center; border-top: 1px solid var(--line); padding-block: var(--section); }
.inter > .media, .inter > .shade { z-index: -2; }
.inter > .vignette, .inter > .grain { z-index: -1; }
.inter .vignette {
  background:
    radial-gradient(ellipse 70% 110% at 0% 50%, rgba(14, 16, 16, .72) 0, rgba(14, 16, 16, .45) 45%, rgba(14, 16, 16, 0) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(14, 16, 16, 0) 55%, rgba(14, 16, 16, .35) 100%);
}
.inter__text { position: relative; z-index: 2; }
.statement--xl { grid-column: 1 / -1; max-width: 15em; font-size: clamp(2.1rem, 5vw, 4.5rem); font-weight: 500; font-stretch: 112%; line-height: 1.06; }
.statement--xl .line { display: block; text-wrap: balance; }
.statement--xl .line + .line { margin-top: .35em; color: var(--mute); }

/* Principles */
.principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.principle { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.principle h3 { font-size: 1.375rem; font-weight: 500; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.2; }
.principle p { margin-top: .75rem; color: var(--mute); font-size: 1rem; line-height: 1.55; max-width: 30rem; }

/* Contact */
.contact { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); }
.contact .sec-head { grid-column: auto; }
.contact__sub { margin-top: 1.5rem; max-width: 26rem; color: var(--mute); }

.field { display: block; margin-bottom: 1.75rem; }
.field > span:first-child { display: block; margin-bottom: .25rem; font: 500 .6875rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--bone); font: inherit; font-size: 1.0625rem;
  transition: border-color .2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--mute); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--bone); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--ink) inset; -webkit-text-fill-color: var(--bone); caret-color: var(--bone); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 1.75rem; cursor: pointer; }
.field select:invalid { color: var(--mute); }
.field option { background: var(--graphite); color: var(--bone); }
.select { display: block; position: relative; }
.select::after { content: ""; position: absolute; right: .25rem; top: 50%; width: .45rem; height: .45rem; margin-top: -.4rem; border-right: 1px solid var(--bone); border-bottom: 1px solid var(--bone); transform: rotate(45deg); pointer-events: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 1.5rem 0 .5rem; min-height: 65px; }
.form__consent { margin: .5rem 0 2rem; font-size: .875rem; line-height: 1.5; color: var(--mute); }
.form__consent a { color: var(--bone); }
.form__status { margin-top: 1.5rem; min-height: 1.5em; font-size: .9375rem; }
.form__status.is-ok, .form__status.is-err { padding-left: 1rem; border-left: 1px solid var(--signal); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; font-size: .8125rem; line-height: 1.6; color: var(--mute); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer__name { margin-bottom: .875rem; color: var(--bone); }
.footer__legal { max-width: 46rem; font-size: .75rem; line-height: 1.65; overflow-wrap: anywhere; }
.footer__meta { display: flex; gap: 1.75rem; align-items: flex-start; }
.footer a { color: var(--bone); text-underline-offset: .3em; text-decoration-color: var(--line); }
.footer a:hover { text-decoration-color: var(--signal); }

/* ---------- Prose pages (privacy, 404) ---------- */
.page { padding-top: calc(var(--nav-h) + clamp(4rem, 9vw, 8rem)); padding-bottom: var(--section); }
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; margin-top: 1.25rem; }
.prose h2 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.25rem; font-weight: 500; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.3; }
.prose p, .prose li { margin-top: .9rem; font-size: 1rem; line-height: 1.65; color: var(--bone); opacity: .88; }
.prose ul { margin-top: .5rem; padding-left: 1.1rem; list-style: square; }
.prose li { margin-top: .4rem; }
.prose li::marker { color: var(--mute); }
.entity { margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.entity div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.entity dt { font: 500 .75rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.entity dd { margin: 0; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.prose .mono { display: block; margin-top: 1.5rem; opacity: 1; font-size: .75rem; }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: .28em; }
.notfound { min-height: calc(100vh - 12rem); display: flex; align-items: center; }
.notfound .btn { margin-top: 2.5rem; }

/* ---------- Reveal on scroll (JS only; visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .08s; }
  .js .reveal.d2 { transition-delay: .16s; }
  .js .reveal.d3 { transition-delay: .24s; }
  .js .words .w { opacity: .14; transition: opacity .6s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
  .js .words.in .w { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}
@media (max-width: 900px) {
  .sec-head { grid-column: 1 / -1; margin-bottom: 2.5rem; }
  .section__body { grid-column: 1 / -1; }
  .sec-head--row { display: block; }
  .sec-head--row > div { margin-bottom: 1.25rem; }
  .sec-intro { max-width: 34rem; }
  .contact .sec-head { margin-bottom: 0; }
  .principles { grid-template-columns: 1fr; row-gap: 2rem; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 4.25rem; }
  .nav__links a:not(.btn) { display: none; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero__content { padding-bottom: 6rem; }
  .hero > .vignette {
    background:
      linear-gradient(to bottom, rgba(14, 16, 16, .5) 0, rgba(14, 16, 16, 0) 18%),
      linear-gradient(to top, rgba(14, 16, 16, .88) 0, rgba(14, 16, 16, .78) 45%, rgba(14, 16, 16, 0) 85%);
  }
  .tiles { grid-template-columns: 1fr; }
  .tile__media { aspect-ratio: 4 / 3; }
  .row { grid-template-columns: 1fr; }
  .hud__tele { font-size: .625rem; }
  .footer__meta { width: 100%; }
  .logo { height: 2.125rem; }
  .logo--foot { height: 2.75rem; }
  .entity div { grid-template-columns: 1fr; gap: .125rem; }
}

/* ---------- Reduced motion: static page ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .hud__dot { animation: none; }
  .tile__media img { animation: none; }
  .btn, .btn__arrow, .nav { transition: none; }
}
