@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk: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: 0;
  font-size: 16px;
  background: #000;
  color: #fff;
}

body.brutalist-body {
  font-family: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #00ff80;
  text-decoration: none;
  transition: none;
}

a:hover {
  color: #fff;
  background: #00ff80;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ===========================
   SITE WRAPPER
=========================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 72px;
}

/* ===========================
   HERO
=========================== */
.hero-bar {
  border-bottom: 3px solid #00ff80;
  min-height: 45vh;
  background: #000;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 45vh;
}

.hero-media {
  flex: 0 0 45%;
  border-right: 3px solid #0000ff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

.hero-figure {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
}

.hero-figure--placeholder {
  background: #000;
  border: none;
}

.hero-placeholder-text {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  color: #0000ff;
  letter-spacing: 0.15em;
  border: 4px solid #0000ff;
  padding: 1rem 2rem;
  display: block;
}

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

.hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #00ff80;
  color: #000;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border: 2px solid #000;
  text-transform: uppercase;
}

.hero-text {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  text-align: right;
  gap: 1rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #00ff80;
  text-transform: uppercase;
  border-bottom: 2px solid #00ff80;
  padding-bottom: 0.3rem;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  word-break: break-all;
}

.hero-sub {
  font-size: 1rem;
  color: #ccc;
  max-width: 380px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background: #00ff80;
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.5rem;
  border: 3px solid #00ff80;
  min-height: 44px;
  text-align: center;
  cursor: pointer;
}

.hero-cta:hover {
  background: #000;
  color: #00ff80;
}

/* ===========================
   MAIN
=========================== */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.content-section {
  display: grid;
  grid-template-columns: 200px 60px 1fr;
  grid-template-rows: auto;
  border-bottom: 2px solid #222;
  min-height: 60vh;
}

/* ===========================
   ASIDE
=========================== */
.content-aside {
  grid-column: 1;
  border-right: 3px solid #0000ff;
  background: #000;
  padding: 2rem 1rem;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}

.aside-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aside-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #00ff80;
  text-transform: uppercase;
  border-bottom: 2px solid #00ff80;
  padding-bottom: 0.4rem;
  display: block;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aside-nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #aaa;
  padding: 0.35rem 0.5rem;
  border-left: 3px solid transparent;
  display: block;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-link:hover {
  color: #00ff80;
  background: #111;
  border-left-color: #00ff80;
}

.aside-brand {
  border-top: 2px solid #222;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.aside-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.aside-brand-desc {
  font-size: 0.65rem;
  color: #555;
  line-height: 1.4;
  word-break: break-all;
}

/* ===========================
   DECO FIGURE
=========================== */
.content-deco {
  grid-column: 2;
  border-right: 3px solid #00ff80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 0;
  gap: 1rem;
  background: #000;
  position: relative;
  overflow: hidden;
}

.deco-block {
  width: 28px;
  height: 28px;
}

.deco-block--green {
  background: #00ff80;
}

.deco-block--blue {
  background: #0000ff;
}

.deco-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  margin-top: auto;
  padding-bottom: 1rem;
}

/* ===========================
   CONTENT BODY
=========================== */
.content-body {
  grid-column: 3;
  padding: 3rem 2.5rem;
  background: #000;
}

/* Inner content sections from page.content */
.content-body div {
  padding: 3rem 0;
  border-bottom: 2px solid #111;
  scroll-margin-top: 80px;
}

.content-body div:last-child {
  border-bottom: none;
}

.content-body h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  border-left: 6px solid #00ff80;
  padding-left: 1rem;
  line-height: 1.2;
}

.content-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #00ff80;
  margin: 1.5rem 0 0.8rem;
  border-bottom: 2px solid #111;
  padding-bottom: 0.4rem;
}

.content-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0000ff;
  margin: 1.2rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content-body p {
  margin-bottom: 1rem;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.75;
}

.content-body ul, .content-body ol {
  margin: 0.8rem 0 1rem 1.5rem;
  color: #ccc;
}

.content-body li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.content-body strong {
  color: #00ff80;
  font-weight: 700;
}

.content-body em {
  color: #aaa;
  font-style: italic;
}

.content-body a {
  color: #00ff80;
  border-bottom: 1px solid #00ff80;
  padding-bottom: 1px;
}

.content-body a:hover {
  background: #00ff80;
  color: #000;
  border-bottom-color: transparent;
}

