/* ============================================================
   RB DEFENCE — restricted aesthetic
   monochrome · terminal · controlled access
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --fg: #e8e8e8;
  --fg-dim: #888888;
  --fg-faint: #555555;
  --accent: #ffffff;
  --warn: #d4d4d4;
  --grid: rgba(255, 255, 255, 0.025);

  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', ui-monospace, monospace;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

::selection { background: var(--fg); color: var(--bg); }

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { border-color: var(--fg); }

/* ===== scanlines overlay ===== */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}

/* ===== top bar ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border: none;
}
.topbar .brand img { height: 16px; opacity: 0.95; }
.topbar .brand .sep { color: var(--fg-faint); }
.topbar .brand .tag { color: var(--fg-dim); font-weight: 400; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a {
  color: var(--fg-dim);
  border: none;
  position: relative;
  padding-bottom: 2px;
}
.topbar nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.2s ease;
}
.topbar nav a:hover { color: var(--fg); }
.topbar nav a:hover::after { width: 100%; }
.topbar nav a.active { color: var(--fg); }
.topbar nav a.active::after { width: 100%; }
.topbar .status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-dim);
}
.topbar .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 28px 80px;
  position: relative;
  text-align: center;
}

.hero .hero-logo {
  width: clamp(220px, 30vw, 360px);
  height: auto;
  margin: 0 auto 48px;
  opacity: 0.95;
  display: block;
}

.hero .meta-top {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .meta-top span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta-top .bar { width: 24px; height: 1px; background: var(--fg-faint); }

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 1100px;
}
.hero h1 strong {
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
  max-width: 720px;
  margin: 0 auto 56px;
  line-height: 1.8;
}

.hero .restricted-banner {
  margin-top: 40px;
  padding: 14px 24px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.01);
}
.hero .restricted-banner .icon {
  width: 8px; height: 8px;
  background: var(--fg);
  display: inline-block;
}

/* ===== section base ===== */
section.block {
  padding: 100px 28px;
  border-top: 1px solid var(--line);
  position: relative;
}
.block .inner {
  max-width: 1200px;
  margin: 0 auto;
}
.block-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.block-header .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.block-header h2 {
  font-weight: 200;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  flex: 1;
}
.block-header .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* ===== capabilities grid ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-cell {
  padding: 32px 28px;
  background: var(--bg);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.2s ease;
}
.cap-cell:hover { background: var(--bg-2); }
.cap-cell .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
}
.cap-cell h3 {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.cap-cell p {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin-top: auto;
}

/* ===== about strip ===== */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.about-strip .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.about-strip p {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--fg);
  max-width: 720px;
}
.about-strip p + p { margin-top: 20px; color: var(--fg-dim); font-size: 1rem; }

/* ===== programs / accolades ===== */
.programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .programs { grid-template-columns: 1fr; } }
.program {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.program .acro {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--fg-faint);
  margin-bottom: 12px;
}
.program .name {
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.3;
}
.program .desc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fg-dim);
}
.program .role {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

.accolade {
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}
.accolade .award-mark {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  white-space: nowrap;
}
.accolade .award-body h4 {
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.accolade .award-body .small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.accolade .year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--fg-faint);
  text-transform: uppercase;
  text-align: right;
}

/* ===== portfolio (capabilities) ===== */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.port-cell {
  background: var(--bg);
  padding: 28px 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.port-cell .code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
}
.port-cell .title {
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  line-height: 1.4;
  margin-top: 12px;
}

/* ===== featured product card (BASZTA teaser) ===== */
.featured {
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(20,20,20,0.6) 0%, rgba(10,10,10,0.6) 100%),
    radial-gradient(ellipse at top right, rgba(255,255,255,0.03), transparent 50%);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  border-top: 1px solid var(--fg);
  border-left: 1px solid var(--fg);
}
.featured::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  border-bottom: 1px solid var(--fg);
  border-right: 1px solid var(--fg);
}
.featured .feat-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.featured h3 {
  font-weight: 200;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.05;
}
.featured h3 strong { font-weight: 600; }
.featured .feat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.featured .feat-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 32px;
  max-width: 480px;
}
.featured .feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  transition: all 0.2s ease;
}
.featured .feat-cta:hover {
  background: var(--fg);
  color: var(--bg);
}
.featured .feat-cta .arrow {
  transition: transform 0.2s ease;
}
.featured .feat-cta:hover .arrow { transform: translateX(4px); }

