@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&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: 'Rubik', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Scroll margin for sticky nav ===== */
section[id] {
  scroll-margin-top: 72px;
}

/* ===== Typography ===== */
h1 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(3rem, 10vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
}

h2 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.25rem 0;
}

.brand-text {
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}

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

/* ===== Nav ===== */
.main-nav {
  flex: 1;
  overflow: hidden;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.1rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.2;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: #111;
  outline: none;
}

/* ===== CTA Button ===== */
.cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  background: #fff;
  color: #000;
  font-family: 'Rubik', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

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

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000;
  overflow: hidden;
  padding: 8rem 2rem 6rem;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: #888;
  max-width: 560px;
  line-height: 1.6;
}

.hero-media {
  flex-shrink: 0;
  width: clamp(160px, 20vw, 320px);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}

/* Clip bottom edge */
.hero-clip {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

/* ===== Content Layout ===== */
.content-wrapper {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.content-layout {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

/* ===== Aside ===== */
.content-aside {
  flex-shrink: 0;
  width: 200px;
  position: sticky;
  top: 88px;
}

.aside-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
  font-family: 'Rubik', sans-serif;
}

.aside-link {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: #666;
  border-left: 2px solid #222;
  margin-bottom: 0.3rem;
  transition: color 0.2s, border-color 0.2s;
  min-height: 44px;
  line-height: 1.3;
}

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

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

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #555;
  margin-bottom: 0.5rem;
  font-family: 'Rubik', sans-serif;
}

/* ===== Content sections generated by build ===== */
.content-main section {
  padding: 5rem 0;
  border-top: 1px solid #1a1a1a;
}

.content-main section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.content-main h2 {
  margin-top: 0;
}

.content-main h3 {
  color: #fff;
  margin-top: 2rem;
}

.content-main p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.content-main ul,
.content-main ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.content-main li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
  font-size: 1rem;
}

.content-main a {
  color: #fff;
  border-bottom: 1px solid #444;
  transition: border-color 0.2s;
}

.content-main a:hover {
  border-bottom-color: #fff;
}

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

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

.content-main th,
.content-main td {
  padding: 0.75rem 1rem;
  border: 1px solid #222;
  text-align: left;
  color: #ccc;
}

.content-main th {
  background: #111;
  color: #fff;
  font-weight: 700;
}

/* small eyebrow before h2/h3 */
.content-main small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #555;
  margin-bottom: 0.4rem;
  font-family: 'Rubik', sans-serif;
}

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

.footer-brand {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  margin-bottom: 3rem;
}

.footer-copy {
  display: block;
  font-size: 0.8rem;
  color: #444;
  line-height: 1.7;
}

/* ===== Scroll Reveal Animation ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .stagger .reveal:nth-child(1) { transition-delay: 0.05s; }
  .stagger .reveal:nth-child(2) { transition-delay: 0.12s; }
  .stagger .reveal:nth-child(3) { transition-delay: 0.19s; }
  .stagger .reveal:nth-child(4) { transition-delay: 0.26s; }
  .stagger .reveal:nth-child(5) { transition-delay: 0.33s; }
  .stagger .reveal:nth-child(6) { transition-delay: 0.40s; }
  .stagger .reveal:nth-child(7) { transition-delay: 0.47s; }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 64px;
  }

  .header-inner {
    padding: 0 1rem;
    gap: 0.8rem;
    height: 60px;
  }

  .brand-link {
    min-height: 44px;
  }

  .brand-text {
    font-size: 0.85rem;
  }

  .main-nav {
    display: none;
  }

  .cta-btn {
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
    min-height: 44px;
  }

  .hero-section {
    padding: 5rem 1rem 4rem;
    min-height: 50vh;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .hero-media {
    width: 100%;
    max-width: 280px;
  }

  .content-wrapper {
    padding: 3rem 1rem;
  }

  .content-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .content-aside {
    width: 100%;
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }

  .aside-label {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .aside-link {
    border-left: none;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-height: 44px;
  }

  .aside-link:hover {
    border-color: #fff;
  }

  .content-main section {
    padding: 3rem 0;
  }

  .site-footer {
    padding: 4rem 1rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 4rem 1rem 3rem;
  }

  .content-main p {
    font-size: 1rem;
  }
}
