@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Righteous&display=swap');

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

:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #ffffff;
  --c-muted: #888888;
  --c-border: #222222;
  --nav-h: 64px;
  --font-display: 'Righteous', 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

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

body.site-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--c-black);
  color: var(--c-white);
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 8px);
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ── NAVIGATION (bottom fixed, hamburger fullscreen overlay) ── */

.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  background: var(--c-black);
  border-top: 1px solid var(--c-border);
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 40px;
  min-width: 40px;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--c-white);
  font-weight: 900;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-white);
}

.nav-details {
  position: static;
}

.nav-details[open] .nav-overlay {
  display: flex;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  padding: 10px 8px;
  background: none;
  border: none;
}

.nav-hamburger::-webkit-details-marker { display: none; }
.nav-hamburger::marker { display: none; }

.ham-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  transition: transform 0.2s;
}

.nav-details[open] .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-details[open] .ham-bar:nth-child(2) { opacity: 0; }
.nav-details[open] .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  bottom: var(--nav-h);
  background: var(--c-black);
  z-index: 99;
  align-items: center;
  justify-content: center;
}

menu.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

menu.nav-menu li a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: -0.03em;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: color 0.15s, padding-left 0.15s;
  min-height: 44px;
  line-height: 1.2;
}

menu.nav-menu li a:hover,
menu.nav-menu li a:focus-visible {
  color: var(--c-muted);
  padding-left: 0.5rem;
}

/* ── MAIN LAYOUT ── */

main {
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── HERO ── */

.hero-section {
  width: 100%;
}

.hero-article {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 4rem 2rem 6rem;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 18rem);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-collage-a,
.hero-collage-b {
  position: absolute;
  overflow: hidden;
}

.hero-collage-a {
  top: 0;
  right: 0;
  width: 55%;
  height: 62%;
}

.hero-collage-b {
  top: 30%;
  right: 18%;
  width: 38%;
  height: 55%;
  border: 2px solid var(--c-white);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.2);
}

.hero-img:empty,
.hero-collage-a:empty,
.hero-collage-b:empty {
  background: #111;
}

.hero-collage-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--c-white);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 600px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--c-white);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 400px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-black);
  background: var(--c-white);
  padding: 0.85rem 2rem;
  text-decoration: none;
  min-height: 48px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--c-muted);
  color: var(--c-white);
}

/* ── CONTENT LAYOUT with ASIDE ── */

.content-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0;
}

.content-aside {
  position: sticky;
  top: 2rem;
  width: 220px;
  flex-shrink: 0;
  padding: 3rem 1.5rem 3rem 2rem;
  border-right: 1px solid var(--c-border);
  min-height: 60vh;
}

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

.aside-brand {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--c-muted);
  text-transform: uppercase;
}

.aside-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-nav li a {
  display: block;
  font-size: 0.82rem;
  color: var(--c-muted);
  text-decoration: none;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: color 0.15s;
  min-height: 36px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.aside-nav li a:hover,
.aside-nav li a:focus-visible {
  color: var(--c-white);
}

.content-main {
  flex: 1;
  min-width: 0;
  padding: 4rem 2rem 4rem 3rem;
}

/* ── CONTENT SECTIONS (from page.content) ── */

.content-main section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--c-border);
}

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

.content-main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--c-white);
  margin-bottom: 2rem;
}

.content-main h2 span {
  display: block;
}

.content-main h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin: 2rem 0 1rem;
}

.content-main h3 span {
  display: inline;
}

.content-main p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1rem;
  max-width: 680px;
}

.content-main ul,
.content-main ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.content-main li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.4rem;
}

.content-main a {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-main a:hover {
  color: var(--c-muted);
}

.content-main strong {
  color: var(--c-white);
  font-weight: 600;
}

.content-main em {
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

.content-main blockquote {
  border-left: 3px solid var(--c-white);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--c-muted);
  font-size: 1.05rem;
  font-style: italic;
}

.content-main img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  margin: 1.5rem 0;
}

/* ── FOOTER ── */

.site-footer {
  background: var(--c-black);
  border-top: 1px solid var(--c-border);
  padding-bottom: calc(var(--nav-h) + 8px);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-cta-block {
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--c-border);
}

.footer-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--c-white);
  line-height: 1.1;
  max-width: 700px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--c-muted);
  text-decoration: none;
  padding: 0.5rem 1rem 0.5rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--c-white);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ── SCROLL REVEAL (Stagger + Subtle) ── */

@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;
  }
  .content-main section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .content-main section.visible {
    opacity: 1;
    transform: none;
  }
  .aside-nav li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .aside-nav li.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .content-main section, .aside-nav li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .content-aside {
    display: none;
  }
  .content-main {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-article {
    padding: 3rem 1.2rem 5rem;
  }
  .hero-collage-a {
    width: 70%;
    height: 50%;
  }
  .hero-collage-b {
    width: 50%;
    height: 42%;
    right: 5%;
    top: 35%;
  }
  .hero-h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }
  .content-main {
    padding: 2rem 1.2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cta-block {
    padding: 3rem 1.2rem 2.5rem;
  }
  menu.nav-menu {
    padding: 1.5rem;
  }
}

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