/* ─── Euphogear Shared Styles ─── */

:root {
  --white: #FAFAF8;
  --off-white: #F3F2EE;
  --warm-gray: #E8E6E0;
  --mid-gray: #9B978E;
  --text: #2C2A25;
  --text-light: #6B6860;
  --accent: #8B7B5E;
  --accent-light: #C4B8A0;
  --accent-deep: #6B5D42;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'DM Sans', 'Noto Sans JP', sans-serif;
  --jp: 'Noto Sans JP', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

::selection { background: var(--accent-light); color: var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.section-spacer { padding: clamp(80px, 12vw, 160px) 0; }

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
nav.scrolled { border-bottom-color: var(--warm-gray); }
nav .container { display: flex; justify-content: space-between; align-items: center; }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-light); transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

/* ─── Page Hero ─── */
.page-hero {
  padding-top: clamp(140px, 18vw, 220px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.page-hero .dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--warm-gray) 0.8px, transparent 0.8px);
  background-size: 40px 40px;
  opacity: 0.2;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }

.page-eyebrow {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--text);
  margin-bottom: 20px;
}
.page-subtitle {
  font-family: var(--jp); font-size: 0.95rem;
  font-weight: 300; line-height: 2;
  color: var(--text-light); max-width: 600px;
}

/* ─── Section Titles ─── */
.section-label {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 48px; color: var(--text);
}

/* ─── Divider ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm-gray), transparent);
  max-width: 600px; margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 40px; border: 1px solid var(--text);
  color: var(--text); background: transparent;
  cursor: pointer; transition: background 0.3s ease, color 0.3s ease;
  border-radius: 1px;
}
.btn:hover { background: var(--text); color: var(--white); }
.btn-accent { border-color: var(--accent); color: var(--accent-deep); }
.btn-accent:hover { background: var(--accent-deep); color: var(--white); border-color: var(--accent-deep); }
.btn-small { padding: 10px 28px; font-size: 0.75rem; }

/* ─── Footer ─── */
footer {
  padding: 40px 0; background: var(--white);
  border-top: 1px solid var(--warm-gray);
}
footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--text); letter-spacing: 0.04em; }
.footer-copy { font-size: 0.7rem; color: var(--mid-gray); letter-spacing: 0.04em; }

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  footer .container { flex-direction: column; gap: 12px; text-align: center; }
}
