@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

/* ============================================================
   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: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ============================================================
   GRID SYSTEM — 12 columns, 8px base unit
   ============================================================ */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  width: 100%;
}

.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   TOP HEADER
   ============================================================ */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  border-bottom: 2px solid #fff;
  height: 56px;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  align-items: center;
}

.header-brand { display: flex; align-items: center; }

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.logo-img { width: auto; height: 36px; object-fit: contain; }
.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.header-nav { display: flex; align-items: center; justify-content: flex-end; }

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border: 1.5px solid #fff;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  white-space: nowrap;
}

.pill-btn:hover, .pill-btn:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

/* ============================================================
   STICKY ANCHOR BAR
   ============================================================ */
.sticky-anchor-bar {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: #fff;
  border-bottom: 2px solid #000;
  height: 44px;
  overflow: hidden;
}

.anchor-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 44px;
  align-items: center;
}

.anchor-brand {
  display: flex;
  align-items: center;
  border-right: 1.5px solid #000;
  height: 100%;
  padding-right: 0.75rem;
}

.anchor-logo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.anchor-logo-img { width: 28px; height: 28px; object-fit: contain; }
.anchor-logo-text {
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: -0.03em;
  color: #000;
}

.anchor-pills {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  padding-left: 0.75rem;
  scrollbar-width: none;
  height: 100%;
}
.anchor-pills::-webkit-scrollbar { display: none; }

.anchor-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  background: transparent;
  border: 1.5px solid transparent;
  white-space: nowrap;
  min-height: 32px;
  transition: border-color 0.15s, background 0.15s;
}
.anchor-pill:hover, .anchor-pill:focus-visible {
  border-color: #000;
  background: #f0f0f0;
  outline: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-block {
  position: relative;
  margin-top: calc(56px + 44px);
  height: 45vh;
  min-height: 280px;
  max-height: 520px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 40%, rgba(0,0,0,0.38) 100%);
}

.hero-mask--solid {
  background: #111;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  align-items: end;
}

.hero-text { display: flex; flex-direction: column; gap: 1rem; }

.hero-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  line-height: 1.6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: #fff;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid #fff;
  border-radius: 999px;
  min-height: 48px;
  align-self: flex-start;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.cta-btn:hover, .cta-btn:focus-visible {
  background: #000;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cta-btn--inv {
  background: #000;
  color: #fff;
  border-color: #000;
}
.cta-btn--inv:hover, .cta-btn--inv:focus-visible {
  background: #fff;
  color: #000;
  outline-color: #000;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2rem;
}

.content-article {
  align-items: start;
}

/* ============================================================
   PAGE SECTIONS (page.content injected here)
   ============================================================ */
.page-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Styles for content injected from page.content */
.page-sections section {
  padding: 4rem 0;
  border-bottom: 1.5px solid #e0e0e0;
  scroll-margin-top: calc(56px + 44px + 1rem);
}

.page-sections section:last-child { border-bottom: none; }

.page-sections h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #000;
  margin-bottom: 0.5rem;
}

.page-sections h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #000;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

.page-sections p {
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
  margin-bottom: 1rem;
  max-width: 68ch;
}

.page-sections ul, .page-sections ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.page-sections ol { list-style: decimal; }

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

.page-sections a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-sections strong { font-weight: 700; }

.page-sections blockquote {
  border-left: 4px solid #000;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #444;
}

.page-sections table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.page-sections th, .page-sections td {
  padding: 0.625rem 0.75rem;
  border: 1.5px solid #000;
  text-align: left;
}

.page-sections th {
  background: #000;
  color: #fff;
  font-weight: 700;
}

/* Subtitle pattern: h2 + p.subtitle */
.page-sections .subtitle,
.page-sections p.subtitle,
.page-sections p.subhead,
.page-sections p.desc,
.page-sections p.lead {
  font-size: 1.0625rem;
  color: #555;
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 60ch;
  line-height: 1.6;
}

/* ============================================================
   ASIDE
   ============================================================ */
.content-aside {
  position: sticky;
  top: calc(56px + 44px + 2rem);
  height: fit-content;
}

.aside-inner {
  border: 2px solid #000;
  padding: 1.5rem;
  background: #fff;
}

.aside-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0.25rem;
}

