@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* =============================================
   CSS Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   Typography Scale
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

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

a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

a:hover {
  opacity: 0.65;
}

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

ul, ol {
  padding-left: 1.5rem;
}

li {
  line-height: 1.7;
  color: #e0e0e0;
}

/* =============================================
   Layout: Site Wrapper (aside + page-body)
   ============================================= */
.site-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.site-aside {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  border-right: 1px solid #333;
  padding: 2rem 1.5rem;
  z-index: 100;
  overflow-y: auto;
}

.page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =============================================
   Brand Row (inside aside)
   ============================================= */
.brand-row {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.brand-logo {
  display: block;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.brand-text {
  font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  word-break: break-word;
}

.logo-img {
  max-height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand-tagline {
  display: block;
  font-size: 0.72rem;
  color: #666;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* =============================================
   Navigation (inside aside)
   ============================================= */
.main-nav {
  flex: 1;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.main-nav ul li {
  border-bottom: 1px solid #1a1a1a;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ccc;
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
  min-height: 44px;
}

.main-nav ul li a:hover {
  color: #fff;
  padding-left: 0.5rem;
  opacity: 1;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #333;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  padding: 4rem 4rem 3rem;
}

/* Grid / dot matrix background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: right;
  max-width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: #888;
  max-width: 480px;
  margin-left: auto;
  line-height: 1.65;
}

/* =============================================
   Main Content
   ============================================= */
.main-content {
  flex: 1;
  padding: 0;
}

.wrap {
  max-width: 100%;
}

.content-section {
  padding: 0;
}

.content-article {
  padding: 3rem 4rem;
}

/* Section scroll offset for sticky nav */
div[id] {
  scroll-margin-top: 0px;
}

/* =============================================
   Content Styles (page.content injected)
   ============================================= */
.content-article h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 4rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #222;
}

.content-article h2:first-child {
  margin-top: 0;
}

.content-article p.subtitle,
.content-article p.subhead,
.content-article p.desc,
.content-article p.lead {
  font-size: 1.05rem;
  color: #888;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.content-article h2 + p {
  margin-top: 0;
}

.content-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: #ccc;
  margin-bottom: 1.2rem;
  max-width: 72ch;
}

.content-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.content-article ul,
.content-article ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
  max-width: 70ch;
}

.content-article li {
  font-size: 1rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 0.4rem;
}

.content-article strong {
  color: #fff;
  font-weight: 600;
}

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

.content-article a {
  color: #fff;
  border-bottom: 1px solid #444;
  text-decoration: none;
  transition: border-color 0.15s;
}

.content-article a:hover {
  border-color: #fff;
  opacity: 1;
}

.content-article blockquote {
  border-left: 3px solid #fff;
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: #aaa;
  font-style: italic;
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.content-article th {
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: #666;
  border-bottom: 1px solid #333;
  padding: 0.6rem 0.8rem;
}

.content-article td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #1a1a1a;
  color: #ccc;
  vertical-align: top;
}

.content-article hr {
  border: none;
  border-top: 1px solid #222;
  margin: 3rem 0;
}

/* Section blocks inside content */
.content-article div {
  padding: 3rem 0;
  border-bottom: 1px solid #111;
}

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

/* =============================================
   Glass Cards (for any card elements in content)
   ============================================= */
.card,
.content-article .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.card:hover,
.content-article .card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  border-top: 1px solid #333;
  background: #000;
  padding: 2rem 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-nav a:hover {
  color: #fff;
  opacity: 1;
}

.footer-copy {
  font-size: 0.72rem;
  color: #444;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* =============================================
   Micro-interactions & Hover Effects
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .main-nav ul li a {
    transition: color 0.15s ease, padding-left 0.18s ease;
  }

  .hero-title {
    animation: fadeUp 0.6s ease both;
  }

  .hero-sub {
    animation: fadeUp 0.6s 0.12s ease both;
  }

  .hero-eyebrow {
    animation: fadeUp 0.6s 0.05s ease both;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =============================================
   Responsive: Tablet / Mobile
   ============================================= */
@media (max-width: 900px) {
  .site-wrapper {
    grid-template-columns: 1fr;
  }

  .site-aside {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #333;
    padding: 1.25rem 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }

  .brand-row {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .brand-tagline {
    margin-top: 0;
  }

  .main-nav {
    width: 100%;
    padding-top: 0.5rem;
  }

  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .main-nav ul li {
    border-bottom: none;
  }

  .main-nav ul li a {
    padding: 0.6rem 0.75rem;
    font-size: 0.72rem;
    min-height: 44px;
  }

  .main-nav ul li a:hover {
    padding-left: 0.75rem;
  }

  .hero-inner {
    padding: 2.5rem 1.5rem 2rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-sub {
    margin-left: 0;
    max-width: 100%;
  }

  .content-article {
    padding: 2rem 1.5rem;
  }

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

  .footer-inner {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand {
    font-size: 1.4rem;
  }

  .footer-nav {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 40vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .main-nav ul li a {
    font-size: 0.68rem;
    padding: 0.5rem 0.5rem;
  }

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

  .content-article h2 {
    font-size: 1.4rem;
  }

  .site-footer {
    padding: 1.25rem 1rem;
  }
}

/* =============================================
   Utility
   ============================================= */
.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;
}

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