/* ===========================
   SELF-HOSTED TYPE
   Served from this origin so no visitor IP reaches a font CDN.
   Space Grotesk & JetBrains Mono — SIL OFL 1.1, see /fonts/LICENSE.txt
   =========================== */
@font-face{font-family:"Space Grotesk";src:url("/fonts/space-grotesk-latin-300-normal.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

/* ===========================
   DESIGN TOKENS  —  ShadowTrace Brand Kit v1.0
   Ink #0B0E12 · Bone #E8EDF3 · Copper #D49A57 · Paper #F2F0EB · Steel #59646F
   Copper is an accent only, never a ground. Surfaces are flat.
   =========================== */
:root {
  color-scheme: dark;

  /* brand */
  --ink: #0B0E12;
  --bone: #E8EDF3;
  --copper: #D49A57;
  --paper: #F2F0EB;
  --steel: #59646F;

  /* ground + type */
  --bg: #0B0E12;
  --bg-soft: #0E1319;
  --panel: rgba(232, 237, 243, 0.025);
  --panel-strong: rgba(232, 237, 243, 0.05);
  --text: #E8EDF3;
  --muted: #98A3AE;          /* Steel lifted to pass AA on Ink */
  --line: rgba(89, 100, 111, 0.32);
  --line-strong: rgba(89, 100, 111, 0.55);
  --accent: #D49A57;
  --accent-2: #8A97A4;
  --warning: #C9A227;
  --danger: #C25B5B;
  --glow-teal: transparent;
  --glow-blue: transparent;
  --focus: #D49A57;
  --nav-height: 64px;
  --container: min(1080px, calc(100% - 40px));

  /* spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  /* radii — squared off to match the mark */
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --radius-xl: 4px;

  /* fluid section rhythm */
  --section-pad: clamp(48px, 8vw, 72px);

  /* shadows — depth only, no colour */
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 0 0 1px rgba(212, 154, 87, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 32px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Consistent tap feedback on touch devices */
* {
  -webkit-tap-highlight-color: rgba(212, 154, 87, 0.15);
}

/* Keyboard focus visibility */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgba(212, 154, 87, 0.28);
  color: #E8EDF3;
}

img, svg, canvas {
  max-width: 100%;
}

/* ===========================
   SCROLL PROGRESS BAR
   =========================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  z-index: 9999;
  transition: transform 60ms linear;
  pointer-events: none;
}

/* ===========================
   BODY & BACKGROUNDS
   =========================== */
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, rgba(212, 154, 87, 0.05), transparent 60%);
}

@keyframes bg-shift {
  from { opacity: 1; }
  to   { opacity: 1; }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    repeating-linear-gradient(0deg, rgba(212, 154, 87, 0.015) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(232, 237, 243, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 243, 0.02) 1px, transparent 1px);
  background-size: 100% 3px, 64px 64px, 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 72%);
}

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   NAVBAR
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--container);
  margin: 12px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 14, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 400ms ease, border-color 400ms ease;
}

.nav.scrolled {
  border-color: rgba(212, 154, 87, 0.14);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  flex-shrink: 0;
}

.logo-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-icon svg {
  filter: none;
}

.shield-check {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: check-draw 1.2s ease 0.8s forwards;
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.shield-orbit {
  animation: orbit-spin 14s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.logo-scan-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: logo-scan 3s ease-in-out infinite;
}

@keyframes logo-scan {
  0%   { transform: translateY(4px); opacity: 0; }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(32px); opacity: 0; }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 500;
  font-size: 0.98rem;
}

.brand-text small {
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.nav-menu a {
  position: relative;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  transition: color 200ms ease, background 200ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  background: rgba(232, 237, 243, 0.06);
}

.nav-menu a.active {
  color: var(--accent);
}

.nav-cta {
  padding: 7px 14px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.nav-cta:hover {
  box-shadow: none;
  transform: translateY(-1px);
}

/* Primary CTA shown only inside the mobile menu (nav-cta is hidden there) */
.nav-cta-mobile { display: none; }

/* ===========================
   HAMBURGER MENU
   =========================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: transform 350ms ease, opacity 250ms ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(11, 14, 18, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   LAYOUT
   =========================== */
main,
footer {
  width: var(--container);
  margin: 0 auto;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, .h3-style, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 500;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}

h3, .h3-style {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 500;
}

.text-muted {
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

.hero-copy,
.section-head > p,
.card p,
.roadmap-item p,
.project-card p,
.company p,
.contact p {
  max-width: 540px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===========================
   SHIMMER TEXT
   =========================== */
.shimmer-text {
  color: var(--text);
}



/* ===========================
   TYPEWRITER CURSOR
   =========================== */
.cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--accent);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 2px;
}

.cursor.done {
  animation: blink-cursor 0.75s step-end 3;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ===========================
   BUTTONS
   =========================== */
.actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 300ms ease;
}



.button:hover {
  transform: translateY(-2px);
}

.primary {
  border-color: transparent;
  background: var(--accent);
  color: #0B0E12;
}

.primary:hover {
  box-shadow: none;
}

.ghost {
  background: rgba(232, 237, 243, 0.04);
}

.ghost:hover {
  background: rgba(232, 237, 243, 0.08);
  border-color: rgba(212, 154, 87, 0.3);
}

/* ===========================
   CARDS & PANELS
   =========================== */
.card,
.roadmap-item,
.project-card,
.facts,
.process article,
.metrics article,
.security-console {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: inset 0 1px 0 rgba(232, 237, 243, 0.04);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 400ms ease;
}

.card:hover,
.roadmap-item:hover,
.project-card:hover,
.process article:hover,
.metrics article:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 154, 87, 0.35);
  box-shadow: inset 0 1px 0 rgba(232, 237, 243, 0.04);
}

.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

/* Card inner glow */
.card::before,
.roadmap-item::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 154, 87, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  border-radius: inherit;
}

.card:hover::before,
.roadmap-item:hover::before,
.project-card:hover::before {
  opacity: 1;
}

/* ===========================
   HERO — MINIMALIST
   =========================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 100px);
  min-height: calc(100svh - 100px);
  padding: 80px 0 48px;
}

.hero .eyebrow {
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-copy {
  max-width: 480px;
  margin: 0 auto 28px;
  text-align: center;
}

.hero .actions {
  justify-content: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 30px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-live-ring 2s infinite;
}

/* ===========================
   PAGE HEADER — INNER PAGES
   =========================== */
.page-header {
  padding: 100px 0 48px;
  text-align: center;
}