.content-body blockquote {
  border-left: 4px solid #0000ff;
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: #0a0a1a;
  color: #aac;
  font-style: italic;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.content-body th {
  background: #00ff80;
  color: #000;
  font-weight: 700;
  padding: 0.6rem 1rem;
  text-align: left;
  border: 2px solid #00ff80;
}

.content-body td {
  border: 2px solid #222;
  padding: 0.5rem 1rem;
  color: #ccc;
}

.content-body tr:nth-child(even) td {
  background: #0a0a0a;
}

/* small eyebrow before h2/h3 */
.content-body small + h2,
.content-body small + h3 {
  margin-top: 0.25rem;
}

.content-body div > small {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #0000ff;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  border-top: 3px solid #00ff80;
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #00ff80;
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 0.75rem;
  color: #555;
}

/* ===========================
   BOTTOM NAV
=========================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  border-top: 3px solid #00ff80;
}

.bottom-nav-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.bottom-nav-dl {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 56px;
}

.bnav-brand {
  flex: 0 0 auto;
  order: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.bnav-brand-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00ff80;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  border: 2px solid #00ff80;
  min-height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.bnav-brand-link:hover {
  background: #00ff80;
  color: #000;
}

.bnav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnav-left:nth-of-type(1) { order: 1; }
.bnav-left:nth-of-type(2) { order: 2; }
.bnav-left:nth-of-type(3) { order: 3; }

.bnav-cta-slot {
  flex: 0 0 auto;
  order: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.bnav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnav-right:nth-of-type(6) { order: 6; }
.bnav-right:nth-of-type(7) { order: 7; }

.bnav-link {
  font-size: 0.65rem;
  font-weight: 600;
  color: #888;
  padding: 0.5rem 0.3rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.bnav-link:hover {
  color: #00ff80;
  background: transparent;
}

.bnav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0000ff;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.8rem;
  border: 2px solid #0000ff;
  min-height: 40px;
  white-space: nowrap;
}

.bnav-cta:hover {
  background: #fff;
  color: #0000ff;
}

/* ===========================
   STAGGER ANIMATION
=========================== */
@media (prefers-reduced-motion: no-preference) {
  .content-body div {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .content-body div.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .aside-nav-link {
    transition: border-left-color 0.15s, color 0.15s, background 0.15s;
  }

  .hero-cta {
    transition: background 0.15s, color 0.15s;
  }

  .bnav-brand-link {
    transition: background 0.15s, color 0.15s;
  }

  .bnav-cta {
    transition: background 0.15s, color 0.15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===========================
   RESPONSIVE — TABLET
=========================== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    min-height: 45vh;
  }

  .hero-media {
    flex: 0 0 40%;
    border-right: none;
    border-bottom: 3px solid #0000ff;
    min-height: 200px;
  }

  .hero-text {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem;
  }

  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .content-aside {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    border-right: none;
    border-bottom: 3px solid #0000ff;
    max-height: none;
    padding: 1rem 1.5rem;
  }

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

  .aside-nav-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.35rem 0.6rem;
    min-height: 40px;
  }

  .aside-nav-link:hover {
    border-bottom-color: #00ff80;
    border-left: none;
  }

  .content-deco {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.5rem 1.5rem;
    border-right: none;
    border-bottom: 2px solid #00ff80;
    gap: 0.5rem;
    height: 48px;
  }

  .deco-block {
    width: 20px;
    height: 20px;
  }

  .deco-num {
    writing-mode: horizontal-tb;
    margin-top: 0;
    padding-bottom: 0;
    margin-left: auto;
  }

  .content-body {
    grid-column: 1;
    grid-row: 3;
    padding: 2rem 1.5rem;
  }
}

/* ===========================
   RESPONSIVE — MOBILE 375px
=========================== */
@media (max-width: 600px) {
  html {
    scroll-padding-top: 0;
  }

  .hero-bar {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-media {
    min-height: 160px;
  }

  .hero-placeholder-text {
    font-size: 1.8rem;
    padding: 0.75rem 1rem;
  }

  .hero-text {
    padding: 1.2rem 1rem;
    gap: 0.75rem;
  }

  .hero-h1 {
    font-size: 1.5rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-cta {
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
  }

  .content-body {
    padding: 1.5rem 1rem;
  }

  .content-body h2 {
    font-size: 1.2rem;
    padding-left: 0.75rem;
    border-left-width: 4px;
  }

  .content-body h3 {
    font-size: 1rem;
  }

  .content-body div {
    padding: 2rem 0;
    scroll-margin-top: 64px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
  }

  .bottom-nav-dl {
    height: 52px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bottom-nav-dl::-webkit-scrollbar {
    display: none;
  }

  .bnav-link {
    font-size: 0.58rem;
    padding: 0.5rem 0.2rem;
  }

  .bnav-brand-link {
    font-size: 0.72rem;
    padding: 0.4rem 0.5rem;
  }

  .bnav-cta {
    font-size: 0.62rem;
    padding: 0.4rem 0.5rem;
  }

  .aside-inner {
    gap: 1rem;
  }

  .aside-brand {
    display: none;
  }
}

/* ===========================
   SECTION SCROLL MARGIN (fixed bottom nav)
=========================== */
div[id] {
  scroll-margin-top: 0;
}

@media (max-width: 900px) {
  div[id] {
    scroll-margin-top: 16px;
  }
}

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