/* parabolic visualization (replaced by photo card) */
.parabolic-viz {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.feat-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000;
}
.feat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.0) brightness(0.92);
  transition: filter 0.4s ease;
}
.feat-photo:hover img {
  filter: contrast(1.05) brightness(1.0);
}
.feat-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(10,10,10,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}
.feat-photo .photo-stamp {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--fg);
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.feat-photo .photo-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--fg);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.feat-photo .photo-corner.tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.feat-photo .photo-corner.tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.feat-photo .photo-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.feat-photo .photo-corner.br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }

/* ===== partner logos strip ===== */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 36px;
}
.partner-logo {
  background: var(--bg);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  position: relative;
}
.partner-logo img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.3) contrast(0.95);
  opacity: 0.55;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.partner-logo:hover img {
  opacity: 1;
  filter: brightness(1.6) contrast(1.05);
}
.partner-logo .partner-name {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  color: var(--fg-faint);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .partners-strip { grid-template-columns: repeat(2, 1fr); }
  .partner-logo { height: 110px; padding: 18px 20px; }
}
@media (max-width: 480px) {
  .partner-logo .partner-name { display: none; }
}

/* ===== ENTITIES section (working-with) ===== */
.entities-intro {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  max-width: 780px;
}
.entities-intro strong {
  color: var(--fg);
  font-weight: 500;
}
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-block .ch {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-block .email {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  border: none;
}
.contact-block .legal {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--fg-dim);
}

/* ===== footer ===== */
footer.foot {
  padding: 40px 28px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}
footer.foot .lhs { display: flex; align-items: center; gap: 16px; }
footer.foot img { height: 14px; opacity: 0.5; }

/* ============================================================
   BASZTA SUBPAGE
   ============================================================ */

.baszta-hero {
  min-height: 100vh;
  padding: 120px 28px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.baszta-hero .inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.baszta-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.baszta-hero .crumbs a { color: var(--fg-faint); border: none; }
.baszta-hero .crumbs a:hover { color: var(--fg); }

.baszta-hero .grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}
.baszta-hero .wordmark {
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.baszta-hero h1 {
  font-weight: 200;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 28px;
  max-width: 540px;
}
.baszta-hero .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.baszta-hero .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg);
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
}
.baszta-hero .body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fg-dim);
  max-width: 540px;
}

.viz-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  background: #000;
  overflow: hidden;
}
.viz-wrap img.dashboard {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.0) brightness(0.92);
  transition: filter 0.4s ease;
}
.viz-wrap:hover img.dashboard {
  filter: contrast(1.08) brightness(1.0);
}
.viz-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(10,10,10,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}
.viz-wrap .corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--fg);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.viz-wrap .corner.tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.viz-wrap .corner.tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.viz-wrap .corner.bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.viz-wrap .corner.br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }
.viz-wrap .label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fg);
  text-transform: uppercase;
  z-index: 2;
  background: rgba(0,0,0,0.55);
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.viz-wrap .label.tl-l { top: 16px; left: 36px; }
.viz-wrap .label.tr-l { top: 16px; right: 36px; }
.viz-wrap .label.bl-l { bottom: 16px; left: 36px; }
.viz-wrap .label.br-l { bottom: 16px; right: 36px; }

