/* =====================================================================
   RN2 / ルルン 蒲田 — shared design tokens + base + components
   Direction: Quiet-luxe editorial. White-dominant, violet accent
   (#846ce0 — a bright periwinkle violet), gold-frame-mirror
   elegance. Cormorant Garamond + Shippori Mincho + Jost + Zen Kaku Gothic.
   This file is the single source of truth. Page agents read the
   STYLE-GUIDE inventory, NOT this file.
   ===================================================================== */

:root {
  /* ── color (LIGHT, pure-white base) ───────────────────────────── */
  --bg: #ffffff;
  --surface: #f5f3fb;      /* pale lavender — a whisper of the accent (cards/media) */
  --surface-2: #ece7f7;    /* slightly deeper lavender (avatars/footer/insets) */
  --text: #1c1726;         /* near-black, faint violet cast */
  --text-muted: #635c75;   /* muted violet-grey (>= 4.5:1 on white) */
  --accent: #846ce0;       /* periwinkle violet — decor + large display only (4:1) */
  --accent-deep: #5a47ab;  /* deep violet — text / links / primary btn (>= 7:1 on white) */
  --accent-strong: #2d2459;/* near-black violet — dark-band bg (white text ~14:1) */
  --border: #e8e3f3;       /* pale lavender hairline */
  --border-strong: #d6cee9;

  /* ── type ─────────────────────────────────────────────────────── */
  --font-display: "Cormorant Garamond", Georgia, serif;     /* latin display / brand */
  --font-body: "Jost", system-ui, sans-serif;               /* latin labels / kickers */
  --font-jp: "Zen Kaku Gothic New", system-ui, sans-serif;  /* JP body */
  --font-jp-display: "Shippori Mincho", "Zen Kaku Gothic New", serif; /* JP display */

  /* ── radius (edge-mix roles) ──────────────────────────────────── */
  --radius: 10px;          /* rounded content cards */
  --radius-lg: 18px;       /* rounded secondary media + map */
  --radius-pill: 999px;    /* buttons / tags */

  /* ── spacing / rhythm ─────────────────────────────────────────── */
  --section-y: clamp(5rem, 9vw, 8.5rem);
  --gut: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── reset + base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }
p { margin: 0; }
::selection { background: var(--surface-2); color: var(--accent-deep); }

/* anchor targets clear the fixed navbar */
[id] { scroll-margin-top: 96px; }

/* ── layout container ───────────────────────────────────────────── */
/* The width modifiers are ALWAYS paired with the base:
   class="container container--wide" / "container container--narrow".
   The modifier alone drops margin/padding and pins content to the edge. */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.container--wide   { max-width: 1360px; }
.container--narrow { max-width: 880px; }

/* ── section rhythm + bands ─────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }

/* The ONE allowed full-width fill: a dark accent band (white-alpha overlays
   make this adapt to the accent hue automatically). Light-DOMINANT; use on
   1-3 sections only, alternated with white, never two adjacent. */
.section--invert {
  background: var(--accent-strong); color: #fff;
  --text: #fff; --text-muted: rgba(255,255,255,.70);
  --surface: rgba(255,255,255,.07); --surface-2: rgba(255,255,255,.13);
  --accent-deep: rgba(255,255,255,.90);
  --border: rgba(255,255,255,.14); --border-strong: rgba(255,255,255,.30);
}
.section--invert .card { background: var(--surface); border-color: var(--border); }

/* ── section header pattern (THIS salon's chosen style) ─────────────
   A thin top hairline + an index numeral (Cormorant) + a light JP title
   (Shippori Mincho). No English eyebrow on every section. */
.sec-head { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.sec-head__rule {
  border: 0; height: 1px; background: var(--border-strong);
  margin: 0 0 1.35rem;
}
.sec-head__top {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 0.65rem;
}
.sec-head__index {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  font-style: italic; color: var(--accent); line-height: 1;
}
.sec-head__kicker {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted);
}
.sec-head__title {
  font-family: var(--font-jp-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: 0.04em;
  line-height: 1.32;
}
.sec-head__title .en {
  display: block; font-family: var(--font-display); font-style: italic;
  font-weight: 400; letter-spacing: 0.01em; color: var(--accent-deep);
  font-size: 1.05em; margin-top: 0.15em;
}
.sec-head__lead {
  margin-top: 1.1rem; max-width: 46ch; color: var(--text-muted);
  font-size: 0.98rem; line-height: 1.95;
}
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__top { justify-content: center; }
.sec-head--center .sec-head__lead { margin-inline: auto; }

/* ── kicker (standalone) ────────────────────────────────────────── */
.kicker {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent-deep);
}

/* ── display headings ───────────────────────────────────────────── */
.display {
  font-family: var(--font-jp-display); font-weight: 400;
  line-height: 1.3; letter-spacing: 0.03em;
}
.display-en {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  line-height: 1.05; letter-spacing: 0.01em;
}

/* ── signature motif: a short centred hairline w/ a diamond ────────── */
.motif {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  color: var(--accent); margin: 0 auto;
}
.motif::before, .motif::after {
  content: ""; height: 1px; width: clamp(36px, 8vw, 84px);
  background: currentColor; opacity: 0.5;
}
.motif__dot { width: 6px; height: 6px; transform: rotate(45deg);
  border: 1px solid currentColor; }