.page-header h1 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-header .text-muted {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* ===========================
   MARQUEE STRIP
   =========================== */
.strip-wrapper {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(232, 237, 243, 0.02);
  position: relative;
  margin-bottom: 2px;
}

.strip-wrapper::before,
.strip-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.strip-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.strip-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.strip-track {
  display: flex;
  animation: marquee 24s linear infinite;
  width: max-content;
}

.strip-track p {
  display: flex;
  min-width: 180px;
  height: 56px;
  margin: 0;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  border-right: 1px solid var(--line);
  transition: color 200ms ease;
}

.strip-track p:hover {
  color: var(--accent);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 28px;
}

/* ===========================
   PREVIEW GRID (HOME)
   =========================== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 48px 0;
}

@media (max-width: 1024px) and (min-width: 761px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}

.preview-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  position: relative;
  overflow: hidden;
}

.preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 154, 87, 0.3);
  box-shadow: none;
}

.preview-card .card-num {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.preview-card h3,
.preview-card .h3-style {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.preview-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: gap 200ms ease;
}

.preview-card:hover .card-link,
.card:hover .card-link {
  gap: 10px;
}

/* ===========================
   STATS ROW
   =========================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 0 48px;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  text-align: center;
  transition: border-color 300ms ease;
}

.stat-card:hover {
  border-color: rgba(212, 154, 87, 0.25);
}

.stat-card .stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   SERVICE CARDS GRID
   =========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card .card-num {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ===========================
   SECURITY CONSOLE
   =========================== */
.security-console {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgba(11, 14, 18, 0.92);
  border: 1px solid rgba(212, 154, 87, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.security-console::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(180deg, rgba(212, 154, 87, 0.015) 0 1px, transparent 1px 4px);
  pointer-events: none;
  z-index: 0;
}

.security-console::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 154, 87, 0.04), transparent);
  transform: translateX(-100%);
  animation: panel-sweep 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.security-console > * {
  position: relative;
  z-index: 1;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(232, 237, 243, 0.06);
  background: rgba(232, 237, 243, 0.025);
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.console-dots span:nth-child(1) { background: var(--danger); }
.console-dots span:nth-child(2) { background: var(--warning); }
.console-dots span:nth-child(3) { background: var(--accent); }

.console-title {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.03em;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.pulse-live {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: none;
  animation: pulse-live-ring 2s infinite;
}

@keyframes pulse-live-ring {
  0%   { box-shadow: none; }
  70%  { box-shadow: none; }
  100% { box-shadow: none; }
}

.threat-feed {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(232, 237, 243, 0.05);
  max-height: 140px;
  overflow: hidden;
}

.threat-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.68rem;
  font-family: 'Courier New', Courier, monospace;
  opacity: 0;
  transform: translateY(6px);
  animation: feed-in 400ms ease forwards;
}

.threat-entry:nth-child(1) { animation-delay: 200ms; }
.threat-entry:nth-child(2) { animation-delay: 400ms; }
.threat-entry:nth-child(3) { animation-delay: 600ms; }
.threat-entry:nth-child(4) { animation-delay: 800ms; }
.threat-entry:nth-child(5) { animation-delay: 1000ms; }

@keyframes feed-in {
  to { opacity: 1; transform: translateY(0); }
}

.threat-time {
  color: rgba(232, 237, 243, 0.25);
  font-size: 0.62rem;
  flex-shrink: 0;
}

.threat-tag {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  text-transform: uppercase;
}

.threat-tag.blocked { background: rgba(194, 91, 91, 0.12); color: var(--danger); border: 1px solid rgba(194, 91, 91, 0.25); }
.threat-tag.warn    { background: rgba(201, 162, 39, 0.1); color: var(--warning); border: 1px solid rgba(201, 162, 39, 0.2); }
.threat-tag.safe    { background: rgba(212, 154, 87, 0.08); color: var(--accent); border: 1px solid rgba(212, 154, 87, 0.2); }

.threat-msg {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Radar */
.radar-section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.radar {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 154, 87, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(212, 154, 87, 0.08); }
.ring-1 { width: 90%; height: 90%; }
.ring-2 { width: 60%; height: 60%; }
.ring-3 { width: 30%; height: 30%; }

.radar-sweep {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  left: 50%;
  transform-origin: bottom left;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(212, 154, 87, 0.15) 35deg, transparent 50deg);
  border-radius: 50% 50% 0 0;
  animation: radar-rotate 3s linear infinite;
}

@keyframes radar-rotate { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: none;
  animation: blip-fade 3s ease-in-out infinite;
}

.blip-1 { top: 22%; left: 30%; animation-delay: 0s; }
.blip-2 { top: 60%; right: 22%; animation-delay: 1s; }
.blip-3 { bottom: 28%; left: 22%; animation-delay: 2s; }

@keyframes blip-fade {
  0%, 30% { opacity: 0; transform: scale(0); }
  40%     { opacity: 1; transform: scale(1.3); }
  60%     { opacity: 1; transform: scale(1); }
  100%    { opacity: 0; transform: scale(0); }
}

.radar-core {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 14, 18, 0.9);
  border: 1px solid rgba(212, 154, 87, 0.3);
  box-shadow: none;
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: none; }
  50%      { box-shadow: none; }
}

.radar-stats { display: flex; flex-direction: column; gap: 8px; }
.radar-stat  { display: flex; flex-direction: column; gap: 2px; }

.stat-value {
  display: block;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.stat-bar { height: 2px; background: rgba(232, 237, 243, 0.06); border-radius: 2px; overflow: hidden; }
.stat-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: fill-bar 1.5s ease 1.2s forwards;
}

@keyframes fill-bar { to { width: var(--fill); } }

.console-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-top: 1px solid rgba(232, 237, 243, 0.05);
  background: rgba(232, 237, 243, 0.015);
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.status-dot { width: 4px; height: 4px; border-radius: 50%; }
.status-dot.green { background: var(--accent); box-shadow: none; }
.status-dot.amber { background: var(--warning); box-shadow: none; }

/* ===========================
   CARD ICONS
   =========================== */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(212, 154, 87, 0.08);
  border: 1px solid rgba(212, 154, 87, 0.15);
  color: var(--accent);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: none;
}

.card-icon--danger {
  background: rgba(194, 91, 91, 0.08);
  border-color: rgba(194, 91, 91, 0.15);
  color: var(--danger);
}

.card:hover .card-icon--danger {
  box-shadow: none;
}

.card-icon--blue {
  background: rgba(138, 151, 164, 0.08);
  border-color: rgba(138, 151, 164, 0.15);
  color: var(--accent-2);
}

.card:hover .card-icon--blue {
  box-shadow: none;
}

/* ===========================
   SOC DASHBOARD — FULL WIDTH
   =========================== */
.soc-dashboard {
  border: 1px solid rgba(212, 154, 87, 0.12);
  border-radius: 14px;
  background: rgba(11, 14, 18, 0.94);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  margin-top: 32px;
  position: relative;
}

.soc-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(212, 154, 87, 0.012) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 0;
}

.soc-dashboard > * {
  position: relative;
  z-index: 1;
}

.soc-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(232, 237, 243, 0.06);
  background: rgba(232, 237, 243, 0.02);
}

.soc-title {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.soc-body {
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  min-height: 360px;
}

/* --- NETWORK MAP --- */
.soc-network {
  border-right: 1px solid rgba(232, 237, 243, 0.05);
  padding: 12px;
}

.soc-network-title,
.soc-feed-title {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(232, 237, 243, 0.05);
}

.network-viz {
  position: relative;
  width: 100%;
  height: 200px;
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 154, 87, 0.04), transparent 60%);
  border: 1px solid rgba(232, 237, 243, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.net-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.attack-line {
  stroke: var(--danger);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  opacity: 0.5;
  animation: dash-flow 1.5s linear infinite;
}

.al-1 { animation-delay: 0s; }
.al-2 { animation-delay: 0.3s; }
.al-3 { animation-delay: 0.6s; }

.safe-line {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0.3;
  animation: dash-flow-safe 2s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}

@keyframes dash-flow-safe {
  to { stroke-dashoffset: -20; }
}

.net-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}

.net-server {
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(11, 14, 18, 0.9);
  border: 1.5px solid rgba(212, 154, 87, 0.4);
  box-shadow: none;
  animation: server-pulse 3s ease-in-out infinite;
}

@keyframes server-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}

.net-attacker {
  width: 26px;
  height: 26px;
  background: rgba(194, 91, 91, 0.12);
  border: 1px solid rgba(194, 91, 91, 0.35);
  color: var(--danger);
  font-size: 0.65rem;
  animation: attacker-blink 2s ease-in-out infinite;
}

.att-1 { top: 8%; left: 12%; animation-delay: 0s; }
.att-2 { top: 10%; right: 10%; animation-delay: 0.6s; }
.att-3 { bottom: 10%; left: 8%; animation-delay: 1.2s; }

