/* ============================================================
   RucKy LLC — Shared Stylesheet
   Monotone, bold, editorial
============================================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --line: rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.28);
  --text: #f4f4f4;
  --text-mid: #a4a4a4;
  --text-dim: #6a6a6a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle film grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   Header
============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,10,0.6);
  border-bottom: 1px solid var(--line-soft);
}
.logo {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo small {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  font-weight: 500;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}
nav a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.4s;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--text);
  transition: width 0.4s;
}
nav a:hover,
nav a.active { color: var(--text); }
nav a:hover::after,
nav a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: top 0.3s, bottom 0.3s, transform 0.3s, opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 2px; }
/* When menu is open, morph hamburger into X */
.nav-toggle.is-open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ============================================================
   Page container
============================================================ */
.page {
  padding-top: 90px;
}
section {
  padding: 140px 60px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================================
   Typography — display
============================================================ */
.display-en {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.display-jp {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   Section header
============================================================ */
.section-head {
  margin-bottom: 100px;
  text-align: center;
  position: relative;
}
.section-head .num-line {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head .num-line::before,
.section-head .num-line::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}
.section-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
}
.section-title .it {
  font-style: italic;
  font-weight: 500;
  color: var(--text-mid);
}
.section-title-ja {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--text-dim);
  margin-top: 22px;
  font-weight: 500;
}

/* ============================================================
   Reveal on scroll
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.2,0.8,0.2,1),
              transform 1.2s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Buttons / CTA
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 42px;
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.8,0,0.2,1);
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(6px); }

/* ============================================================
   Footer
============================================================ */
footer {
  padding: 100px 60px 40px;
  border-top: 1px solid var(--line-soft);
  position: relative;
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer-brand .logo {
  font-size: 32px;
  margin-bottom: 24px;
}
.footer-brand .tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 2;
  max-width: 360px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 12px;
  transition: color 0.3s, transform 0.3s;
}
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 900px) {
  header {
    padding: 16px max(22px, env(safe-area-inset-right)) 16px max(22px, env(safe-area-inset-left));
  }
  .logo { font-size: 22px; }
  nav {
    margin-left: auto; /* push to far right edge */
    display: flex;
    align-items: center;
  }
  nav ul {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: #0a0a0a;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    padding: 100px 30px 60px;
  }
  nav ul.open { transform: translateX(0); }
  nav a {
    font-size: 18px;
    letter-spacing: 0.35em;
    padding: 10px 0;
    color: var(--text);
  }
  .nav-toggle {
    display: block;
    z-index: 101;
    position: relative;
  }
  /* prevent body scroll while menu open */
  body.nav-open { overflow: hidden; }
  section { padding: 100px 22px; }
  .section-head { margin-bottom: 60px; }
  footer { padding: 70px 22px 30px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
