/**
 * ONSEN — original Tunai theme for bathhouses, spas & saunas.
 * "Night bath": deep charcoal-brown steam, hinoki-wood slat textures,
 * hot-spring blue ripple rings, stone-stack markers and a quiet Zen Old
 * Mincho serif. Scoped under .onsen-theme.
 *
 * Every blue in this sheet derives from --on-spring via color-mix, so a
 * merchant accent re-tunes the whole bath from one variable.
 */

.onsen-theme {
  --on-night: #231c17;
  --on-night-deep: #1b1511;
  --on-stone: #2c241e;
  --on-ink: #f0e9dd;
  --on-ink-soft: #a89c8c;
  --on-spring: #7fb4b8;
  --on-on-spring: #10211f;
  --on-hinoki: #c2a175;
  --on-line: rgba(240, 233, 221, 0.12);
  --on-line-soft: rgba(240, 233, 221, 0.07);

  /* Derived spring shades — all follow --on-spring when accentized. */
  --on-spring-bright: color-mix(in srgb, var(--on-spring) 72%, #fff);
  --on-spring-deep: color-mix(in srgb, var(--on-spring) 46%, var(--on-night));
  --on-spring-soft: color-mix(in srgb, var(--on-spring) 12%, transparent);
  --on-spring-wash: color-mix(in srgb, var(--on-spring) 7%, transparent);
  --on-spring-line: color-mix(in srgb, var(--on-spring) 34%, transparent);

  --on-hinoki-soft: rgba(194, 161, 117, 0.16);
  --on-hinoki-line: rgba(194, 161, 117, 0.4);

  --fx-accent: var(--on-spring);
  --fx-spot: color-mix(in srgb, var(--on-spring) 8%, transparent);
  --fx-mq: 38s;

  --on-display: "Zen Old Mincho", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --on-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  color-scheme: dark;
  background: var(--on-night);
  color: var(--on-ink);
  font-family: var(--on-body);
  font-size: 16.5px;
  line-height: 1.78;
  overflow-x: hidden;
  min-height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--on-spring) 50%, transparent) transparent;
}

.onsen-theme *,
.onsen-theme *::before,
.onsen-theme *::after {
  box-sizing: border-box;
}

.onsen-theme img {
  max-width: 100%;
  display: block;
}

.onsen-theme a {
  color: inherit;
  text-decoration: none;
}

.on-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Night steam — warm lantern breath top-left, spring glow bottom-right,
   and a faint grain so the dark never goes flat. */
.onsen-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 10% 0%, rgba(232, 185, 107, 0.07), transparent 68%),
    radial-gradient(ellipse 60% 46% at 92% 96%, var(--on-spring-wash), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.onsen-theme > * {
  position: relative;
  z-index: 1;
}

/* ── Typography helpers ─────────────────────────────────────────────────── */

/* Letterspaced eyebrow with a short hinoki slat tick. */
.on-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-hinoki);
}

.on-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--on-spring);
}

.onsen-theme h1,
.onsen-theme h2,
.onsen-theme h3 {
  font-family: var(--on-display);
  font-weight: 500;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.on-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 30px;
  background: color-mix(in srgb, var(--on-night) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--on-line);
}

.on-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--on-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.03em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.on-logo-icon {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  outline: 1px solid var(--on-line);
  outline-offset: 2px;
  flex: 0 0 auto;
}

/* A ripple ring — hollow circle with an echo. */
.on-logo-ring {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--on-spring);
}

.on-logo-ring::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--on-spring-line);
}

.on-nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.on-nav-links a {
  position: relative;
  color: var(--on-ink-soft);
  padding-bottom: 5px;
  transition: color 0.2s;
}

/* A waterline draws in under the active link. */
.on-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--on-spring);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.on-nav-links a:hover,
.on-nav-links a:focus-visible,
.on-nav-links a.fx-active {
  color: var(--on-ink);
}

.on-nav-links a:hover::after,
.on-nav-links a:focus-visible::after,
.on-nav-links a.fx-active::after {
  scale: 1 1;
}

/* ── Buttons — square-shouldered, lacquer calm ──────────────────────────── */
.on-btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--on-spring);
  color: var(--on-on-spring);
  font-family: var(--on-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--on-spring);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.3),
    0 14px 28px -14px color-mix(in srgb, var(--on-spring) 55%, transparent);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s,
    translate 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.on-btn:hover {
  background: var(--on-spring-bright);
  border-color: var(--on-spring-bright);
  translate: 0 -2px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 18px 34px -14px color-mix(in srgb, var(--on-spring) 65%, transparent);
}