@keyframes attacker-blink {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.net-safe {
  width: 22px;
  height: 22px;
  background: rgba(212, 154, 87, 0.08);
  border: 1px solid rgba(212, 154, 87, 0.25);
  color: var(--accent);
  font-size: 0.55rem;
  font-weight: 500;
}

.safe-1 { bottom: 15%; right: 10%; }
.safe-2 { bottom: 3%; left: 45%; }

.net-block {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--danger);
  color: #E8EDF3;
  font-size: 0.5rem;
  font-weight: 500;
  z-index: 3;
  animation: block-pop 2.5s ease-in-out infinite;
  box-shadow: none;
}

.block-1 { top: 25%; left: 33%; animation-delay: 0.2s; }
.block-2 { top: 28%; right: 30%; animation-delay: 0.8s; }
.block-3 { bottom: 30%; left: 30%; animation-delay: 1.4s; }

@keyframes block-pop {
  0%, 40% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.3); }
  60% { transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.8); }
}

/* --- FEED --- */
.soc-feed {
  border-right: 1px solid rgba(232, 237, 243, 0.05);
  padding: 12px 14px;
  overflow: hidden;
}

.soc-feed .threat-feed {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  border: none;
}

.soc-feed .threat-feed::-webkit-scrollbar {
  width: 3px;
}

.soc-feed .threat-feed::-webkit-scrollbar-track {
  background: transparent;
}

.soc-feed .threat-feed::-webkit-scrollbar-thumb {
  background: rgba(212, 154, 87, 0.15);
  border-radius: 3px;
}

.soc-feed .threat-entry:nth-child(6) { animation-delay: 1200ms; }
.soc-feed .threat-entry:nth-child(7) { animation-delay: 1400ms; }
.soc-feed .threat-entry:nth-child(8) { animation-delay: 1600ms; }

/* --- STATS --- */
.soc-stats {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soc-stat-card {
  padding: 10px 12px;
  border: 1px solid rgba(232, 237, 243, 0.06);
  border-radius: 8px;
  background: rgba(232, 237, 243, 0.02);
  transition: border-color 300ms ease, background 300ms ease;
}

.soc-stat-card:hover {
  border-color: rgba(212, 154, 87, 0.15);
  background: rgba(212, 154, 87, 0.02);
}

.soc-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.soc-stat-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.soc-stat-badge {
  font-size: 0.52rem;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.soc-stat-badge.blocked {
  background: rgba(194, 91, 91, 0.1);
  color: var(--danger);
  border: 1px solid rgba(194, 91, 91, 0.2);
}

.soc-stat-badge.safe {
  background: rgba(212, 154, 87, 0.08);
  color: var(--accent);
  border: 1px solid rgba(212, 154, 87, 0.18);
}

.soc-stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.soc-stat-unit {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

.soc-stat-bar {
  height: 2px;
  background: rgba(232, 237, 243, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.soc-stat-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: fill-bar 1.8s ease 0.8s forwards;
}

/* ===========================
   VULNERABILITY SCANNER
   =========================== */
.vuln-scanner {
  border: 1px solid rgba(212, 154, 87, 0.1);
  border-radius: 14px;
  background: rgba(11, 14, 18, 0.95);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
  max-width: 800px;
  margin: 24px auto 0;
}

.vuln-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(232, 237, 243, 0.06);
  background: rgba(232, 237, 243, 0.02);
}

.vuln-title {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.vuln-status {
  font-size: 0.6rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.vuln-body {
  padding: 16px 18px;
  max-height: 380px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.9;
}

.vuln-body::-webkit-scrollbar {
  width: 3px;
}

.vuln-body::-webkit-scrollbar-thumb {
  background: rgba(212, 154, 87, 0.12);
  border-radius: 3px;
}

.vuln-line {
  opacity: 0;
  transform: translateX(-8px);
  animation: vuln-reveal 400ms ease forwards;
  animation-delay: calc(var(--delay) * 300ms + 500ms);
  color: rgba(232, 237, 243, 0.65);
}

@keyframes vuln-reveal {
  to { opacity: 1; transform: translateX(0); }
}

.vuln-prefix {
  color: var(--accent);
  font-weight: 500;
}

.vuln-cmd {
  color: var(--text);
  font-weight: 500;
}

.vuln-ts {
  color: rgba(232, 237, 243, 0.25);
}

.vuln-safe {
  color: var(--accent);
  font-weight: 500;
}

.vuln-warn {
  color: var(--warning);
  font-weight: 500;
}

.vuln-danger {
  color: var(--danger);
  font-weight: 500;
}

.vuln-blink {
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--accent);
}

/* ===========================
   PROCESS SECTION
   =========================== */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.process article {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.process span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* ===========================
   ROADMAP
   =========================== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.roadmap-item {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.06);
  color: var(--warning);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-live {
  border-color: rgba(212, 154, 87, 0.25);
  background: rgba(212, 154, 87, 0.06);
  color: var(--accent);
  gap: 5px;
}

/* ===========================
   METRICS
   =========================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px 0;
}

.metrics article { padding: 24px; }
.metrics span {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.metrics p {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===========================
   PROJECT CARD
   =========================== */
.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.project-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

/* ===========================
   COMPANY / CONTACT
   =========================== */
.company,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.company {
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.contact {
  border-top: 1px solid var(--line);
  padding-top: 72px;
}

.facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border-radius: 10px;
}

.facts div {
  padding: 18px;
  background: var(--bg-soft);
  transition: background 300ms ease;
}

.facts div:hover { background: rgba(212, 154, 87, 0.03); }

dt, .facts span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts strong {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  word-break: break-word;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  padding: 0 0 36px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr;
  gap: 32px;
  padding: 44px 0 36px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-logo > span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo small {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 280px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-title {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-loc {
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
  animation: footer-pulse 2s ease-in-out infinite;
}

@keyframes footer-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

.stagger-children.staggered > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   MAGNETIC
   =========================== */
.magnetic {
  transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===========================
   DDOS SIMULATION CONTAINER
   =========================== */
.ddos-sim-container {
  border: 1px solid rgba(212, 154, 87, 0.1);
  border-radius: 16px;
  background: rgba(11, 14, 18, 0.95);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.ddos-sim-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(212, 154, 87, 0.008) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 0;
}

.ddos-sim-container > * {
  position: relative;
  z-index: 1;
}

/* Header */
.ddos-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(232, 237, 243, 0.06);
  background: rgba(232, 237, 243, 0.015);
}

.ddos-sim-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--danger);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.ddos-sim-title {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.04em;
}

.ddos-sim-label {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(232, 237, 243, 0.3);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Body */
.ddos-sim-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 380px;
}

/* Sidebar */
.ddos-sim-sidebar {
  border-right: 1px solid rgba(232, 237, 243, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bench-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.bench-tab:hover {
  background: rgba(232, 237, 243, 0.03);
}

.bench-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232, 237, 243, 0.04);
  border: 1px solid rgba(232, 237, 243, 0.08);
  color: var(--muted);
  flex-shrink: 0;
}

.bench-icon svg {
  width: 18px;
  height: 18px;
}

.bench-icon--active {
  background: rgba(212, 154, 87, 0.08);
  border-color: rgba(212, 154, 87, 0.2);
  color: var(--accent);
}

.bench-tab strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.bench-tab span {
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.3;
}

.bench-verified {
  margin-top: auto;
  font-size: 0.62rem;
  color: rgba(232, 237, 243, 0.25);
  padding: 8px 0 0;
}

/* Canvas */
.ddos-sim-canvas-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(212, 154, 87, 0.03), transparent 50%),
    radial-gradient(ellipse at 20% 50%, rgba(194, 91, 91, 0.02), transparent 50%);
}

#ddosCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Server rack */
.server-rack {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  background: rgba(212, 154, 87, 0.04);
  border: 1px solid rgba(212, 154, 87, 0.15);
  border-radius: 6px;
  box-shadow: none;
}

.rack-unit {
  width: 100%;
  height: 18px;
  border-radius: 3px;
  background: rgba(212, 154, 87, 0.06);
  border: 1px solid rgba(212, 154, 87, 0.12);
  position: relative;
  overflow: hidden;
}

.rack-unit::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent);
  animation: rack-blink 2s ease-in-out infinite;
}

.rack-unit:nth-child(2)::before { animation-delay: 0.3s; }
.rack-unit:nth-child(3)::before { animation-delay: 0.6s; }
.rack-unit:nth-child(4)::before { animation-delay: 0.9s; }
.rack-unit:nth-child(5)::before { animation-delay: 1.2s; }
.rack-unit:nth-child(6)::before { animation-delay: 1.5s; }
.rack-unit:nth-child(7)::before { animation-delay: 1.8s; }
.rack-unit:nth-child(8)::before { animation-delay: 2.1s; }

.rack-unit::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(212, 154, 87, 0.3);
}

@keyframes rack-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Stats bar */
.ddos-sim-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(232, 237, 243, 0.06);
}

.ddos-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-right: 1px solid rgba(232, 237, 243, 0.05);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.ddos-stat:last-child {
  border-right: none;
}

.ddos-stat-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ddos-stat-value {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--danger);
  letter-spacing: -0.02em;
}

