/* DEFCON CONSULTING LTD — site styles. No external resources: fonts are self-hosted (SIL OFL).
   Layout concept: one fixed 3D stage behind the page; transparent chapters scroll over it,
   each with a dark scrim on the side that carries the text. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-veil: rgba(5, 6, 7, 0.9);
  --ink: #eef1f3;
  --muted: #9aa5ae;
  --dim: #5e6971;
  --line: rgba(238, 241, 243, 0.1);
  --line-strong: rgba(238, 241, 243, 0.22);
  --signal: #ffb020;
  --signal-ink: #140c00;
  --cold: #79b8d4;
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--signal); color: var(--signal-ink); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.display {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 640;
  letter-spacing: -0.028em; line-height: 1; text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* ---------- Stage ---------- */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.no-webgl .stage { display: none; }
.no-webgl body { background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(121, 184, 212, 0.08), transparent 60%), var(--bg); }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: rgba(5, 6, 7, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: opacity .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
.brand-dot { fill: var(--signal); }
.brand-word { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 16px; letter-spacing: 0.16em; line-height: 1; display: flex; flex-direction: column; gap: 5px; }
.brand-sub { font-family: var(--font-mono); font-stretch: 100%; font-weight: 400; font-size: 9.5px; letter-spacing: 0.42em; color: var(--muted); text-transform: uppercase; }

/* ---------- The one button: used everywhere ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 13px 20px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--line-strong); background: rgba(5, 6, 7, 0.45);
  transition: border-color .2s, color .2s, background-color .2s;
}
.btn span { color: var(--signal); transition: transform .25s var(--ease); }
.btn:hover { border-color: var(--signal); color: var(--signal); background: rgba(255, 176, 32, 0.06); }
.btn:hover span { transform: translateX(4px); }

/* ---------- Console frame (fixed, decorative) ---------- */
.hud { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.hud-corner { position: absolute; width: 22px; height: 22px; border-color: var(--line-strong); border-style: solid; border-width: 0; }
.hud-corner.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.hud-corner.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.hud-corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.hud-section, .hud-clock {
  position: absolute; bottom: 18px; margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums;
}
.hud-section { left: 46px; }
.hud-section span { color: var(--ink); }
.hud-clock { right: 46px; }

/* ---------- Panels: every section shares one layout, text bottom-left over the swarm ---------- */
.panel {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(84px, 12vh, 130px);
}
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5, 6, 7, 0) 0%, rgba(5, 6, 7, 0.85) 14%, rgba(5, 6, 7, 0.6) 32%, rgba(5, 6, 7, 0) 52%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.7) 0%, rgba(5, 6, 7, 0) 50%);
}
.panel-inner { position: relative; }
.label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal);
}
.label b { font-weight: 500; color: var(--ink); padding-right: 12px; border-right: 1px solid var(--line-strong); }
.status-dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}
.brand-title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 720; text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 6rem); line-height: 0.86; letter-spacing: -0.01em; margin-bottom: 26px;
}
.tagline {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 560; text-transform: uppercase;
  font-size: clamp(0.8rem, 1.3vw, 1.2rem); letter-spacing: 0.2em; line-height: 1.4; color: var(--signal);
}
.tagline::before { content: ""; width: 40px; height: 1px; background: currentColor; flex: none; }
.title { font-family: var(--font-display); font-stretch: 112%; font-weight: 640; letter-spacing: -0.028em; line-height: 1; text-wrap: balance;
  font-size: clamp(2.4rem, 5.6vw, 5.6rem); max-width: 13ch; margin-bottom: 22px; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.22rem); max-width: 560px; text-wrap: pretty; }
.hero .lead { color: var(--ink); max-width: 640px; }
/* The intro is shorter than the screen: the wave starts just under the header and the cards follow the button closely */
.panel.hero { min-height: 80vh; min-height: 80svh; padding-top: calc(var(--header-h) + 32px); padding-bottom: clamp(36px, 5vh, 56px); }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-address { color: var(--ink); font-size: clamp(1.2rem, 2.6vw, 2rem); letter-spacing: -0.01em; user-select: all; }
.note { margin-top: 22px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.page-404 { justify-content: center; }
/* Contact follows the cards directly: no full-screen height, content from the top */
.panel.contact { min-height: 0; justify-content: flex-start; padding-top: clamp(20px, 3vh, 32px); padding-bottom: clamp(48px, 7vh, 72px); }

/* ---------- Capabilities: four cards, each with a number, an animation, a heading and a description ---------- */
.capabilities { position: relative; z-index: 1; background: var(--bg); padding-block: clamp(20px, 3vh, 32px) clamp(20px, 3vh, 32px); }
.capabilities .label { margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: #000; border: 1px solid var(--line); padding: 22px 22px 28px; }
.card-num { font-family: var(--font-sans); font-weight: 300; font-size: clamp(2.6rem, 3.4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 22px; }
.card-canvas { display: block; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 24px; }
.card-title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(1.25rem, 1.45vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.2;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); margin-bottom: 16px; }
.card-text { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { padding: 18px 18px 24px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 46; border-top: 1px solid var(--line); padding-block: 36px; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: start; }
.footer-name { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 13px; letter-spacing: 0.18em; }
.footer-legal { display: grid; gap: 4px; justify-items: end; text-align: right; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--dim); }

/* ---------- Entrance animation: content is visible at rest; .is-in only plays it in ---------- */
.js [data-reveal].is-in { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .panel::before { background: linear-gradient(0deg, rgba(5, 6, 7, 0) 0%, rgba(5, 6, 7, 0.92) 10%, rgba(5, 6, 7, 0.6) 46%, rgba(5, 6, 7, 0.06) 78%, rgba(5, 6, 7, 0) 100%); }
  .hud-clock { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-title { font-size: clamp(1.9rem, 8.4vw, 3rem); font-stretch: 108%; margin-bottom: 20px; }
  .tagline { font-size: 11.5px; letter-spacing: 0.16em; gap: 12px; }
  .tagline::before { width: 24px; }
  .title { font-size: clamp(2.2rem, 10vw, 3.1rem); }
  .hud-corner { width: 16px; height: 16px; }
  .hud-section { left: 34px; font-size: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { justify-items: start; text-align: left; }
}

/* Full-screen anchored scenes show behind the whole section; only the small text near the bottom gets a scrim */
.panel.panel--scene::before { background: linear-gradient(0deg, rgba(5, 6, 7, 0) 0%, rgba(5, 6, 7, 0.85) 14%, rgba(5, 6, 7, 0.55) 30%, rgba(5, 6, 7, 0) 46%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