.on-btn:focus-visible {
  outline: 2px solid var(--on-spring);
  outline-offset: 3px;
}

.on-btn--ghost {
  background: transparent;
  color: var(--on-ink);
  border-color: var(--on-ink-soft);
  box-shadow: none;
}

.on-btn--ghost:hover {
  background: var(--on-ink);
  border-color: var(--on-ink);
  color: var(--on-night);
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.6);
}

/* Glowing spring button for the visit pool. */
.on-btn--spring {
  background: var(--on-spring);
  border-color: var(--on-spring-bright);
  box-shadow:
    0 0 0 1px var(--on-spring-line),
    0 0 34px var(--on-spring-soft),
    0 16px 30px -14px color-mix(in srgb, var(--on-spring) 70%, transparent);
}

/* ── Hero — copy left, sunken pool photo behind hinoki slats ────────────── */
.on-hero {
  position: relative;
  padding: 92px 0 100px;
}

.on-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.on-hero h1 {
  margin: 0 0 20px;
  font-size: calc(clamp(42px, 5.8vw, 78px) * var(--tx-scale, 1));
  line-height: 1.1;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.on-hero-accent {
  font-style: normal;
  color: var(--on-spring);
  text-shadow: 0 0 34px var(--on-spring-soft);
}

.on-hero-motto {
  margin: 0 0 36px;
  color: var(--on-ink-soft);
  font-size: 17.5px;
  max-width: 44ch;
}

.on-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pool composition: a tall photo sunk behind a wooden slat wall on its left
   edge, a ripple ring floating off its top-right shoulder. */
.on-hero-art {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
  padding-left: 34px;
}

/* Hinoki slat wall — vertical wooden bars via repeating gradient. */
.on-hero-slats {
  position: absolute;
  left: 0;
  top: -26px;
  bottom: -26px;
  width: 120px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--on-hinoki-soft) 0 14px,
    transparent 14px 24px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* Ripple ring off the photo's shoulder. */
.on-hero-ring {
  position: absolute;
  top: -34px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1.5px solid var(--on-spring-line);
  pointer-events: none;
}

.on-hero-ring::before,
.on-hero-ring::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid var(--on-spring-line);
}

.on-hero-ring::after {
  inset: 36%;
  border-color: var(--on-spring);
  opacity: 0.6;
}

.on-hero-pool {
  position: relative;
  aspect-ratio: 10 / 12.8;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--on-line);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 44px 80px -38px rgba(0, 0, 0, 0.85);
}

.on-hero-pool img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Steam rolling off the pool's surface. */
.on-hero-mist {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--on-night) 45%, transparent), transparent 34%),
    linear-gradient(0deg, color-mix(in srgb, var(--on-night) 72%, transparent), transparent 42%);
}

/* Waterline under the whole hero — one long spring hairline with a glow. */
.on-hero-waterline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--on-spring-line) 30%, var(--on-spring-line) 70%, transparent);
  box-shadow: 0 0 24px var(--on-spring-soft);
}

/* ── Ticker ─────────────────────────────────────────────────────────────── */
.on-marquee {
  border-bottom: 1px solid var(--on-line);
  background: var(--on-night-deep);
  padding: 13px 0;
}

.on-marquee em {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 0 15px;
  font-style: normal;
  font-family: var(--on-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  white-space: nowrap;
}

/* Ripple-ring separators. */
.on-marquee em::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--on-spring);
  opacity: 0.7;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.on-section {
  padding: 96px 0;
}

/* Stone band — slightly lifted surface with a faint slat texture. */
.on-section--stone {
  background-color: var(--on-stone);
  background-image: repeating-linear-gradient(
    0deg,
    var(--on-line-soft) 0 1px,
    transparent 1px 56px
  );
  border-block: 1px solid var(--on-line);
}

/* Left-aligned head with a small stone stack beside it. */
.on-sec-head {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 54px;
}

/* Three stacked stones, built from plain elements. */
.on-sec-stones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.on-sec-stones i {
  display: block;
  height: 7px;
  border-radius: 50%;
  background: var(--on-ink-soft);
  opacity: 0.7;
}