.ddos-stat-safe {
  color: var(--accent);
}

/* ===========================
   KEYFRAMES
   =========================== */
@keyframes panel-sweep {
  0%, 55% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

/* ===========================
   RESPONSIVE
   =========================== */

/* --- Tablet / small laptop --- */
@media (max-width: 1024px) {
  .preview-grid,
  .grid,
  .process,
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .soc-body {
    grid-template-columns: 220px 1fr 200px;
  }
}

/* --- Tablet portrait & mobile nav --- */
@media (max-width: 880px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 1.4rem;
    background: rgba(11, 14, 18, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease, visibility 400ms ease;
  }

  .nav-menu a {
    color: var(--muted);
    font-size: 1.45rem;
    padding: 10px 24px;
  }

  .nav-menu.open { opacity: 1; visibility: visible; }

  .nav-menu.open a {
    animation: menu-in 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(16px);
  }

  .nav-menu.open a:nth-child(1) { animation-delay: 60ms; }
  .nav-menu.open a:nth-child(2) { animation-delay: 120ms; }
  .nav-menu.open a:nth-child(3) { animation-delay: 180ms; }
  .nav-menu.open a:nth-child(4) { animation-delay: 240ms; }

  @keyframes menu-in { to { opacity: 1; transform: translateY(0); } }

  .nav-cta { display: none; }

  .nav-menu .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 14px 32px;
    border-radius: 8px;
    background: var(--accent);
    color: #0B0E12;
    font-size: 1.05rem;
    font-weight: 500;
  }

  .preview-grid,
  .stats-row,
  .roadmap,
  .process,
  .metrics {
    grid-template-columns: 1fr;
  }

  .grid { grid-template-columns: repeat(2, 1fr); }

  .company,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }

  /* SOC: drop the network column, keep feed + stats */
  .soc-body { grid-template-columns: 1fr 220px; }
  .soc-network { display: none; }

  /* ---- DDoS sim: keep benchmark tabs usable as a horizontal strip ---- */
  .ddos-sim-body { grid-template-columns: 1fr; }

  .ddos-sim-sidebar {
    flex-direction: row;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    border-right: none;
    border-bottom: 1px solid rgba(232, 237, 243, 0.05);
    -webkit-overflow-scrolling: touch;
  }
  .ddos-sim-sidebar::-webkit-scrollbar { display: none; }

  .bench-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    min-height: 48px;
  }
  .bench-tab span { display: none; }
  .bench-tab strong { white-space: nowrap; margin-bottom: 0; }
  .bench-verified { display: none; }

  .ddos-sim-canvas-wrap { min-height: 320px; }

  .ddos-sim-stats { grid-template-columns: repeat(2, 1fr); }
  .ddos-stat:nth-child(2n) { border-right: none; }
}

/* --- Phones --- */
@media (max-width: 560px) {
  :root { --container: min(100% - 24px, 1080px); }

  h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }

  .hero {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
    padding: 56px 0 40px;
  }
  .page-header { padding: 84px 0 32px; }
  .section { padding: var(--section-pad) 0; }

  .preview-card,
  .roadmap-item,
  .project-card,
  .process article,
  .metrics article,
  .card { padding: 22px 20px; }

  .grid { grid-template-columns: 1fr; }

  .radar-section { grid-template-columns: 1fr; justify-items: center; }
  .radar { width: 110px; height: 110px; }
  .radar-stats { width: 100%; }

  .console-status { flex-wrap: wrap; gap: 6px; }
  .threat-time { display: none; }

  .soc-body { grid-template-columns: 1fr; }

  .soc-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .soc-stat-card {
    flex: 1;
    min-width: 130px;
  }

  .soc-feed .threat-feed { max-height: 220px; }

  /* Full-bleed code-style panels on phones */
  .vuln-scanner,
  .soc-dashboard {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .vuln-body { font-size: 0.66rem; }

  .ddos-sim-stats { grid-template-columns: 1fr 1fr; }

  .ddos-sim-header { flex-wrap: wrap; gap: 6px; }
  .ddos-sim-label { display: none; }

  .server-rack {
    width: 28px;
    padding: 6px 4px;
    right: 6px;
    gap: 3px;
  }
  .rack-unit { height: 12px; }
  .rack-unit::before { width: 3px; height: 3px; left: 3px; }
  .rack-unit::after  { width: 2px; height: 2px; right: 3px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
}

/* --- Small phones --- */
@media (max-width: 400px) {
  .actions,
  .contact-actions { width: 100%; }

  .actions .button,
  .contact-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .brand-text { font-size: 0.9rem; }
}

/* ===========================
   PAGE LOADER
   =========================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99997;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 700ms ease 200ms, visibility 700ms ease 200ms;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: loader-appear 400ms ease forwards;
}

@keyframes loader-appear {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-wordmark {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader-bar-wrap {
  width: 140px;
  height: 2px;
  background: rgba(232, 237, 243,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: loader-fill 900ms cubic-bezier(0.4,0,0.2,1) 100ms forwards;
}

@keyframes loader-fill { to { width: 100%; } }

/* ===========================
   GLITCH ANIMATIONS
   =========================== */
@keyframes glitch-clip-1 {
  0%, 82%, 100% { clip-path: none; transform: none; }
  84% { clip-path: inset(18% 0 62% 0); transform: translate(-4px, 0); }
  86% { clip-path: inset(72% 0 4%  0); transform: translate( 4px, 0); }
  88% { clip-path: inset(42% 0 38% 0); transform: translate(-2px, 0); }
  90% { clip-path: none; transform: none; }
}

@keyframes glitch-clip-2 {
  0%, 82%, 100% { clip-path: none; transform: none; opacity: 0; }
  84% { clip-path: inset(52% 0 28% 0); transform: translate(4px, 0);  opacity: 0.7; }
  86% { clip-path: inset(8%  0 82% 0); transform: translate(-4px, 0); opacity: 0.5; }
  88% { clip-path: none; opacity: 0; }
}

/* ===========================
   BUTTON RIPPLE
   =========================== */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 237, 243,0.22);
  transform: scale(0);
  animation: ripple-burst 600ms linear forwards;
  pointer-events: none;
}