/* ===== field banner (full-width photo) ===== */
.field-banner {
  position: relative;
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #000;
}
.field-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: cover;
}
.field-banner .field-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(10,10,10,0.65) 100%);
}
.field-banner .field-cap {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.field-banner .field-cap .lhs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--fg);
  text-transform: uppercase;
}
.field-banner .field-cap .lhs .title {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-sans);
  font-weight: 200;
  letter-spacing: -0.005em;
  text-transform: none;
  margin-top: 8px;
  max-width: 720px;
  line-height: 1.2;
}
.field-banner .field-cap .rhs {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  text-transform: uppercase;
  text-align: right;
}
.field-banner .field-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--fg);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.field-banner .field-corner.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.field-banner .field-corner.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.field-banner .field-corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.field-banner .field-corner.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
@media (max-width: 700px) {
  .field-banner img { max-height: 55vh; }
  .field-banner .field-cap { left: 16px; right: 16px; bottom: 18px; }
  .field-banner .field-cap .lhs .title { font-size: 1.1rem; }
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.split > div {
  background: var(--bg);
  padding: 48px 40px;
}
.split .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.split h3 {
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.split p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fg-dim);
}
.split p + p { margin-top: 14px; }

/* ===== how it works (numbered steps) ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--bg);
  padding: 36px 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--fg-faint);
  margin-bottom: 32px;
}
.step .glyph {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 16px;
  color: var(--fg);
}
.step h4 {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  margin-bottom: 12px;
}
.step p {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin-top: auto;
}

/* ===== specs table ===== */
.spec-table {
  border: 1px solid var(--line);
  width: 100%;
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  padding: 18px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  align-items: center;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--bg-2); }
.spec-row .k {
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.spec-row .v {
  color: var(--fg);
  font-weight: 500;
  text-align: right;
  letter-spacing: 0.02em;
}
.spec-row .v small {
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  margin-left: 6px;
}

/* ===== comparison ===== */
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}
.cmp th, .cmp td {
  padding: 16px 20px;
  text-align: center;
  border: 1px solid var(--line);
  letter-spacing: 0.05em;
}
.cmp th {
  font-weight: 400;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  background: var(--bg-2);
}
.cmp td.feat {
  text-align: left;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.cmp td.yes { color: var(--fg); font-weight: 600; }
.cmp td.no { color: var(--fg-faint); }
.cmp td.partial { color: var(--fg-dim); }
.cmp .baszta-col { background: rgba(255,255,255,0.04); }

/* ===== applications ===== */
.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .apps { grid-template-columns: 1fr; } }
.app-cell {
  background: var(--bg);
  padding: 28px 24px;
  min-height: 140px;
}
.app-cell .num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  margin-bottom: 16px;
}
.app-cell h4 {
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  margin-bottom: 8px;
}
.app-cell p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ===== integration boxes ===== */
.intg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .intg { grid-template-columns: repeat(2, 1fr); } }
.intg-box {
  background: var(--bg);
  padding: 40px 36px;
}
.intg-box .stamp {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--fg);
  text-transform: uppercase;
  border: 1px solid var(--fg);
  padding: 5px 10px;
  display: inline-block;
  margin-bottom: 20px;
}
.intg-box h3 {
  font-weight: 300;
  font-size: 1.4rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
.intg-box p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--fg-dim);
}
.intg-box ul {
  list-style: none;
  margin-top: 18px;
}
.intg-box ul li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  letter-spacing: 0.03em;
}
.intg-box ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--fg);
}

/* ===== access gate (clearance bar) ===== */
.access-gate {
  border: 1px solid var(--line-2);
  padding: 36px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 20px,
      rgba(255,255,255,0.015) 20px,
      rgba(255,255,255,0.015) 40px
    );
}
.access-gate .stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--fg);
  text-transform: uppercase;
  border: 1px solid var(--fg);
  padding: 12px 16px;
  white-space: nowrap;
}
.access-gate p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.access-gate .cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--fg);
  color: var(--fg);
  white-space: nowrap;
}
.access-gate .cta:hover { background: var(--fg); color: var(--bg); }

/* ===== responsive ===== */

/* Tablets and small laptops */
@media (max-width: 1100px) {
  .topbar { padding: 12px 20px; }
  .topbar .brand .tag { display: none; }  /* hide EST. 2020... on tablet+ */
  .topbar nav { gap: 18px; }
  .hero { padding: 110px 22px 70px; }
  section.block { padding: 80px 22px; }
}

