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

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a { color: #fff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 2px solid #fff;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 2rem;
  border-bottom: 1px solid #333;
  flex-wrap: nowrap;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.header-tagline {
  font-size: 0.78rem;
  color: #888;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.cta-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: #fff;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.4rem;
  border: 2px solid #fff;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.cta-btn:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* ── Nav ── */
.site-nav {
  padding: 0 2rem;
  background: #0a0a0a;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav p {
  display: flex;
  align-items: stretch;
  white-space: nowrap;
  margin: 0;
}

.site-nav p a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #ccc;
  padding: 0 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid #222;
  transition: color 0.15s, background 0.15s;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav p a:first-child { border-left: 1px solid #222; }

.site-nav p a:hover {
  color: #fff;
  background: #1a1a1a;
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2rem 2rem;
  border-bottom: 2px solid #fff;
  background: #000;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    #111 39px,
    #111 40px
  );
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1rem;
}

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

/* ── Main Layout ── */
main { background: #000; }

.wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas: "aside content";
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 60vh;
}

/* ── Aside / Sidebar ── */
aside.sidebar {
  grid-area: aside;
  border-right: 1px solid #222;
  padding: 2rem 1.25rem;
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

.sidebar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}

.sidebar hr {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 1rem;
}

.sidebar-nav li { margin-bottom: 0.1rem; }

.sidebar-nav a {
  font-size: 0.82rem;
  color: #999;
  padding: 0.55rem 0.6rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1.4;
  text-decoration: none;
}

.sidebar-nav a:hover {
  color: #fff;
  border-left-color: #fff;
  background: #0f0f0f;
  text-decoration: none;
}

.sidebar-note {
  margin-top: 2rem;
  padding: 0.75rem;
  background: #111;
  border: 1px solid #222;
}

.sidebar-note p {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.5;
}

/* ── Main Content ── */
article.main-content {
  grid-area: content;
  padding: 2.5rem 2rem;
}

section.content-article {
  max-width: 860px;
}

/* ── Content Typography (page.content) ── */
.content-article h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin: 3rem 0 0.4rem;
}

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

.content-article h2 + hr,
.content-article h3 + hr {
  border: none;
  border-top: 2px solid #fff;
  margin: 0.4rem 0 1.2rem;
}

.content-article h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #eee;
  margin: 2rem 0 0.4rem;
  letter-spacing: -0.01em;
}

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

.content-article ul,
.content-article ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
}

.content-article li {
  font-size: 1rem;
  line-height: 1.7;
  color: #bbb;
  margin-bottom: 0.35rem;
  list-style: disc;
}

.content-article ol li { list-style: decimal; }

.content-article a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-article a:hover { color: #ccc; }

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

.content-article blockquote {
  border-left: 4px solid #fff;
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: #0f0f0f;
  font-style: italic;
  color: #aaa;
  font-size: 1.05rem;
}

.content-article article {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1a1a1a;
  scroll-margin-top: 100px;
}

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

/* Drop cap */
.content-article > article:first-child > p:first-of-type::first-letter {
  font-family: 'Poppins', sans-serif;
  font-size: 4em;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.1em 0 0;
  color: #fff;
}

/* Glass card */
.content-article .card,
.content-article figure {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1.25rem;
  margin: 1rem 0;
}

/* ── Footer ── */
.site-footer {
  background: #000;
  border-top: 2px solid #fff;
  padding: 3rem 2rem 0;
  margin-top: 4rem;
}

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

.footer-brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

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

.footer-col-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul li a {
  font-size: 0.85rem;
  color: #777;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0;
  line-height: 1.4;
}

.footer-col ul li a:hover { color: #fff; text-decoration: none; }

.footer-col--contact address {
  font-style: normal;
}

.footer-col--contact address p {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.footer-col--contact address a {
  color: #777;
  transition: color 0.15s;
}

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

.footer-col--contact address ul { margin-top: 0.5rem; }
.footer-col--contact address ul li { margin-bottom: 0.35rem; }
.footer-col--contact address ul li a {
  font-size: 0.82rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: #444;
}

.footer-links {
  font-size: 0.78rem;
  color: #444;
}

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── HR global ── */
hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 1.5rem 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "content";
  }

  aside.sidebar {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .hero { min-height: 38vh; }
}

@media (max-width: 600px) {
  .header-brand {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .header-tagline { display: none; }

  .logo-text { font-size: 1.1rem; }

  .site-nav { padding: 0 0.25rem; }

  .site-nav p a {
    font-size: 0.7rem;
    padding: 0 0.6rem;
    min-height: 44px;
    letter-spacing: 0.02em;
  }

  .hero {
    padding: 2rem 1rem 1.5rem;
    min-height: 40vh;
    align-items: flex-end;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cta-btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.9rem;
    min-height: 44px;
  }

  .footer-col ul li a {
    min-height: 44px;
  }
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

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