@keyframes ripple-burst {
  to { transform: scale(4.5); opacity: 0; }
}

/* ===========================
   STAT / METRIC NUMBER GLOW
   =========================== */
.stat-num,
.soc-stat-number,
.metrics span {
  text-shadow: none;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar          { width: 5px; }
::-webkit-scrollbar-track    { background: var(--bg); }
::-webkit-scrollbar-thumb    { background: rgba(212, 154, 87,0.14); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 154, 87,0.28); }

/* ===========================
   HERO AMBIENT GLOW
   =========================== */
.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 154, 87,0.055) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  animation: hero-ambient 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

@keyframes hero-ambient {
  0%, 100% { transform: translate(-50%,-55%) scale(1);    opacity: 0.6; }
  50%       { transform: translate(-50%,-55%) scale(1.18); opacity: 1; }
}

/* ===========================
   TERMINAL SCAN LINE
   =========================== */
.soc-dashboard,
.vuln-scanner,
.ddos-sim-container {
  overflow: hidden;
}

.soc-dashboard::after,
.vuln-scanner::after,
.ddos-sim-container::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 154, 87,0.35) 50%, transparent 100%);
  top: 0;
  animation: term-scan 5s linear infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes term-scan {
  0%   { top: 0%;   opacity: 0; }
  3%   { opacity: 1; }
  97%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===========================
   CARD MOUSE-TRACKED SPOTLIGHT
   =========================== */
.card::before,
.roadmap-item::before,
.preview-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(212, 154, 87,0.07),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.card:hover::before,
.roadmap-item:hover::before,
.preview-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.card > *,
.roadmap-item > *,
.preview-card > *,
.project-card > * {
  position: relative;
  z-index: 1;
}

/* ===========================
   BENCH TAB ACTIVE STATE
   (class-based so only the selected tab highlights)
   =========================== */
.bench-tab.is-active {
  background: rgba(212, 154, 87, 0.04);
  border-color: rgba(212, 154, 87, 0.15);
  border-left: 2px solid var(--accent);
}
.bench-tab.is-active strong { color: var(--accent); }
.bench-tab.is-active .bench-icon {
  background: rgba(212, 154, 87, 0.08);
  border-color: rgba(212, 154, 87, 0.2);
  color: var(--accent);
}

/* ===========================
   REDUCED MOTION
   Respect users who prefer less animation.
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }

  /* Make reveal content visible immediately */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Quiet the ambient / decorative loops */
  .strip-track { animation: none !important; }
  #field { display: none !important; }
  .hero::before,
  .logo-scan-line,
  .shield-orbit,
  .soc-dashboard::after,
  .vuln-scanner::after,
  .ddos-sim-container::after { display: none !important; }
}

/* ===========================
   NAV ACTIVE GLOW
   =========================== */
.nav-menu a.active {
  text-shadow: none;
}

/* ===========================
   EYEBROW SHIMMER TEXT
   =========================== */
.eyebrow {
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
}



/* ===========================
   SECTION HEAD UNDERLINE
   =========================== */
.section-head h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 12px;
  border-radius: 2px;
  box-shadow: none;
}

/* ===========================
   STAGGER CHILDREN WITH SCALE
   =========================== */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

.stagger-children.staggered > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===========================
   FLOATING CARD ANIMATION
   =========================== */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* ===========================
   ANIMATED GRADIENT BORDER ON HOVER
   =========================== */
@property --ba {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes ba-spin { to { --ba: 360deg; } }

.card,
.roadmap-item,
.preview-card {
  --ba: 0deg;
}

.card:hover,
.roadmap-item:hover,
.preview-card:hover {
  animation: ba-spin 3s linear infinite;
}

/* ===========================
   DDOS CANVAS BACKGROUND
   =========================== */
.ddos-sim-canvas-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(194, 91, 91,0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(212, 154, 87,0.04) 0%, transparent 55%);
}



/* ===========================
   PC PART HUNT SPECIFIC STYLES
   =========================== */
:root {
  --pph-accent: #D49A57; /* PC Part Hunt lime green */
}

.card-pph {
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 400ms ease;
}

.card-pph:hover {
  border-color: rgba(212, 154, 87, 0.35);
  box-shadow: inset 0 1px 0 rgba(232, 237, 243, 0.04);
}

.card-pph::before {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 154, 87, 0.08), transparent 65%);
}

.primary-pph {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pph-accent), #a3cc00);
  color: #0B0E12;
}

.primary-pph:hover {
  box-shadow: none;
}

.badge-pph {
  color: var(--pph-accent);
  background: rgba(212, 154, 87, 0.08);
  border: 1px solid rgba(212, 154, 87, 0.15);
}

.badge-pph .pulse-live {
  background: var(--pph-accent);
  box-shadow: 0 0 8px var(--pph-accent);
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: inset 0 1px 0 rgba(232, 237, 243, 0.04);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 400ms ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 154, 87, 0.3);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(232, 237, 243, 0.04);
}

.quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 0.6;
  height: 22px;
  color: var(--accent);
  opacity: 0.55;
}

.testimonial blockquote {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.t-role {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--text);
}

.t-org {
  font-size: 0.7rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===========================
   FAQ ACCORDION (native <details>)
   =========================== */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  overflow: hidden;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.faq-item[open] {
  border-color: rgba(212, 154, 87, 0.3);
  box-shadow: var(--shadow-pop);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  transition: color 200ms ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 300ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-body {
  padding: 0 20px 18px;
}

.faq-item[open] .faq-body {
  animation: faq-open 320ms ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-body p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===========================
   PROJECT SHOWCASE (themeable)
   Drives both the Rust and PC Part Hunt cards via
   --sc / --sc-2 (theme colors) and --sc-rgb (for rgba glows).
   =========================== */
.showcase {
  --sc: var(--accent);
  --sc-2: var(--accent-2);
  --sc-rgb: 212, 154, 87;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--sc-rgb), 0.28);
  background:
    radial-gradient(ellipse at 88% -10%, rgba(var(--sc-rgb), 0.16), transparent 55%),
    radial-gradient(ellipse at 0% 120%, rgba(var(--sc-rgb), 0.07), transparent 52%),
    linear-gradient(180deg, rgba(11, 14, 18, 0.55), rgba(0, 0, 0, 0.65));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.showcase:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--sc-rgb), 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

/* animated top border sweep */
.showcase::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--sc), var(--sc-2), transparent);
  background-size: 200% 100%;
  animation: sc-sweep 4s linear infinite;
  pointer-events: none;
}

@keyframes sc-sweep { to { background-position: -200% 0; } }

/* scanline texture */
.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(180deg, rgba(var(--sc-rgb), 0.02) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

/* rising sparks / embers (two layers for depth) */
.showcase-spark,
.showcase-spark::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
}

