@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #e8003d;
  --c-gray: #111111;
  --c-gray-mid: #333333;
  --c-gray-light: #f5f5f5;
  --c-border: #222222;
  --font-display: 'Abril Fatface', serif;
  --font-body: 'Merriweather', Georgia, serif;
  --header-h: 64px;
  --anchor-h: 48px;
  --radius: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  line-height: 1.6;
  background: var(--c-black);
  color: var(--c-white);
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, button { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + var(--anchor-h) + 8px); }

/* ════════════════════════════════
   OVERLAY MENU
════════════════════════════════ */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--c-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.overlay-menu.is-open {
  opacity: 1;
  pointer-events: all;
}
.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--c-white);
  line-height: 1;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.overlay-nav .nav-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--c-white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color var(--transition);
  padding: 0.35rem 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.overlay-nav .nav-link:hover { color: var(--c-accent); }

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  background: var(--c-black);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}
.site-logo-mark, .site-logo { height: 36px; width: auto; }
.brand-text-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--c-white);
  line-height: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--c-gray);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-input {
  background: transparent;
  border: none;
  color: var(--c-white);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  width: 180px;
  outline: none;
  min-height: 44px;
}
.search-input::placeholder { color: #666; }
.search-btn {
  color: var(--c-white);
  padding: 0.5rem 0.75rem;
  font-size: 1.1rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  transition: var(--transition);
}

/* ════════════════════════════════
   ANCHOR NAV
════════════════════════════════ */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 400;
  background: var(--c-gray);
  height: var(--anchor-h);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav-inner {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 100%;
  gap: 0;
  width: max-content;
  min-width: 100%;
}
.anchor-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.05em;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--c-border);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  min-height: 40px;
}
.anchor-link:first-child { border-left: 1px solid var(--c-border); }
.anchor-link:hover, .anchor-link.is-active { color: var(--c-white); background: var(--c-black); }

/* ════════════════════════════════
   MAIN LAYOUT
════════════════════════════════ */
main {
  padding-top: calc(var(--header-h) + var(--anchor-h));
}

main > article {
  width: 100%;
}

main > article > section {
  /* base for direct child sections */
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 2rem;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 30vw, 22rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}
.hero-layout {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  max-height: 280px;
  width: auto;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--c-white);
}
.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: #bbb;
  line-height: 1.7;
  max-width: 480px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius);
  min-height: 48px;
  transition: opacity var(--transition), transform var(--transition);
}
.cta-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ════════════════════════════════
   ASIDE
════════════════════════════════ */
.global-aside {
  background: var(--c-gray);
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--c-accent);
}
.aside-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.aside-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.aside-list a {
  background: var(--c-black);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}
.aside-list a:hover { background: var(--c-accent); }

/* ════════════════════════════════
   CONTENT SECTIONS (page.content)
════════════════════════════════ */
.content-sections {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.content-sections section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--c-border);
}
.content-sections section:last-child { border-bottom: none; }

.content-sections h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}
.content-sections .subtitle,
.content-sections h2 + p {
  font-size: 1.1rem;
  color: #aaa;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 600px;
}
.content-sections h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
  margin: 2rem 0 0.75rem;
}
.content-sections p {
  font-size: 1rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 1rem;
  max-width: 720px;
}
.content-sections ul, .content-sections ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-sections li {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.content-sections a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-sections strong { color: var(--c-white); }

/* ════════════════════════════════
   SUBTITLE PATTERN
════════════════════════════════ */
h2 + p.subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  color: #999;
  font-weight: 300;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer {
  background: var(--c-gray);
  border-top: 1px solid var(--c-border);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--c-border);
}
.footer-contact-item {
  font-size: 0.9rem;
  color: #aaa;
}
.footer-subscribe {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.subscribe-input {
  background: var(--c-black);
  color: var(--c-white);
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  width: 220px;
  outline: none;
  min-height: 44px;
}
.subscribe-input::placeholder { color: #555; }
.subscribe-btn {
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  transition: opacity var(--transition);
}
.subscribe-btn:hover { opacity: 0.85; }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--c-white);
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}
.footer-dl dt, .footer-dl dd {
  margin: 0;
  padding: 0;
}
.footer-dl dt a, .footer-dl dd a {
  color: #888;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--c-border);
  transition: color var(--transition);
  white-space: nowrap;
}
.footer-dl dt:first-child a { border-left: 1px solid var(--c-border); }
.footer-dl dt a:hover, .footer-dl dd a:hover { color: var(--c-white); }

.footer-right { flex-shrink: 0; }
.footer-copy {
  font-size: 0.78rem;
  color: #555;
  white-space: nowrap;
}

/* ════════════════════════════════
   SCROLL REVEAL ANIMATIONS
════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .stagger .reveal:nth-child(1) { transition-delay: 0s; }
  .stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
  .stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
  .stagger .reveal:nth-child(4) { transition-delay: 0.24s; }
  .stagger .reveal:nth-child(5) { transition-delay: 0.32s; }
  .stagger .reveal:nth-child(6) { transition-delay: 0.40s; }
  .stagger .reveal:nth-child(7) { transition-delay: 0.48s; }
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-media { display: none; }
  .hero-copy { align-items: center; }
  .content-sections { padding: 4rem 1.5rem; }
  .content-sections section { padding: 3.5rem 0; }
}

@media (max-width: 600px) {
  :root { --header-h: 56px; --anchor-h: 44px; }
  html { font-size: 16px; }
  .search-input { width: 120px; }
  .hero-section { padding: 4rem 1rem; min-height: 60vh; }
  .hero-h1 { font-size: clamp(2.5rem, 12vw, 5rem); }
  .hero-bg-text { font-size: clamp(6rem, 40vw, 14rem); }
  .content-sections { padding: 3rem 1rem; }
  .content-sections h2 { font-size: clamp(2rem, 9vw, 3.5rem); }
  .global-aside { padding: 1.5rem 1rem; }
  .aside-list { gap: 0.4rem; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-contact { flex-direction: column; align-items: center; padding: 2rem 1rem; }
  .subscribe-input { width: 160px; }
  .footer-dl dt a, .footer-dl dd a { padding: 0.5rem 0.5rem; font-size: 0.75rem; }
}

@media (max-width: 375px) {
  .search-input { width: 80px; }
  .overlay-nav .nav-link { font-size: 1.8rem; }
}
