/* ===== Lien — Shared System ===== */
:root {
  --bg: #efece4;
  --bg-paper: #f7f5ee;
  --bg-alt: #e6e1d3;
  --ink: #0f1a16;
  --ink-soft: #2b3a34;
  --ink-mute: #6c7670;
  --line: #cfc8b6;
  --line-soft: #ddd6c4;
  --accent: #1f4d3d;
  --accent-soft: #2d6b54;
  --accent-light: #8cbfa8;
  --gold: #b08a4f;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none; z-index: 1; mix-blend-mode: multiply; opacity: 0.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
::selection { background: var(--accent); color: var(--bg); }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.serif { font-family: 'Fraunces', 'Cormorant Garamond', serif; font-variation-settings: "SOFT" 40; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 0;
  background: rgba(239, 236, 228, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  padding: 14px 0;
  background: rgba(239, 236, 228, 0.92);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px;
  letter-spacing: -0.025em; font-variation-settings: "SOFT" 60;
  display: flex; align-items: baseline; gap: 12px;
}
.logo .mark {
  display: inline-block; width: 28px; height: 28px;
  border: 1px solid var(--accent); border-radius: 50%;
  position: relative; align-self: center;
}
.logo .mark::after {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%; background: var(--accent);
}
.logo .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; color: var(--ink-mute);
  text-transform: uppercase; align-self: center;
}
.nav-links { display: flex; gap: 40px; list-style: none; font-size: 13px; letter-spacing: 0.06em; }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.2s; display: inline-flex; align-items: baseline; gap: 8px; }
.nav-links a .num { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.15em; color: var(--ink-mute); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--ink); transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { font-weight: 500; }
.nav-cta {
  padding: 12px 22px; border: 1px solid var(--ink); border-radius: 100px;
  font-size: 12px; letter-spacing: 0.1em; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta::before { content: '●'; color: var(--accent); font-size: 8px; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta:hover::before { color: var(--accent-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 101; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--ink); margin: 7px 0; transition: 0.3s; }
.nav-mobile { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 99; padding: 100px var(--gutter) 40px; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; font-family: 'Fraunces', serif; font-size: 36px; font-weight: 300; letter-spacing: -0.02em; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* Common typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; color: var(--ink-mute); text-transform: uppercase;
}
.eyebrow .num {
  font-family: 'Fraunces', serif; color: var(--ink); font-size: 14px;
  letter-spacing: 0; font-variation-settings: "SOFT" 60; font-style: italic;
}
.eyebrow .line { display: inline-block; width: 48px; height: 1px; background: var(--ink); }

/* Buttons */
.btn-primary, .btn-ghost, .btn-light {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border-radius: 100px;
  font-size: 13px; letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-arrow { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow, .btn-light:hover .btn-arrow { transform: translateX(4px); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

/* Footer */
footer.site-foot { background: var(--ink); color: var(--bg); padding: 120px 0 40px; position: relative; overflow: hidden; }
footer.site-foot::before {
  content: ''; position: absolute; top: -200px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(31, 77, 61, 0.35), transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 80px; border-bottom: 1px solid rgba(247, 245, 238, 0.15); }
.foot-brand { font-family: 'Fraunces', serif; font-size: clamp(56px, 7vw, 96px); line-height: 0.95; font-weight: 300; letter-spacing: -0.04em; font-variation-settings: "SOFT" 40; margin-bottom: 32px; }
.foot-brand em { font-style: italic; color: var(--accent-light); }
.foot-tag { font-size: 13px; line-height: 1.85; color: rgba(247, 245, 238, 0.65); max-width: 320px; }
.foot-col h5 { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247, 245, 238, 0.5); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(247, 245, 238, 0.15); }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 14px; }
.foot-col a { font-size: 14px; color: rgba(247, 245, 238, 0.85); transition: color 0.2s; }
.foot-col a:hover { color: var(--accent-light); }
.foot-col p { font-size: 13px; line-height: 1.85; color: rgba(247, 245, 238, 0.7); }
.foot-bottom { margin-top: 36px; display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(247, 245, 238, 0.4); letter-spacing: 0.12em; flex-wrap: wrap; gap: 12px; }
.foot-bottom .pulse { display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom .pulse::before { content: ''; width: 6px; height: 6px; background: var(--accent-light); border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
}