.showcase-spark {
  background-image:
    radial-gradient(2px 2px at 18% 90%, rgba(var(--sc-rgb), 0.9), transparent 60%),
    radial-gradient(2px 2px at 42% 95%, rgba(var(--sc-rgb), 0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 63% 88%, rgba(var(--sc-rgb), 0.8), transparent 60%),
    radial-gradient(2px 2px at 81% 96%, rgba(var(--sc-rgb), 0.7), transparent 60%);
  animation: sc-rise 5.5s linear infinite;
}

.showcase-spark::after {
  content: "";
  background-image:
    radial-gradient(1.5px 1.5px at 28% 92%, rgba(var(--sc-rgb), 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 97%, rgba(var(--sc-rgb), 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 73% 90%, rgba(var(--sc-rgb), 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 94%, rgba(var(--sc-rgb), 0.6), transparent 60%);
  animation: sc-rise 8s linear infinite 1.2s;
}

@keyframes sc-rise {
  0%   { transform: translateY(14px); opacity: 0; }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-46px); opacity: 0; }
}

.showcase-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 32px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
}

.showcase .badge {
  border-color: rgba(var(--sc-rgb), 0.32);
  background: rgba(var(--sc-rgb), 0.08);
  color: var(--sc-2);
  gap: 6px;
}

.showcase .badge .pulse-live {
  background: var(--sc-2);
  box-shadow: none;
  animation: sc-pulse-ring 2s infinite;
}

@keyframes sc-pulse-ring {
  0%   { box-shadow: none; }
  70%  { box-shadow: none; }
  100% { box-shadow: none; }
}

.showcase-title {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.showcase-copy {
  max-width: 540px;
  color: #98A3AE;
  font-size: 0.95rem;
  line-height: 1.7;
}

.showcase-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 0;
}

.showcase-features li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(var(--sc-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--sc-rgb), 0.06);
  font-size: 0.76rem;
  font-weight: 400;
  color: #e7ecf3;
  transition: border-color 250ms ease, background 250ms ease, transform 250ms ease;
}

.showcase-features li:hover {
  border-color: rgba(var(--sc-rgb), 0.5);
  background: rgba(var(--sc-rgb), 0.12);
  transform: translateY(-2px);
}

.showcase-features li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sc-2);
  box-shadow: 0 0 6px var(--sc-2);
}

.button-themed {
  border-color: transparent;
  background: linear-gradient(135deg, var(--sc), var(--sc-2));
  color: #050a08;
}

.button-themed:hover {
  box-shadow: none;
}

.showcase-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-stat {
  text-align: center;
  padding: 16px 14px;
  border: 1px solid rgba(var(--sc-rgb), 0.18);
  border-radius: var(--radius);
  background: rgba(var(--sc-rgb), 0.04);
  transition: border-color 300ms ease, background 300ms ease, transform 300ms ease;
}

.showcase-stat:hover {
  border-color: rgba(var(--sc-rgb), 0.4);
  background: rgba(var(--sc-rgb), 0.08);
  transform: translateY(-3px);
}

.showcase-stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--sc-2);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: none;
}