.on-sec-stones i:nth-child(1) { width: 12px; }
.on-sec-stones i:nth-child(2) { width: 19px; }
.on-sec-stones i:nth-child(3) { width: 26px; background: var(--on-hinoki); }

.on-sec-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.on-sec-head h2 em {
  font-style: normal;
  color: var(--on-spring);
}

/* ── Services: the bath board — full-width tiles, wooden left edge ──────── */
.on-board {
  display: grid;
  gap: 16px;
  max-width: 880px;
}

.on-bath {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  background: color-mix(in srgb, var(--on-stone) 72%, var(--on-night));
  border: 1px solid var(--on-line);
  border-radius: 12px;
  overflow: hidden;
  transition: translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s,
    background 0.25s, box-shadow 0.25s;
}

/* Hinoki slat edge on every tile — three wooden bars. */
.on-bath-edge {
  flex: 0 0 auto;
  align-self: stretch;
  width: 16px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--on-hinoki-line) 0 4px,
    transparent 4px 8px
  );
  opacity: 0.75;
  transition: opacity 0.25s, background 0.25s;
}

.on-bath:hover,
.on-bath:focus-visible {
  translate: 6px 0;
  border-color: var(--on-spring-line);
  background: color-mix(in srgb, var(--on-stone) 88%, var(--on-spring));
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.8), 0 0 30px var(--on-spring-wash);
}

.on-bath:hover .on-bath-edge,
.on-bath:focus-visible .on-bath-edge {
  opacity: 1;
}

.on-bath-main {
  flex: 1 1 auto;
  min-width: 0;
}

.on-bath-name {
  display: block;
  font-family: var(--on-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.on-bath-meta {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--on-ink-soft);
  margin-top: 4px;
}

.on-bath-tail {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.on-bath-price {
  display: block;
  font-family: var(--on-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--on-spring);
}

.on-bath-book {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  margin-top: 4px;
  opacity: 0;
  translate: -6px 0;
  transition: opacity 0.2s, translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s;
}

.on-bath:hover .on-bath-book,
.on-bath:focus-visible .on-bath-book {
  opacity: 1;
  translate: 0 0;
  color: var(--on-spring-bright);
}

/* A curl of steam rising off the tile on hover. */
.on-bath-steam {
  position: absolute;
  right: 18%;
  bottom: -30px;
  width: 44px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 233, 221, 0.1), transparent);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s, translate 0.9s ease-out;
  pointer-events: none;
}

.on-bath:hover .on-bath-steam {
  opacity: 1;
  translate: 0 -46px;
}

/* ── Gallery: lantern-lit pools at uneven depths ────────────────────────── */
.on-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.on-gallery figure {
  position: relative;
  margin: 0;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--on-line);
  box-shadow: 0 24px 44px -30px rgba(0, 0, 0, 0.8);
  transition: translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s,
    border-color 0.25s;
}

/* Rows alternate 2-wide / 3-wide — pools of different sizes. */
.on-gallery figure:nth-child(5n + 4),
.on-gallery figure:nth-child(5n + 5) {
  grid-column: span 3;
  aspect-ratio: 16 / 9;
}

.on-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Warm lantern vignette pooling in the bottom of every photo. */
.on-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 12px;
  background: linear-gradient(0deg, rgba(27, 21, 17, 0.55), transparent 46%);
  box-shadow: inset 0 0 0 1px rgba(240, 233, 221, 0.06);
  pointer-events: none;
  transition: opacity 0.3s;
}

.on-gallery figure:hover {
  translate: 0 -5px;
  border-color: var(--on-spring-line);
  box-shadow:
    0 30px 54px -30px rgba(0, 0, 0, 0.85),
    0 0 34px var(--on-spring-wash);
}

.on-gallery figure:hover img {
  scale: 1.05;
}

.on-gallery figure:hover::after {
  opacity: 0.6;
}

.on-gallery figure:focus-visible {
  outline: 2px solid var(--on-spring);
  outline-offset: 3px;
}

/* ── Team: the keepers — ripple-ringed portraits ────────────────────────── */
.on-keepers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px 26px;
}

.on-keeper {
  position: relative;
  padding: 34px 24px 28px;
  text-align: center;
  background: color-mix(in srgb, var(--on-stone) 66%, var(--on-night));
  border: 1px solid var(--on-line);
  border-radius: 14px;
  transition: translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s,
    box-shadow 0.25s;
}