.aside-subtitle {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

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

.aside-link {
  display: block;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #000;
  border-left: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-link:hover, .aside-link:focus-visible {
  border-left-color: #000;
  background: #f5f5f5;
  outline: none;
}

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

/* Footer CTA */
.footer-cta-block {
  border-bottom: 2px solid rgba(255,255,255,0.15);
  padding: 3.5rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.footer-cta-inner { align-items: center; }

.footer-cta-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.footer-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.footer-cta-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Footer Main Three Columns */
.footer-main {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: start;
}

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

.footer-brand-area { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-brand-area .logo-text { color: #fff; }
.footer-brand-area .logo-img { filter: invert(1); }

.footer-brand-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 28ch;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.addr-item {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

.footer-social-list {
  display: flex;
  gap: 0.75rem;
}

.footer-social-list li a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0;
  display: inline-block;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-social-list li a:hover { color: #fff; }

/* Footer Nav DL */
.footer-nav-block {}

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

.footer-nav-dt {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-nav-dd { margin: 0; }

.footer-nav-dd a {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  padding: 0.4rem 0;
  min-height: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s, padding-left 0.15s;
}

.footer-nav-dd a:hover {
  color: #fff;
  padding-left: 0.5rem;
}

/* Footer Info */
.footer-info-block { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-info-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.25rem;
}

.footer-info-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem 2rem;
  align-items: center;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

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

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .stagger-item.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   SECTION SCROLL MARGIN
   ============================================================ */
section[id] {
  scroll-margin-top: calc(56px + 44px + 16px);
}

/* ============================================================
   RESPONSIVE — TABLET ≤1024px
   ============================================================ */
@media (max-width: 1024px) {
  .header-inner { padding: 0 1.25rem; }
  .main-content { padding: 3rem 1.25rem; }
  .hero-content { padding: 0 1.25rem 2rem; }
  .footer-cta-block { padding: 2.5rem 1.25rem; }
  .footer-main { padding: 2.5rem 1.25rem; }
  .footer-bottom { padding: 1rem 1.25rem; }

  .col-span-9 { grid-column: span 12; }
  .col-span-3 { grid-column: span 12; }
  .content-aside { position: static; }

  .col-span-7 { grid-column: span 12; }

  .pill-group {
    display: none; /* collapsed on tablet; anchor bar serves navigation */
  }

  .header-nav { justify-content: flex-end; }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤768px
   ============================================================ */
@media (max-width: 768px) {
  .top-header { height: 52px; }
  .sticky-anchor-bar { top: 52px; }

  .header-inner {
    grid-template-columns: 1fr auto;
    height: 52px;
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .header-brand { grid-column: 1; }
  .header-nav { grid-column: 2; }

  .anchor-inner {
    grid-template-columns: auto 1fr;
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .anchor-brand { display: none; }
  .anchor-pills { padding-left: 0; }
  .anchor-pill { font-size: 0.6875rem; padding: 0.25rem 0.5rem; min-height: 36px; }

  .hero-block {
    margin-top: calc(52px + 44px);
    height: 45vh;
    min-height: 260px;
  }

  .hero-h1 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
  .hero-desc { font-size: 0.9375rem; }

  .hero-content {
    padding: 0 1rem 1.75rem;
    grid-template-columns: 1fr;
  }
  .hero-text { grid-column: span 12; gap: 0.75rem; }

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

  .content-article { grid-template-columns: 1fr; }
  .content-primary, .content-aside { grid-column: span 12; }
  .content-aside { order: -1; }
  .aside-inner { padding: 1rem; }

  .footer-cta-block { padding: 2rem 1rem; }
  .footer-cta-inner { grid-template-columns: 1fr; }
  .footer-cta-inner .col-span-8,
  .footer-cta-inner .col-span-4 { grid-column: span 12; }
  .footer-cta-action { justify-content: flex-start; }

  .footer-main { grid-template-columns: 1fr; padding: 2rem 1rem; }
  .footer-main .col-span-4 { grid-column: span 12; }
  .footer-bottom { grid-template-columns: 1fr; padding: 1rem; gap: 0.5rem; }
  .footer-bottom .col-span-6 { grid-column: span 12; }
  .footer-bottom-links { justify-content: flex-start; }

  .page-sections section { padding: 2.5rem 0; }
  .page-sections h2 { font-size: 1.375rem; }

  section[id] { scroll-margin-top: calc(52px + 44px + 12px); }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤480px
   ============================================================ */
@media (max-width: 480px) {
  .pill-group { display: none; }
  .hero-h1 { font-size: 1.5rem; }
  .footer-cta-heading { font-size: 1.5rem; }
}

/* ============================================================
   UTILITY
   ============================================================ */
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.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;
}

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