.showcase-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---- themes ---- */
.showcase--rust { --sc: #e85d04; --sc-2: #ff9e2c; --sc-rgb: 232, 93, 4; }
.showcase--rust .button-themed { color: #160a02; }

.showcase--pph { --sc: #b6e000; --sc-2: #d8ff3e; --sc-rgb: 182, 224, 0; }
.showcase--pph .button-themed { color: #0a0f00; }

@media (max-width: 760px) {
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-stats { flex-direction: row; }
  .showcase-stat { flex: 1; }
}

/* ===========================
   OFFICE LOCATION
   =========================== */
.office {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: stretch;
}

.office-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: inset 0 1px 0 rgba(232, 237, 243, 0.04);
  transition: border-color 300ms ease, box-shadow 400ms ease;
}

.office-card:hover {
  border-color: rgba(212, 154, 87, 0.3);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(232, 237, 243, 0.04);
}

.office-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(212, 154, 87, 0.08);
  border: 1px solid rgba(212, 154, 87, 0.18);
  color: var(--accent);
}

.office-icon svg { width: 22px; height: 22px; }

.office-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.office-addr {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text);
}

.office-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.office-map {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(212, 154, 87, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.office-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Dark-mode the Google Maps embed to match the cyber theme */
  filter: invert(0.92) hue-rotate(180deg) brightness(0.92) contrast(0.95) saturate(0.85);
  transition: filter 400ms ease;
}

.office-map:hover iframe {
  filter: invert(0.88) hue-rotate(180deg) brightness(1) contrast(0.98) saturate(0.95);
}

@media (max-width: 760px) {
  .office { grid-template-columns: 1fr; }
  .office-map { min-height: 280px; }
}

/* ===========================
   FEATURED SERVICE CARD (WEB DEV)
   =========================== */
.card--featured {
  grid-column: 1 / -1;
  padding: 32px 28px;
  border-color: rgba(212, 154, 87, 0.22);
  background:
    radial-gradient(ellipse at 88% 0%, rgba(138, 151, 164, 0.09), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(212, 154, 87, 0.05), transparent 45%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.card--featured:hover {
  border-color: rgba(212, 154, 87, 0.4);
}

.card--featured p {
  max-width: 660px;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 20px;
  padding: 0;
}

.feature-chips li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 237, 243, 0.03);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.feature-chips li:hover {
  border-color: rgba(212, 154, 87, 0.4);
  background: rgba(212, 154, 87, 0.06);
  color: var(--accent);
}

@media (max-width: 560px) {
  .card--featured { padding: 24px 20px; }
}
/* ============================================================
   BRAND LAYER — ShadowTrace Brand Kit v1.0
   Loaded last so it wins. Nothing above may reintroduce a glow,
   a gradient on the mark, or a colour outside the five approved.
   ============================================================ */

/* --- Typography: Space Grotesk, Light body / Medium headlines --- */
body,
button,
input,
textarea,
select {
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4,
.showcase-title,
.stat-num,
.soc-stat-number {
  font-weight: 500;
  letter-spacing: -0.015em;
}

h1 { line-height: 1.08; }
h2 { line-height: 1.12; }

strong, b { font-weight: 500; }

/* --- Wordmark: 0.09em on the name, 0.46em on the company line --- */
.brand-text {
  font-weight: 300;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.brand-text small {
  letter-spacing: 0.46em;
  font-size: 0.5rem;
  font-weight: 300;
  margin-left: 1px;
}

/* --- The mark: one flat colour, nothing else --- */
.logo-icon {
  width: 30px;
  height: 32px;
  color: var(--bone);
}
.logo-icon svg {
  filter: none !important;
  overflow: visible;
}
/* clear space equal to one arm width of the S */
.brand {
  gap: 12px;
  padding: 3px 3px 3px 0;
}
/* the breakout arms are part of the mark — never trimmed */
.logo-scan-line { display: none !important; }

/* --- Flat surfaces, hairline rules --- */
.nav {
  background: rgba(11, 14, 18, 0.9);
  border-color: var(--line);
}
.nav.scrolled {
  border-color: var(--line-strong);
}

.card,
.faq-item,
.testimonial,
.showcase,
.panel {
  background-image: none;
}

/* --- Accent discipline: Copper is a hairline and a highlight, never a field --- */
.section-head h2::after {
  background: var(--accent);
  border-radius: 0;
  height: 1px;
  width: 32px;
}

.primary {
  background: var(--accent);
  color: var(--ink);
  font-weight: 500;
  border: 1px solid var(--accent);
}
.primary:hover {
  background: #E0AA6B;
  border-color: #E0AA6B;
}

.button,
.nav-cta {
  border-radius: 2px;
}

/* --- Motion: keep it, but drop anything that reads as neon --- */
.scroll-progress {
  background: var(--accent);
  height: 1px;
}

::selection {
  background: rgba(212, 154, 87, 0.3);
  color: var(--bone);
}

::-webkit-scrollbar-thumb { background: rgba(89, 100, 111, 0.5); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 154, 87, 0.6); }

/* --- Light-ground sections use Paper, per the kit --- */
.on-paper {
  background: var(--paper);
  color: var(--ink);
}
.on-paper .logo-icon { color: var(--ink); }
.on-paper .muted, .on-paper .t-org { color: var(--steel); }

/* --- Background canvas: quieter --- */
#field { opacity: 0.16; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- Mark instances outside the nav --- */
.footer-logo { color: var(--bone); }
.footer-logo svg { display: block; }
.net-server svg { color: var(--accent); }
.net-server svg path[stroke="var(--bg)"] { stroke: var(--bg); }

/* --- At-a-glance answer block (AEO) --- */
.glance-lede {
  max-width: 62ch;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}
.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--line);
}
.glance > div {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 18px;
  padding: 15px 2px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.glance dt {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 3px;
}
.glance dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.glance dd a { color: var(--accent); border-bottom: 1px solid rgba(212,154,87,0.4); }
@media (max-width: 560px) {
  .glance > div { grid-template-columns: 1fr; gap: 4px; }
}

/* --- Footer wordmark matches the nav lockup --- */
.footer-logo > span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.footer-logo small {
  letter-spacing: 0.4em;
  font-size: 0.46rem;
  font-weight: 300;
  color: var(--muted);
  text-transform: uppercase;
}

/* --- Kill horizontal page scroll on mobile ---
   Grid/flex children default to min-width:auto, so an overflow-x:auto
   strip still stretches its parent. Pin them to 0. --- */
.ddos-sim-body,
.soc-body,
.showcase,
.showcase-inner { min-width: 0; }
.ddos-sim-sidebar,
.soc-main,
.strip-wrapper { min-width: 0; max-width: 100%; }
.strip-wrapper { overflow-x: hidden; }
html, body { max-width: 100%; overflow-x: hidden; }

/* ============================================================
   COLOURWAY BANDS
   The kit ships three colourways. The site was using only one,
   which is why it read flat. A band flips the tokens, so every
   rule that already uses var() inverts with it.
   ============================================================ */
.band {
  /* full-bleed without 100vw, so a scrollbar can't cause overflow */
  margin-inline: calc(-1 * (50vw - 50%));
  padding-inline: calc(50vw - 50%);
  position: relative;
}

.band--paper {
  /* native controls (checkbox, select popup, autofill, scrollbars) must
     follow the light ground, not the page-level dark colour-scheme */
  color-scheme: light;
  --bg: #F2F0EB;
  --bg-soft: #E9E7E1;
  --text: #0B0E12;
  --muted: #59646F;
  --line: rgba(11, 14, 18, 0.16);
  --line-strong: rgba(11, 14, 18, 0.3);
  --panel: rgba(11, 14, 18, 0.025);
  --panel-strong: rgba(11, 14, 18, 0.05);
  --accent-2: #59646F;
  background: var(--paper);
  color: var(--text);
}

/* hairline seams where the ground changes */
.band--paper::before,
.band--paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}
.band--paper::before { top: 0; }
.band--paper::after  { bottom: 0; }

.band--paper .logo-icon,
.band--paper .footer-logo { color: var(--ink); }

/* Copper sits darker on Paper so it keeps its contrast */
.band--paper .eyebrow,
.band--paper .stat-num,
.band--paper .glance dt,
.band--paper .card-num,
.band--paper .card-link { color: #8A5E26; }
.band--paper .section-head h2::after { background: #8A5E26; }

.band--paper .preview-card,
.band--paper .stat-card,
.band--paper .testimonial,
.band--paper .faq-item {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}
.band--paper .preview-card:hover,
.band--paper .stat-card:hover {
  border-color: rgba(138, 94, 38, 0.45);
  background: #FFFFFF;
}
.band--paper .preview-card::before {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(138, 94, 38, 0.08), transparent 65%);
}
.band--paper .button:not(.primary) {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.band--paper .button:not(.primary):hover { background: rgba(11, 14, 18, 0.05); border-color: var(--ink); }
.band--paper .primary,
.band--paper a.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.band--paper .primary:hover,
.band--paper a.button.primary:hover { background: #1F262F; border-color: #1F262F; color: var(--paper); }
.band--paper ::selection { background: rgba(138, 94, 38, 0.25); color: var(--ink); }

/* ============================================================
   MOTION
   ============================================================ */

/* --- Hero: headline lifts line by line, then the supporting copy --- */
.hero h1 { overflow: hidden; }
.hero-content > * {
  animation: rise-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 80ms; }
.hero-content > *:nth-child(2) { animation-delay: 200ms; }
.hero-content > *:nth-child(3) { animation-delay: 340ms; }
.hero-content > *:nth-child(4) { animation-delay: 460ms; }
.hero-content > *:nth-child(5) { animation-delay: 560ms; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- The mark draws itself in on first load --- */
.logo-icon svg .st-draw {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-s 1400ms cubic-bezier(0.65, 0, 0.35, 1) 300ms forwards;
}
@keyframes draw-s { to { stroke-dashoffset: 0; } }

/* --- Section rules draw across as they enter --- */
.section-head h2::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}
.reveal.visible .section-head h2::after,
.visible .section-head h2::after,
.band--paper .section-head h2::after { transform: scaleX(1); }

/* --- Eyebrow letter-spacing settles as it enters --- */
.eyebrow {
  transition: letter-spacing 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal:not(.visible) .eyebrow { letter-spacing: 0.34em; }

/* --- Cards: lift, and the copper edge wipes in from the left --- */
.preview-card,
.stat-card,
.testimonial,
.faq-item,
.card {
  position: relative;
}
.preview-card::after,
.stat-card::after,
.testimonial::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}
.preview-card:hover::after,
.stat-card:hover::after,
.testimonial:hover::after { transform: scaleY(1); }

.stat-card:hover { transform: translateY(-3px); }
.stat-card { transition: border-color 300ms ease, transform 300ms ease; }

/* --- Stat numbers tick up with a tabular figure so they don't jitter --- */
.stat-num,
.soc-stat-number,
[data-count] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- Buttons: the arrow leads --- */
.button,
.nav-cta,
.card-link { transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), background 240ms ease, border-color 240ms ease, gap 240ms ease, color 240ms ease; }
.card-link span { transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); display: inline-block; }
.card-link:hover span,
.preview-card:hover .card-link span { transform: translateX(4px); }

/* --- Nav links get a copper underline that grows from the left --- */
.nav-menu a { position: relative; }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); transform-origin: left; }

/* --- Type: more contrast between heading and body --- */
h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.025em; }
.section-head h2 { margin-bottom: 4px; }
.section-head p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--muted);
  margin-top: 14px;
}