/* A wooden lintel across the top of each card. */
.on-keeper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--on-hinoki-line);
  transition: background 0.25s, left 0.3s, right 0.3s;
}

.on-keeper:hover {
  translate: 0 -5px;
  border-color: var(--on-spring-line);
  box-shadow: 0 26px 46px -28px rgba(0, 0, 0, 0.85), 0 0 30px var(--on-spring-wash);
}

.on-keeper:hover::before {
  background: var(--on-spring);
  left: 12%;
  right: 12%;
}

.on-keeper:focus-visible {
  outline: 2px solid var(--on-spring);
  outline-offset: 3px;
}

/* Portrait in concentric ripple rings. */
.on-keeper-ring {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 5px;
  border: 1.5px solid var(--on-spring-line);
}

.on-keeper-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--on-line);
  transition: border-color 0.25s, inset 0.3s;
}

.on-keeper:hover .on-keeper-ring::after {
  border-color: var(--on-spring-line);
  inset: -12px;
}

.on-keeper-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.on-keeper h3 {
  margin: 0 0 4px;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.on-keeper p {
  margin: 0;
  color: var(--on-ink-soft);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Classes ────────────────────────────────────────────────────────────── */
.on-sessions {
  max-width: 860px;
  margin: 0 auto;
}

.on-session {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 8px 22px 26px;
  border-bottom: 1px solid var(--on-line);
  transition: background 0.2s, padding 0.2s;
}

/* A slat tick standing at the row's left. */
.on-session::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 20px;
  width: 3px;
  margin-top: -10px;
  border-radius: 1.5px;
  background: var(--on-hinoki-line);
  transition: background 0.2s, height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-top 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.on-session:hover,
.on-session:focus-visible {
  background: linear-gradient(90deg, var(--on-spring-wash), transparent 72%);
  padding-left: 34px;
}

.on-session:hover::before,
.on-session:focus-visible::before {
  background: var(--on-spring);
  height: 30px;
  margin-top: -15px;
}

.on-session b {
  font-family: var(--on-display);
  font-weight: 600;
  font-size: 18px;
}

.on-session-when {
  display: block;
  color: var(--on-ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.on-session-seats {
  font-family: var(--on-display);
  font-weight: 600;
  color: var(--on-spring);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.on-session-seats.is-full {
  color: var(--on-ink-soft);
}

/* ── Visit: the spring — a glowing pool of ripple rings ─────────────────── */
.on-visit {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 116px 0 124px;
  background:
    radial-gradient(60% 80% at 50% 110%, var(--on-spring-soft), transparent 62%),
    var(--on-night-deep);
  border-top: 1px solid var(--on-line);
}

/* Expanding ripple rings centred low, like a drop hit the spring. */
.on-visit-ring {
  position: absolute;
  left: 50%;
  bottom: -22vw;
  width: 44vw;
  height: 44vw;
  min-width: 420px;
  min-height: 420px;
  translate: -50% 0;
  border-radius: 50%;
  border: 1px solid var(--on-spring-line);
  pointer-events: none;
  animation: on-visit-ripple 9s ease-out infinite;
}

.on-visit-ring--2 { animation-delay: -3s; }
.on-visit-ring--3 { animation-delay: -6s; }

@keyframes on-visit-ripple {
  0% { scale: 0.55; opacity: 0; }
  25% { opacity: 0.75; }
  100% { scale: 1.5; opacity: 0; }
}

.on-visit-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.on-eyebrow--spring {
  color: var(--on-spring);
  justify-content: center;
}

.on-eyebrow--spring::before {
  background: var(--on-hinoki);
}

.on-visit h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.14;
  text-wrap: balance;
  max-width: 22ch;
}

.on-visit h2 em {
  font-style: normal;
  color: var(--on-spring);
  text-shadow: 0 0 34px var(--on-spring-soft);
}

.on-visit-info {
  margin-bottom: 34px;
}

.on-visit-info p {
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--on-ink) 78%, transparent);
  max-width: 58ch;
}

.on-visit a:not(.on-btn) {
  color: var(--on-ink);
  border-bottom: 1px solid rgba(240, 233, 221, 0.4);
  transition: border-color 0.2s, color 0.2s;
}

.on-visit a:not(.on-btn):hover {
  color: #fff;
  border-bottom-color: var(--on-spring);
}

.on-outlets {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-size: 14px;
}

.on-outlets li {
  margin-bottom: 6px;
}

.onsen-theme .on-outlets a {
  border-bottom: none;
  color: color-mix(in srgb, var(--on-ink) 55%, transparent);
}

.onsen-theme .on-outlets a:hover {
  color: #fff;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.on-footer {
  padding: 28px 0 40px;
  color: var(--on-ink-soft);
  font-size: 13.5px;
  border-top: 1px solid var(--on-line);
  background: var(--on-night-deep);
}

.on-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.on-footer a {
  transition: color 0.2s;
}

.on-footer a:hover {
  color: var(--on-spring);
}

.on-footer-social {
  display: flex;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── View-all pill (shared ThemeGallery / ThemeTeam control) ────────────── */
.onsen-theme .theme-view-more {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 38px auto 0;
  padding: 12px 26px;
  background: transparent;
  border: 1px solid var(--on-ink-soft);
  border-radius: 4px;
  color: var(--on-ink);
  font-family: var(--on-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, translate 0.2s, box-shadow 0.2s;
}

.onsen-theme .theme-view-more:hover {
  background: var(--on-spring);
  border-color: var(--on-spring);
  color: var(--on-on-spring);
  translate: 0 -2px;
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--on-spring) 60%, transparent);
}

.onsen-theme .theme-view-more:focus-visible {
  outline: 2px solid var(--on-spring);
  outline-offset: 3px;
}

.onsen-theme .theme-view-more-icon {
  display: inline-flex;
}

/* ── Detail polish ──────────────────────────────────────────────────────── */
.onsen-theme ::selection {
  background: var(--on-spring);
  color: var(--on-on-spring);
}

.onsen-theme a:focus-visible,
.onsen-theme button:focus-visible {
  outline: 2px solid var(--on-spring);
  outline-offset: 3px;
}

/* Specificity guard: link colour never bleeds into buttons. */
.onsen-theme .on-btn {
  color: var(--on-on-spring);
}

.onsen-theme .on-btn--ghost {
  color: var(--on-ink);
}

.onsen-theme .on-btn--ghost:hover {
  color: var(--on-night);
}

/* ── Motion — steam-slow rises (ThemeFX arms [data-reveal]) ─────────────── */
.tfx .onsen-theme [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  scale: 0.994;
  transition:
    opacity 0.8s ease,
    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.tfx .onsen-theme [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Hero entrance: pool surfaces, slats settle, copy drifts up. */
.onsen-theme .on-hero-pool {
  animation: on-surface 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}

.onsen-theme .on-hero-slats {
  animation: on-fade 1.2s ease 0.45s backwards;
}

.onsen-theme .on-hero-ring {
  animation: on-fade 1.2s ease 0.7s backwards;
}

.onsen-theme .on-hero-copy > * {
  animation: on-surface 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.onsen-theme .on-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.onsen-theme .on-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.onsen-theme .on-hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes on-surface {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

@keyframes on-fade {
  from { opacity: 0; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
.on-mobile-bar {
  display: none;
}

@media (max-width: 1024px) {
  .on-hero-grid {
    gap: 44px;
  }
}

@media (max-width: 860px) {
  .on-nav-links,
  .on-nav > .on-btn {
    display: none;
  }

  .on-hero {
    padding: 56px 0 80px;
  }

  .on-hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .on-hero-art {
    margin: 0 auto;
    max-width: 420px;
  }

  .on-section {
    padding: 70px 0;
  }

  .on-sec-head {
    margin-bottom: 40px;
  }

  .on-gallery figure,
  .on-gallery figure:nth-child(5n + 4),
  .on-gallery figure:nth-child(5n + 5) {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
  }

  .on-visit {
    padding: 88px 0 96px;
  }
}

@media (max-width: 720px) {
  .on-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--on-night) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--on-line);
    box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.4);
    justify-content: center;
  }

  .on-mobile-bar .on-btn {
    width: 100%;
    text-align: center;
  }

  .on-footer {
    padding-bottom: 112px;
  }
}

@media (max-width: 640px) {
  .on-wrap {
    padding: 0 20px;
  }

  .on-nav {
    padding: 12px 20px;
  }

  .on-hero h1 {
    font-size: calc(clamp(36px, 11vw, 52px) * var(--tx-scale, 1));
  }

  .on-hero-motto {
    font-size: 16px;
  }

  .on-hero-art {
    padding-left: 22px;
  }

  .on-hero-slats {
    width: 84px;
  }

  .on-hero-ring {
    width: 84px;
    height: 84px;
    top: -22px;
    right: -14px;
  }

  .on-bath {
    flex-wrap: wrap;
    padding: 22px 20px;
    gap: 14px 18px;
  }

  .on-bath-edge {
    width: 12px;
  }

  .on-bath-tail {
    margin-left: auto;
  }

  .on-marquee em {
    font-size: 12.5px;
    gap: 22px;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .onsen-theme .on-hero-pool,
  .onsen-theme .on-hero-slats,
  .onsen-theme .on-hero-ring,
  .onsen-theme .on-hero-copy > *,
  .onsen-theme .on-visit-ring {
    animation: none;
  }

  .onsen-theme .on-visit-ring {
    opacity: 0.3;
  }

  .tfx .onsen-theme [data-reveal] {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: none;
  }

  .onsen-theme .on-btn,
  .onsen-theme .theme-view-more,
  .on-gallery figure,
  .on-gallery figure img,
  .on-keeper,
  .on-bath,
  .on-session {
    transition: none;
  }
}

/* ── Themed backdrop: ripple rings and steam curls ────────────────────────
   A whisper-quiet motif tile pinned behind every section. `::before` carries
   the colour wash; this rides on `::after` at z-index -1, kept inside the
   root's own stacking context via `isolation`. */
.onsen-theme {
  isolation: isolate;
}

.onsen-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='124'%20height='124'%3E%3Cg%20fill='none'%20stroke='%23f0e9dd'%20stroke-opacity='.05'%20stroke-width='1.2'%20stroke-linecap='round'%3E%3Ccircle%20cx='30'%20cy='34'%20r='16'/%3E%3Ccircle%20cx='30'%20cy='34'%20r='9'/%3E%3Ccircle%20cx='30'%20cy='34'%20r='3'/%3E%3Cpath%20d='M88%2020c-6-5%206-10%200-15M100%2022c-6-5%206-10%200-15'/%3E%3Cpath%20d='M92%20104c-8%200-13-4-13-10h26c0%206-5%2010-13%2010z'/%3E%3Cellipse%20cx='92'%20cy='86'%20rx='9'%20ry='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 124px 124px;
  background-repeat: repeat;
}

/* ── Deco: bathhouse ambience ─────────────────────────────────────────────
   Fixed full-viewport layer: a noren curtain hanging over the right margin, a
   lantern glowing on the left, a bucket and ladle resting low, a stone stack
   in the corner, steam wisps climbing and ripple rings blooming near the
   floor. `.onsen-theme > *` lifts children to z-index 1; the more specific
   override below keeps the deco pinned beneath them. */
.onsen-theme > .on-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Steam wisps — tall blurred ribbons rising off the baths. */
.on-steam {
  position: absolute;
  bottom: -4%;
  width: 90px;
  height: 52vh;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(240, 233, 221, 0.05) 38%,
    rgba(240, 233, 221, 0.09) 76%,
    transparent
  );
  border-radius: 50%;
  filter: blur(16px);
  transform-origin: 50% 100%;
  animation: on-steam-climb ease-in-out infinite;
}

@keyframes on-steam-climb {
  0%, 100% { transform: skewX(-7deg) scaleY(1); opacity: 0.55; }
  50% { transform: skewX(8deg) scaleY(1.1) translateY(-4vh); opacity: 0.9; }
}

.on-steam--1 { left: 4%; animation-duration: 14s; }
.on-steam--2 { left: 32%; height: 38vh; animation-duration: 18s; animation-delay: -7s; }
.on-steam--3 { right: 28%; height: 46vh; animation-duration: 16s; animation-delay: -11s; }
.on-steam--4 { right: 5%; height: 58vh; animation-duration: 20s; animation-delay: -4s; }

/* Ripple rings — circles blooming outward low on the page. */
.on-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--on-spring-line);
  opacity: 0;
  animation: on-ripple-bloom ease-out infinite;
}

@keyframes on-ripple-bloom {
  0% { scale: 0.3; opacity: 0; }
  20% { opacity: 0.5; }
  100% { scale: 1.3; opacity: 0; }
}

.on-ripple--1 { left: 10%; bottom: 12%; width: 120px; height: 44px; animation-duration: 8s; }
.on-ripple--2 { left: 26%; bottom: 6%; width: 80px; height: 30px; animation-duration: 10s; animation-delay: -4s; }
.on-ripple--3 { left: 48%; bottom: 10%; width: 150px; height: 54px; animation-duration: 12s; animation-delay: -7s; }
.on-ripple--4 { right: 22%; bottom: 5%; width: 100px; height: 36px; animation-duration: 9s; animation-delay: -2s; }
.on-ripple--5 { right: 6%; bottom: 14%; width: 130px; height: 48px; animation-duration: 11s; animation-delay: -6s; }
.on-ripple--6 { left: 70%; bottom: 18%; width: 70px; height: 26px; animation-duration: 13s; animation-delay: -9s; }

/* Water drops — tiny spring-blue points falling briefly then gone. */
.on-drop {
  position: absolute;
  top: -8px;
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: var(--on-spring);
  opacity: 0;
  animation: on-drop-fall linear infinite;
}

@keyframes on-drop-fall {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 0.4; }
  70% { opacity: 0.3; }
  100% { transform: translateY(105vh); opacity: 0; }
}

