@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
  background: #000;
  color: #fff;
}

body {
  font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.8rem); margin-bottom: 0.35em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); margin-bottom: 0.5em; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }

/* ===========================
   HEADER
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #000;
  border-bottom: 1px solid #fff;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-wordmark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* Hamburger toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid #fff;
  cursor: pointer;
  padding: 10px 12px;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

/* Nav row */
.nav-row {
  padding: 0.5rem 2rem;
  overflow-x: auto;
}

.nav-row p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  align-items: center;
  white-space: nowrap;
}

.nav-row p a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.55rem 0.85rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.nav-row p a:hover,
.nav-row p a:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
  outline: none;
}

/* ===========================
   FULLSCREEN MENU
=========================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.fs-menu-inner {
  width: 100%;
  max-width: 700px;
  padding: 2rem;
  display: grid;
  gap: 2rem;
}

.fs-close {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  transition: background 0.15s;
}

.fs-close:hover { background: #fff; color: #000; }

.fs-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 1rem;
}

.fs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fs-nav-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: #fff;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: padding-left 0.2s, border-color 0.2s;
  min-height: 48px;
}

.fs-nav-link::before {
  content: attr(data-index);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  min-width: 2em;
}

.fs-nav-link:hover {
  padding-left: 1rem;
  border-bottom-color: #fff;
}

.fs-search {
  display: flex;
  border: 1px solid #fff;
}

.fs-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  outline: none;
  min-height: 44px;
}

.fs-search-input::placeholder { color: rgba(255,255,255,0.35); }

.fs-search-btn {
  background: #fff;
  border: none;
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  padding: 0 1.2rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.15s;
}

.fs-search-btn:hover { background: #ccc; }

/* ===========================
   HERO
=========================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 96px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.72) 60%,
    rgba(0,0,0,0.92) 100%
  );
}

.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: #000;
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.hero-h1 {
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  padding: 0.75rem 2.5rem;
  min-height: 48px;
  border: 2px solid #fff;
  transition: background 0.15s, color 0.15s;
}

.hero-cta:hover {
  background: transparent;
  color: #fff;
}

/* ===========================
   CONTENT LAYOUT
=========================== */
.content-body {
  background: #000;
  padding: 4rem 0 5rem;
}

.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ===========================
   ASIDE
=========================== */
.content-aside {
  position: sticky;
  top: 110px;
  border-right: 1px solid rgba(255,255,255,0.2);
  padding-right: 2rem;
}

.aside-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.aside-nav li a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  display: block;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav li a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.3);
}

.aside-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 1.25rem 0;
}

.aside-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   CONTENT MAIN
=========================== */
.content-main {
  min-width: 0;
}

.section-h2 {
  color: #fff;
  margin-bottom: 0.4em;
}

.subtitle, .subhead, .desc, .lead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ===========================
   INJECTED CONTENT STYLES
=========================== */
.content-main div {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  scroll-margin-top: 110px;
}

.content-main div:first-child {
  border-top: none;
  padding-top: 0;
}

.content-main div h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 0.35em;
  color: #fff;
}

.content-main div h3 {
  font-size: 1.15rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: rgba(255,255,255,0.9);
}

.content-main div p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
}

.content-main div ul,
.content-main div ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1em;
}

.content-main div ul li,
.content-main div ol li {
  margin-bottom: 0.4em;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  font-size: 1rem;
}

.content-main div ol {
  list-style: decimal;
}

.content-main div blockquote {
  border-left: 3px solid #fff;
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
}

.content-main div a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.15s;
}

.content-main div a:hover {
  border-bottom-color: #fff;
}

.content-main div table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.content-main div th,
.content-main div td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}

.content-main div th {
  background: rgba(255,255,255,0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Drop cap for first div */
.content-main > div:first-of-type > p:first-of-type::first-letter {
  float: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.85;
  margin-right: 0.12em;
  margin-top: 0.05em;
  color: #fff;
}

/* Card-like blocks inside content */
.content-main div .card,
.content-main div [class*="card"] {
  border-radius: 28px;
  border-bottom: 3px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.03);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: background 0.15s, border-color 0.2s;
}

.content-main div .card:hover,
.content-main div [class*="card"]:hover {
  background: rgba(255,255,255,0.07);
  border-bottom-color: #fff;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #000;
  border-top: 2px solid #fff;
  padding: 3rem 2rem 2rem;
}

.footer-brand-row {
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer-wordmark {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.08;
  user-select: none;
  display: block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
}

.footer-address {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-address a {
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-address a:hover { color: #fff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.footer-links li a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem 0.6rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.footer-links li a:hover { color: rgba(255,255,255,0.75); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  margin: 0;
}

/* ===========================
   SCROLL REVEAL
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.visible {
  animation: fadeUp 0.55s ease forwards;
}

.stagger-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-item.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-aside {
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .aside-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .aside-nav li a {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
    min-height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
  }
}

@media (max-width: 600px) {
  .brand-row {
    padding: 0.6rem 1rem;
  }

  .nav-row {
    padding: 0.4rem 1rem;
  }

  .nav-row p a {
    font-size: 0.7rem;
    padding: 0.5rem 0.6rem;
  }

  .hero-section {
    margin-top: 88px;
  }

  .content-body {
    padding: 2.5rem 0 3rem;
  }

  .content-layout {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .footer-wordmark {
    font-size: clamp(2rem, 15vw, 4rem);
  }

  .site-footer {
    padding: 2rem 1rem 1.5rem;
  }
}

/* ===========================
   REDUCED MOTION
=========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .stagger-item {
    opacity: 1;
    transform: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