/* --- Rhythm: let the bands breathe --- */
.band .section { padding: clamp(64px, 9vw, 104px) 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .logo-icon svg .st-draw { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
  .section-head h2::after { transform: scaleX(1); }
  .reveal:not(.visible) .eyebrow { letter-spacing: 0.16em; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { max-width: 68ch; }
.legal h2 {
  margin: 44px 0 10px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 14px; color: var(--muted); line-height: 1.75; font-size: 0.94rem; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: #8A5E26; border-bottom: 1px solid rgba(138,94,38,0.4); }
.legal code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* ============================================================
   CONSENT BAR
   ============================================================ */
.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 9998;
  width: min(760px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(11, 14, 18, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}
.consent.is-open { transform: translate(-50%, 0); }
.consent p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.consent p a { color: var(--accent); border-bottom: 1px solid rgba(212,154,87,0.4); }
.consent-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.consent button {
  padding: 9px 16px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.consent button:hover { transform: translateY(-1px); border-color: var(--accent); }
.consent button.accept { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.consent button.accept:hover { background: #E0AA6B; border-color: #E0AA6B; }
@media (max-width: 520px) {
  .consent { bottom: 10px; padding: 14px; }
  .consent-actions { width: 100%; }
  .consent-actions button { flex: 1; }
}

/* map placeholder shown when the embed is declined */
.map-declined {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.85rem;
}
.office-map.is-declined .map-declined { display: flex; }
.office-map.is-declined iframe { display: none; }


/* --- Centred section heads: centre the rule under the heading too --- */
.section-head[style*="center"] h2::after,
.section-head.is-centered h2::after {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
}

/* ============================================================
   COMPLIANCE PAGE
   ============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.footnote {
  margin-top: 22px;
  max-width: 76ch;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* --- deadline cards --- */
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.deadline-card {
  position: relative;
  padding: 26px 22px 54px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  overflow: hidden;
}
.deadline-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--line-strong);
}
.deadline-card.is-near::before    { background: var(--accent); }
.deadline-card.is-critical::before{ background: var(--danger); }
.deadline-card.is-past           { opacity: 0.62; }
.deadline-date {
  display: block;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}
.deadline-card.is-critical .deadline-date { color: var(--danger); }
.deadline-card h2 { margin-bottom: 8px; font-size: 1.05rem; }
.deadline-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.65; margin: 0; }
.deadline-tag {
  position: absolute;
  left: 22px; bottom: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.deadline-card.is-near .deadline-tag    { color: var(--accent); border-color: rgba(212,154,87,0.45); }
.deadline-card.is-critical .deadline-tag{ color: var(--danger); border-color: rgba(194,91,91,0.5); }

/* --- penalty tables --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }
.penalty-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.penalty-table thead th {
  padding: 0 14px 12px;
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.penalty-table tbody th {
  padding: 15px 14px;
  text-align: left;
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
}
.penalty-table td {
  padding: 15px 14px;
  color: var(--muted);
  vertical-align: top;
  line-height: 1.55;
}
.penalty-table td:not(.num) {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  white-space: nowrap;
}
.penalty-table .num { text-align: right; white-space: nowrap; }
.penalty-table .num strong { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.penalty-table tbody tr { border-bottom: 1px solid var(--line); transition: background 200ms ease; }
.penalty-table tbody tr:hover { background: var(--panel-strong); }
.penalty-table tbody tr:last-child { border-bottom: 0; }

.band--paper .penalty-table thead th { color: #8A5E26; }
.band--paper .penalty-table .num strong { color: #8A5E26; }

@media (max-width: 600px) {
  .penalty-table { min-width: 540px; font-size: 0.82rem; }
  .deadline-card { padding: 22px 18px 50px; }
}

/* ============================================================
   ENQUIRY FORM
   ============================================================ */
.enquiry-form { max-width: 760px; }

.ef-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

/* group headings */
.ef-legend {
  grid-column: 1 / -1;
  margin: 0 0 -6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.ef-legend--2 { margin-top: 14px; }
.band--paper .ef-legend { color: #8A5E26; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }

.enquiry-form label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--text);
}
.enquiry-form label abbr {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9em;
}
.band--paper .enquiry-form label abbr { color: #8A5E26; }
.enquiry-form label .opt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
}

.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.enquiry-form ::placeholder { color: var(--muted); opacity: 0.62; }
.enquiry-form textarea { resize: vertical; min-height: 150px; }

/* select needs a wrapper so the chevron never overlaps long option text */
.select-wrap { position: relative; display: block; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.enquiry-form select { appearance: none; cursor: pointer; padding-right: 40px; }

.enquiry-form input:hover,
.enquiry-form select:hover,
.enquiry-form textarea:hover { border-color: var(--line-strong); }

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: #8A5E26;
  box-shadow: 0 0 0 3px rgba(138, 94, 38, 0.16);
}

.enquiry-form [aria-invalid="true"] { border-color: #B23B3B; background: rgba(178, 59, 59, 0.04); }
.enquiry-form [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(178, 59, 59, 0.14); }

.field-error { margin: 0; font-size: 0.78rem; line-height: 1.45; color: #B23B3B; }
.field-error:empty { display: none; }

.field-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.field-meta .field-error { flex: 1 1 auto; }
.field-hint {
  margin: 0;
  flex: 0 0 auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--muted);
  opacity: 0.75;
}

/* consent checkbox */
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 300 !important;
  font-size: 0.87rem !important;
  line-height: 1.65;
  color: var(--muted) !important;
}
.check input {
  flex: 0 0 auto;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #8A5E26;
  cursor: pointer;
}
.check a { color: #8A5E26; border-bottom: 1px solid rgba(138, 94, 38, 0.4); }
.check abbr { color: #8A5E26; text-decoration: none; }

/* submit row */
.form-foot {
  flex-direction: row;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-foot .button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  justify-content: center;
}
.form-foot .button[disabled] { opacity: 0.6; pointer-events: none; }
.btn-spin { display: none; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin 700ms linear infinite; }
.is-sending .btn-spin { display: inline-block; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.form-note { margin: 0; flex: 1 1 280px; font-size: 0.79rem; line-height: 1.6; color: var(--muted); }
.form-note a { color: #8A5E26; border-bottom: 1px solid rgba(138, 94, 38, 0.4); }

/* result panel */
.form-status { margin-top: 26px; }
.form-status:empty { display: none; }
.form-result {
  padding: 24px 26px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid #8A5E26;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.78);
  animation: rise-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.form-result.is-error { border-left-color: #B23B3B; }
.form-result h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 500; color: var(--text); }
.form-result p { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.7; color: var(--muted); }
.form-result p:last-child { margin-bottom: 0; }
.form-result a { color: #8A5E26; border-bottom: 1px solid rgba(138, 94, 38, 0.4); }
.ref-chip {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 11px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
  user-select: all;
}

@media (max-width: 680px) {
  .ef-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-foot .button { width: 100%; }
  .form-result { padding: 20px; }
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.err {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 240px);
  padding: clamp(56px, 9vw, 104px) 0;
  overflow: hidden;
}
.err-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

/* the mark sits behind the copy as a watermark, with the code knocked out of it */
.err-visual {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  animation: err-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.err-mark { display: block; width: 340px; height: auto; overflow: visible; }
.err-code {
  position: absolute;
  /* sit in the widest part of the shield, above the taper */
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 5.4rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--bg);
}

@keyframes err-in {
  from { opacity: 0; transform: translateY(-50%) scale(0.92); }
  to   { opacity: 0.055; transform: translateY(-50%) scale(1); }
}

.err-copy > * { animation: rise-in 760ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.err-copy > *:nth-child(1) { animation-delay: 60ms; }
.err-copy > *:nth-child(2) { animation-delay: 150ms; }
.err-copy > *:nth-child(3) { animation-delay: 240ms; }
.err-copy > *:nth-child(4) { animation-delay: 320ms; }
.err-copy > *:nth-child(5) { animation-delay: 390ms; }
.err-copy > *:nth-child(6) { animation-delay: 450ms; }

.err-copy h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.04;
  margin-bottom: 16px;
}
.err-lead {
  max-width: 52ch;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.err-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.err-path span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.err-path code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text);
  padding: 6px 11px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 2px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.err-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 26px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--panel);
}
.err-suggest-label {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.err-suggest .button { padding: 9px 15px; font-size: 0.82rem; }

.err-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.err-links a { font-size: 0.84rem; color: var(--muted); transition: color 200ms ease; }
.err-links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .err-mark { width: 240px; }
  .err-code { font-size: 3.8rem; }
  .err-visual { right: -70px; opacity: 0.045; }
  @keyframes err-in { from { opacity: 0; } to { opacity: 0.045; } }
}
@media (max-width: 620px) {
  .err { min-height: auto; padding: 44px 0 56px; }
  .err-visual { display: none; }
  .err-suggest { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .err-visual, .err-copy > * { animation: none !important; }
  .err-visual { opacity: 0.055; }
}

/* --- Autofill on the light band --- */
.band--paper .enquiry-form input:-webkit-autofill,
.band--paper .enquiry-form input:-webkit-autofill:hover,
.band--paper .enquiry-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 40px #FFFFFF inset;
  box-shadow: 0 0 0 40px #FFFFFF inset;
}