/* ── cards (rounded containers) ─────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* ── media frames (edge-mix) ────────────────────────────────────── */
.frame-sharp { border-radius: 0; overflow: hidden; }       /* feature/editorial */
.frame-round { border-radius: var(--radius-lg); overflow: hidden; } /* secondary media + map */
.media-cover { width: 100%; height: 100%; object-fit: cover; }

/* ── tags / chips (pills) ───────────────────────────────────────── */
.tag {
  display: inline-block; font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.4em 1em; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--text-muted);
}

/* ── buttons (pills) ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-body); font-size: 0.84rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 0.95em 2.1em; border-radius: var(--radius-pill);
  border: 1px solid transparent; transition: background .35s var(--ease),
    color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent-deep); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--accent-deep);
  border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent-deep); }
/* on a dark band, fills/outlines go light (an accent fill would vanish) */
.btn--on-dark { background: #fff; color: var(--accent-strong); }
.btn--on-dark:hover { background: rgba(255,255,255,.86); }
.btn--outline-light { background: transparent; color: #fff;
  border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── page header (subpages) ─────────────────────────────────────── */
.page-header {
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* ── footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--surface-2); color: var(--text);
  padding-block: clamp(3.5rem, 6vw, 5rem); border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-wordmark {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 2rem; letter-spacing: 0.04em; color: var(--accent-deep);
}
.footer-read { font-family: var(--font-jp-display); font-size: 1rem;
  letter-spacing: 0.1em; margin-top: 0.35rem; }
.footer-note { color: var(--text-muted); font-size: 0.86rem; line-height: 1.8;
  margin-top: 0.9rem; }
.footer-label {
  font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.9rem;
}
.footer-line { color: var(--text-muted); font-size: 0.86rem; line-height: 1.85;
  margin-bottom: 0.55rem; }
.footer-line a { text-decoration: none; transition: color .3s var(--ease); }
.footer-line a:hover { color: var(--accent-deep); }
.footer-copy {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── reveal (the ONLY scroll-reveal system) ─────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   navbar.css (baked) — appended verbatim EXCEPT the fallback :root block
   and the bare `.container` selector were stripped (they would override
   the locked tokens / container above). nav-scoped `.container` kept.
   ===================================================================== */

nav.bh-nav a,
.mob-menu a { text-decoration: none; color: inherit; }
nav.bh-nav .container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.link-slide { position: relative; display: inline-block; padding-bottom: 2px; }
.link-slide::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.link-slide:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Nav (base — shared across all variants) ─────────────────────── */
nav.bh-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), background 0.3s ease, border-color 0.3s ease;
}
nav.bh-nav .container { padding-block: 1.1rem; }
nav.bh-nav .nav-links { display: flex; gap: 2rem; }
nav.bh-nav .nav-links a {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em;
  transition: color 0.3s ease;
}
nav.bh-nav .brand {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em;
  white-space: nowrap; transition: color 0.3s ease;
}
nav.bh-nav .hamburger {
  display: none; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.bh-nav .hamburger span {
  width: 22px; height: 2px; background: var(--text);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* ── Hamburger morph variants — open/close animation ────────────────── */
nav.bh-nav .hamburger--morph-classic-rotate.open span:nth-child(1) {
  transform: translate3d(0, 7px, 0) rotate(45deg);
}
nav.bh-nav .hamburger--morph-classic-rotate.open span:nth-child(2) {
  opacity: 0;
}
nav.bh-nav .hamburger--morph-classic-rotate.open span:nth-child(3) {
  transform: translate3d(0, -7px, 0) rotate(-45deg);
}

/* Variant 4: centered-split */
nav.bh-nav.centered-split {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
nav.bh-nav.centered-split .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3rem;
}
nav.bh-nav.centered-split .nav-links {
  gap: 2.75rem;
}
nav.bh-nav.centered-split .nav-links-left {
  justify-self: end;
}
nav.bh-nav.centered-split .nav-links-right {
  justify-self: start;
}
nav.bh-nav.centered-split .brand-centered {
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  justify-self: center;
}

@media (max-width: 1024px) {
  nav.bh-nav.centered-split .container {
    display: flex;
    justify-content: space-between;
  }
  nav.bh-nav.centered-split .nav-links-left,
  nav.bh-nav.centered-split .nav-links-right { display: none; }
  nav.bh-nav.centered-split .brand-centered { text-align: left; }
  nav.bh-nav.centered-split .hamburger { display: flex; }
}

/* Mob menu — shared base. */
.mob-menu {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; gap: 1.5rem;
}

/* 3. centered-minimal-light */
.mob-menu--style-centered-minimal-light {
  background: var(--bg);
  padding: 2rem;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}
.mob-menu--style-centered-minimal-light a {
  font-family: var(--font-jp);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
}

/* 2. slide-top */
.mob-menu--reveal-slide-top {
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-menu--reveal-slide-top.open { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .mob-menu {
    transition: opacity 0.15s ease !important;
    transform: none !important;
    opacity: 0;
    pointer-events: none;
  }
  .mob-menu.open {
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── Keyboard focus (a11y) ─────────────────────────────────────────── */
nav.bh-nav a:focus-visible,
nav.bh-nav .hamburger:focus-visible,
.mob-menu a:focus-visible {
  outline: 2px solid var(--accent, #1a1a1a);
  outline-offset: 3px;
}