.on-drop--1 { left: 8%; animation-duration: 11s; }
.on-drop--2 { left: 18%; animation-duration: 15s; animation-delay: -6s; }
.on-drop--3 { left: 30%; animation-duration: 13s; animation-delay: -9s; }
.on-drop--4 { left: 42%; animation-duration: 17s; animation-delay: -3s; }
.on-drop--5 { left: 53%; animation-duration: 12s; animation-delay: -7s; }
.on-drop--6 { left: 64%; animation-duration: 16s; animation-delay: -12s; }
.on-drop--7 { left: 74%; animation-duration: 14s; animation-delay: -5s; }
.on-drop--8 { left: 83%; animation-duration: 18s; animation-delay: -10s; }
.on-drop--9 { left: 91%; animation-duration: 13.5s; animation-delay: -2s; }
.on-drop--10 { left: 96%; animation-duration: 15.5s; animation-delay: -8s; }

/* ── Anchored ornaments — the big pictorial layer ── */

/* The noren curtain hanging over the right margin. */
.on-noren {
  position: absolute;
  top: -4px;
  right: 3%;
  width: 132px;
  height: 142px;
  opacity: 0.9;
  transform-origin: 50% 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  animation: on-noren-sway 9s ease-in-out infinite;
}

@keyframes on-noren-sway {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.4deg); }
}

