@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&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;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #333;
}

ul, ol, dl {
  list-style: none;
}

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

/* ===== LAYOUT WRAPPER ===== */
.layout-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.main-wrapper {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== SIDENAV ===== */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid #111;
}

.sidenav-brand {
  padding: 2rem 1.5rem 1.25rem;
  border-bottom: 1px solid #222;
}

.brand-link {
  display: block;
  color: #fff;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.3;
  padding: 0.25rem 0;
}

.site-logo-img {
  max-height: 36px;
  width: auto;
}

.sidenav-search {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #222;
}

.search-form {
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.search-form:focus-within {
  border-color: #fff;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  min-width: 0;
}

.search-input::placeholder {
  color: #666;
}

.search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  transition: color 200ms ease;
}

.search-btn:hover {
  color: #ccc;
}

.sidenav-menu {
  flex: 1;
  padding: 1.5rem 1.5rem;
}

.nav-dl {
  display: flex;
  flex-direction: column;
}

.nav-group-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.nav-dl dd {
  margin: 0;
}

.nav-dl dd a {
  display: flex;
  align-items: center;
  color: #bbb;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  transition: background 200ms ease, color 200ms ease;
  min-height: 44px;
}

.nav-dl dd a:hover {
  background: #111;
  color: #fff;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e0e0e0;
}

.dot-grid {
  background-color: #fff;
  background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
  background-size: 20px 20px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 420px;
}

.hero-grid-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 80%;
  aspect-ratio: 1;
}

.grid-block {
  display: block;
  border-radius: 2px;
}

.b1 { background: #fff; }
.b2 { background: #333; }
.b3 { background: #666; }
.b4 { background: #444; }
.b5 { background: #fff; }
.b6 { background: #888; }

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

.hero-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #000;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  min-height: 44px;
  border: 2px solid #000;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #222;
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #000;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  min-height: 44px;
  border: 2px solid #000;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: #000;
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-item strong {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000;
}

.stat-item span {
  font-size: 0.75rem;
  color: #777;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
}

.content-article {
  /* direct child of main */
}

.content-section {
  padding: 0;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  min-height: 100%;
}

.content-body {
  padding: 3rem;
  max-width: 760px;
}

/* ===== PAGE CONTENT STYLES ===== */
.content-body h2 {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #000;
  line-height: 1.25;
  scroll-margin-top: 2rem;
}

.content-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 2rem;
}

.content-body h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
}

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

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

.content-body ol {
  list-style: decimal;
}

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

.content-body a {
  color: #000;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 200ms ease;
}

.content-body a:hover {
  opacity: 0.65;
}

.content-body strong {
  font-weight: 600;
}

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

.content-body hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

.content-body blockquote {
  border-left: 3px solid #000;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

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

.content-body th,
.content-body td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e0e0e0;
}

.content-body th {
  background: #000;
  color: #fff;
  font-weight: 500;
}

.content-body div {
  scroll-margin-top: 2rem;
}

/* ===== ASIDE ===== */
.content-aside {
  border-left: 1px solid #e0e0e0;
  background: #fafafa;
  overflow-y: auto;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100vh;
}

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

.aside-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.75rem;
}

.aside-title span {
  display: inline;
}

.aside-nav-list li {
  border-bottom: 1px solid #eee;
}

.aside-nav-list li:last-child {
  border-bottom: none;
}

.aside-nav-list a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: #333;
  min-height: 44px;
  transition: color 200ms ease;
}

.aside-nav-list a:hover {
  color: #000;
}

.aside-notice {
  background: #000;
  color: #fff;
  border-radius: 4px;
  padding: 1.25rem;
}

.aside-notice h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.aside-notice h4 span {
  display: inline;
}

.aside-notice p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #bbb;
  margin: 0;
}

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

.footer-top {
  overflow: hidden;
  border-bottom: 1px solid #111;
}

.footer-brand-giant {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #111;
  line-height: 1;
  padding: 2rem 3rem 1.5rem;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem;
  border-bottom: 1px solid #222;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-brand-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-brand-link .logo-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #888;
}

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
}

.footer-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-dl-title {
  font-size: 0.6875rem;
  color: #444;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: none;
}

.footer-dl dd {
  margin: 0;
}

.footer-dl dd a,
.footer-dl dd span {
  display: flex;
  align-items: center;
  color: #888;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  min-height: 44px;
  transition: color 200ms ease;
}

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

.footer-bottom {
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: #555;
  text-align: center;
  line-height: 1.6;
}

/* ===== H2/H3 SPAN DECORATION ===== */
.content-body h2 > span,
.content-body h3 > span,
.aside-title > span,
.aside-notice h4 > span {
  display: inline;
}

/* ===== CARD STYLES ===== */
.content-body .card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.content-body .card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ===== STAGGER ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .nav-dl dd {
    opacity: 0;
    transform: translateX(-8px);
    animation: slideInLeft 250ms ease forwards;
  }

  .nav-dl dd:nth-child(2) { animation-delay: 40ms; }
  .nav-dl dd:nth-child(3) { animation-delay: 80ms; }
  .nav-dl dd:nth-child(4) { animation-delay: 120ms; }
  .nav-dl dd:nth-child(5) { animation-delay: 160ms; }
  .nav-dl dd:nth-child(6) { animation-delay: 200ms; }
  .nav-dl dd:nth-child(7) { animation-delay: 240ms; }
  .nav-dl dd:nth-child(8) { animation-delay: 280ms; }

  @keyframes slideInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .hero-eyebrow,
  .hero-h1,
  .hero-sub,
  .hero-actions,
  .hero-stats {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 300ms ease forwards;
  }

  .hero-h1 { animation-delay: 80ms; }
  .hero-sub { animation-delay: 160ms; }
  .hero-actions { animation-delay: 240ms; }
  .hero-stats { animation-delay: 320ms; }

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

/* ===== MOBILE NAV TOGGLE ===== */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 250ms ease, opacity 250ms ease;
}

.sidenav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .layout-wrapper {
    grid-template-columns: 200px 1fr;
  }

  .sidenav {
    width: 200px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .content-with-aside {
    grid-template-columns: 1fr;
  }

  .content-aside {
    height: auto;
    position: static;
    border-left: none;
    border-top: 1px solid #e0e0e0;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 64px;
  }

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

  .sidenav {
    width: 260px;
    left: -260px;
    transition: left 250ms ease;
  }

  .sidenav.is-open {
    left: 0;
  }

  .sidenav-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
  }

  .sidenav-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .main-wrapper {
    padding-top: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 5rem 1.5rem 2.5rem;
    gap: 2rem;
    min-height: 70vh;
  }

  .hero-media {
    order: -1;
  }

  .hero-placeholder {
    max-height: 220px;
  }

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

  .hero-stats {
    gap: 1.25rem;
  }

  .content-body {
    padding: 2rem 1.25rem;
    max-width: 100%;
  }

  .content-with-aside {
    grid-template-columns: 1fr;
  }

  .aside-inner {
    padding: 1.5rem 1.25rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .footer-top {
    display: none;
  }

  .footer-bottom {
    padding: 1.25rem 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 5rem 1rem 2rem;
  }

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

  .footer-main {
    padding: 1.5rem 1rem;
  }

  .footer-bottom {
    padding: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