/* Phones (landscape and large) */
@media (max-width: 900px) {
  /* TOPBAR — single row, no tag, compact nav */
  .topbar {
    padding: 10px 16px;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
  }
  .topbar .brand img { height: 14px; }
  .topbar .brand .sep { display: none; }
  .topbar .brand .tag { display: none; }
  .topbar nav {
    gap: 14px;
    margin-left: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { font-size: 10px; letter-spacing: 0.1em; white-space: nowrap; }
  .topbar .status { display: none; }

  /* HERO */
  .hero { padding: 96px 18px 56px; min-height: auto; }
  .hero .hero-logo { width: clamp(180px, 55vw, 240px); margin-bottom: 32px; }
  .hero .meta-top {
    font-size: 9px;
    letter-spacing: 0.2em;
    gap: 14px;
    margin-bottom: 24px;
  }
  .hero .meta-top .bar { width: 14px; }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 18px;
  }
  .hero .lede {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-bottom: 36px;
  }
  .hero .restricted-banner {
    padding: 11px 16px;
    font-size: 8.5px;
    letter-spacing: 0.18em;
    gap: 10px;
    margin-top: 24px;
    max-width: 100%;
  }
  .hero .restricted-banner .icon { width: 6px; height: 6px; }

  /* SECTION BLOCKS */
  section.block { padding: 60px 18px; }
  .block-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 16px;
  }
  .block-header h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); line-height: 1.15; }
  .block-header .meta { font-size: 9px; }
  .block-header .num { font-size: 10px; }

  /* ABOUT */
  .about-strip { grid-template-columns: 1fr; gap: 14px; }
  .about-strip p { font-size: 1rem; }
  .about-strip p + p { font-size: 0.92rem; }

  /* CAPABILITIES — single column on phone */
  .cap-grid { grid-template-columns: 1fr; }
  .cap-cell { min-height: auto; padding: 26px 22px; }
  .cap-cell .idx { margin-bottom: 16px; }
  .cap-cell h3 { font-size: 1rem; margin-bottom: 10px; }
  .cap-cell p { font-size: 11.5px; }

  /* FEATURED BASZTA card */
  .featured {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "text";
    gap: 24px;
    padding: 32px 22px;
  }
  .featured > div:first-child { grid-area: text; }
  .featured > .parabolic-viz { grid-area: photo; }
  .featured h3 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .featured .feat-meta { font-size: 9px; gap: 10px; flex-wrap: wrap; }
  .featured .feat-sub { font-size: 10px; margin-bottom: 20px; }
  .featured .feat-body { font-size: 0.92rem; margin-bottom: 22px; }
  .featured .feat-cta {
    padding: 12px 18px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  /* Photo: change aspect to be more landscape on phone (cleaner thumbnail) */
  .feat-photo { aspect-ratio: 16 / 10; }
  .feat-photo .photo-stamp {
    bottom: 10px;
    left: 10px;
    font-size: 8px;
    letter-spacing: 0.2em;
    padding: 4px 8px;
  }
  .feat-photo .photo-corner { width: 14px; height: 14px; top: 6px; left: 6px; }
  .feat-photo .photo-corner.tl { top: 6px; left: 6px; }
  .feat-photo .photo-corner.tr { top: 6px; right: 6px; }
  .feat-photo .photo-corner.bl { bottom: 6px; left: 6px; }
  .feat-photo .photo-corner.br { bottom: 6px; right: 6px; }

  /* PROGRAMS — 2 columns on phone */
  .programs { grid-template-columns: repeat(2, 1fr); }
  .program { padding: 24px 18px; min-height: auto; }
  .program .acro { font-size: 9px; }
  .program .name { font-size: 0.95rem; margin-bottom: 12px; }
  .program .desc { font-size: 10.5px; line-height: 1.65; }
  .program .role { font-size: 9px; padding-top: 12px; margin-top: 16px; }

  /* ACCOLADE strip */
  .accolade {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 20px;
    margin-top: 24px;
  }
  .accolade .award-mark { font-size: 9px; padding: 8px 12px; }
  .accolade .award-body h4 { font-size: 1.05rem; line-height: 1.3; }
  .accolade .award-body .small { font-size: 10.5px; line-height: 1.65; }
  .accolade .year { text-align: left; font-size: 9px; }

  /* PARTNERS — 2 columns on phone */
  .partners-strip { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .partner-logo { height: 100px; padding: 16px 20px; }
  .partner-logo img { max-height: 50px; }
  .partner-logo .partner-name { font-size: 7.5px; bottom: 6px; letter-spacing: 0.2em; }
  .entities-intro { font-size: 11px; line-height: 1.75; }

  /* ACCESS GATE */
  .access-gate {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
  }
  .access-gate .stamp { font-size: 9px; padding: 10px 14px; }
  .access-gate p { font-size: 11.5px; line-height: 1.7; }
  .access-gate .cta { font-size: 10px; padding: 10px 16px; align-self: flex-start; }

  /* CONTACT */
  .contact-block { grid-template-columns: 1fr; gap: 28px; }
  .contact-block .ch { font-size: 10px; }
  .contact-block .email { font-size: 1.05rem; word-break: break-all; }
  .contact-block .legal { font-size: 10.5px; line-height: 1.85; }

  /* FOOTER */
  footer.foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 18px 24px;
    font-size: 9px;
  }

  /* === BASZTA HERO === */
  .baszta-hero { padding: 96px 18px 50px; min-height: auto; }
  .baszta-hero .crumbs { font-size: 9px; letter-spacing: 0.22em; margin-bottom: 22px; }
  .baszta-hero .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .baszta-hero .wordmark {
    font-size: clamp(3rem, 16vw, 5rem);
    margin-bottom: 18px;
  }
  .baszta-hero h1 {
    font-size: clamp(1.05rem, 4.6vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 22px;
  }
  .baszta-hero .tag-row { gap: 7px; margin-bottom: 26px; }
  .baszta-hero .tag {
    font-size: 9px;
    letter-spacing: 0.14em;
    padding: 6px 10px;
  }
  .baszta-hero .body { font-size: 0.9rem; line-height: 1.7; }
  .viz-wrap {
    margin: 0;
    aspect-ratio: 16 / 10;
    max-width: 100%;
  }
  .viz-wrap .label {
    font-size: 8px;
    letter-spacing: 0.15em;
    padding: 3px 6px;
  }
  .viz-wrap .label.tl-l { top: 12px; left: 28px; }
  .viz-wrap .label.tr-l { top: 12px; right: 28px; }
  .viz-wrap .label.bl-l { bottom: 12px; left: 28px; }
  .viz-wrap .label.br-l { bottom: 12px; right: 28px; }
  .viz-wrap .corner { width: 14px; height: 14px; }
  .viz-wrap .corner.tl { top: 6px; left: 6px; }
  .viz-wrap .corner.tr { top: 6px; right: 6px; }
  .viz-wrap .corner.bl { bottom: 6px; left: 6px; }
  .viz-wrap .corner.br { bottom: 6px; right: 6px; }

  /* THREAT/ANSWER split */
  .split { grid-template-columns: 1fr; }
  .split > div { padding: 28px 22px; }
  .split h3 { font-size: 1.25rem; margin-bottom: 14px; }
  .split p { font-size: 0.92rem; }
  .split .label { font-size: 9px; margin-bottom: 16px; }

  /* FIELD BANNER on baszta */
  .field-banner {
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }
  .field-banner img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 50% 35%;  /* shift to keep masts in frame */
  }
  .field-banner .field-overlay {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.0) 25%,
      rgba(0,0,0,0.0) 55%,
      rgba(10,10,10,0.85) 100%);
  }
  .field-banner .field-cap {
    bottom: 18px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .field-banner .field-cap .lhs {
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .field-banner .field-cap .lhs .title {
    font-size: 1.05rem;
    margin-top: 8px;
    line-height: 1.3;
    max-width: 100%;
  }
  .field-banner .field-cap .rhs {
    font-size: 8.5px;
    letter-spacing: 0.22em;
    text-align: left;
  }
  .field-banner .field-corner { width: 16px; height: 16px; }
  .field-banner .field-corner.tl { top: 10px; left: 10px; }
  .field-banner .field-corner.tr { top: 10px; right: 10px; }
  .field-banner .field-corner.bl { bottom: 10px; left: 10px; }
  .field-banner .field-corner.br { bottom: 10px; right: 10px; }

  /* OPERATING PRINCIPLE — 2 cols on phone */
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { min-height: auto; padding: 24px 18px; }
  .step .num { margin-bottom: 18px; font-size: 9px; }
  .step .glyph { font-size: 1.3rem; margin-bottom: 12px; }
  .step h4 { font-size: 0.95rem; margin-bottom: 10px; }
  .step p { font-size: 10.5px; line-height: 1.6; }

  /* SPEC TABLE */
  .spec-row { padding: 14px 18px; font-size: 12px; }
  .spec-row .k { font-size: 11.5px; }
  .spec-row .v small { font-size: 9px; }

  /* COMPARISON TABLE — keep 5 cols but compress */
  .cmp { font-size: 9.5px; table-layout: fixed; width: 100%; }
  .cmp th, .cmp td { padding: 9px 4px; }
  .cmp th { font-size: 8.5px; letter-spacing: 0.1em; }
  .cmp td.feat {
    text-align: left;
    font-size: 9px;
    letter-spacing: 0.05em;
    padding-left: 8px;
    word-break: break-word;
    line-height: 1.3;
  }
  /* Make feature col narrower, comparison cols equal */
  .cmp colgroup col:first-child,
  .cmp th:first-child, .cmp td:first-child { width: 30%; }

  /* INTEGRATIONS */
  .intg { grid-template-columns: 1fr; }
  .intg-box { padding: 28px 22px; }
  .intg-box .stamp { font-size: 8.5px; padding: 5px 9px; margin-bottom: 16px; }
  .intg-box h3 { font-size: 1.2rem; margin-bottom: 14px; }
  .intg-box p { font-size: 0.9rem; }
  .intg-box ul li { font-size: 10.5px; }

  /* APPLICATIONS — 2 cols */
  .apps { grid-template-columns: repeat(2, 1fr); }
  .app-cell { min-height: auto; padding: 22px 18px; }
  .app-cell h4 { font-size: 0.92rem; }
  .app-cell p { font-size: 10.5px; line-height: 1.55; }

  /* Reduce body grid noise on small screens */
  body { background-size: 32px 32px; }
}

/* Very small phones (iPhone SE, older Androids) */
@media (max-width: 480px) {
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: 9.5px; letter-spacing: 0.08em; }

  .hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
  .hero .lede { font-size: 10px; letter-spacing: 0.14em; }
  .hero .meta-top {
    flex-direction: column;
    gap: 8px;
    font-size: 8.5px;
  }
  .hero .restricted-banner { font-size: 7.5px; padding: 9px 12px; }

  /* Capabilities, partners, apps, steps — single column on tiny */
  .partners-strip { grid-template-columns: repeat(2, 1fr); }
  .partner-logo .partner-name { display: none; }
  .steps { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
  /* Programs stays at 2 cols but with even more compact text */
  .programs { grid-template-columns: repeat(2, 1fr); }
  .program { padding: 18px 14px; }
  .program .name { font-size: 0.82rem; line-height: 1.2; margin-bottom: 10px; }
  .program .desc { font-size: 9.5px; line-height: 1.55; }
  .program .role { font-size: 8px; padding-top: 10px; margin-top: 12px; }
  .program .acro { font-size: 8.5px; margin-bottom: 8px; }

  /* Spec table stack */
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }
  .spec-row .v { text-align: left; font-size: 11.5px; }

  /* Comparison table — make it horizontally scrollable wrapper as last resort */
  .cmp-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;
    padding: 0 18px;
  }
  .cmp { min-width: 460px; font-size: 9px; }
  .cmp th, .cmp td { padding: 8px 5px; }
  .cmp td.feat { font-size: 8.5px; }

  /* Footer */
  footer.foot { font-size: 8.5px; }
}