/* The lantern hanging in the left margin, glow pulsing slowly. */
.on-lantern {
  position: absolute;
  top: -4px;
  left: 4%;
  width: 54px;
  height: 108px;
  opacity: 0.9;
  transform-origin: 50% 0;
  filter: drop-shadow(0 0 22px rgba(232, 185, 107, 0.3));
  animation: on-lantern-sway 7s ease-in-out infinite;
}

@keyframes on-lantern-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* Bucket and ladle resting in the lower-left margin. */
.on-bucket {
  position: absolute;
  bottom: 6%;
  left: -12px;
  width: 130px;
  opacity: 0.8;
  animation: on-bucket-settle 18s ease-in-out infinite alternate;
}

@keyframes on-bucket-settle {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Stone stack rising from the lower-right corner. */
.on-stones {
  position: absolute;
  bottom: -8px;
  right: 2%;
  width: 120px;
  opacity: 0.85;
  transform-origin: 50% 100%;
  animation: on-stones-breathe 16s ease-in-out infinite alternate;
}

@keyframes on-stones-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.02) translateY(-4px); }
}

@media (max-width: 720px) {
  .on-noren,
  .on-bucket,
  .on-ripple {
    display: none;
  }

  .on-lantern { width: 40px; }
  .on-stones { width: 80px; opacity: 0.6; }
  .on-steam--2,
  .on-steam--3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .on-steam,
  .on-ripple,
  .on-drop,
  .on-noren,
  .on-lantern,
  .on-bucket,
  .on-stones {
    animation: none;
  }

  .on-steam,
  .on-ripple,
  .on-drop {
    opacity: 0;
  }
}
