/* ===========================================================
   CALPATHA  E"墨と余白" (Sumi to Yohaku / Ink & Negative Space)
   Dark Noir ÁENeo-Japanese ÁEExperimental Typography
   =========================================================== */

/* ── 1. Design Tokens ── */
:root {
  /* Dark Noir Palette */
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --text: #f0e8d8;
  --text-muted: rgba(240, 232, 216, 0.75);
  --accent: #c4a265;
  --accent-dim: rgba(196, 162, 101, 0.15);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(240, 232, 216, 0.08);
  --border-active: rgba(196, 162, 101, 0.3);
  --shadow: rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;

  /* Fluid Sizes */
  --text-hero: clamp(4rem, 14vw, 14rem);
  --text-giant: clamp(3rem, 10vw, 10rem);
  --text-xl: clamp(2rem, 5vw, 4rem);
  --text-lg: clamp(1.2rem, 2.5vw, 2rem);
  --text-md: clamp(1rem, 1.5vw, 1.2rem);
  --text-sm: 0.95rem;
  --text-xs: 0.85rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-section: clamp(8rem, 18vh, 16rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.5s;
  --duration-fast: 0.25s;
  --duration-slow: 1s;
}

@property --shimmer-x {
  syntax: '<percentage>';
  initial-value: -100%;
  inherits: false;
}

/* ── 3. Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 2px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
  word-break: auto-phrase;
  /* Modern browsers: semantic Japanese line breaks */
}

/* Fallback for browsers not supporting auto-phrase */
@supports not (word-break: auto-phrase) {
  p {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* ── 3c. Footer Parallax Wrapper ── */
.footer-parallax-wrap {
  position: relative;
  z-index: 2;
  background-color: var(--bg);
  margin-bottom: 300px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Utilities: Text & Breaking ── */
.u-wrap {
  display: inline-block;
  white-space: nowrap;
}

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

/* ── 4. Custom Cursor ── */
@media (pointer: fine) {
  * {
    cursor: none;
  }
}

@media (pointer: coarse) {

  .cursor,
  .cursor-follower {
    display: none !important;
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 0 15px rgba(196, 162, 101, 0.4), 0 0 40px rgba(196, 162, 101, 0.15);
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.25;
}

.cursor.hovered {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 25px rgba(196, 162, 101, 0.6), 0 0 60px rgba(196, 162, 101, 0.2);
}

.cursor.hovered+.cursor-follower {
  width: 55px;
  height: 55px;
  opacity: 0.4;
}



/* ── 6. Gold Gradient Text ── */
.gold-gradient {
  background: linear-gradient(0deg,
      var(--accent),
      #e8d5a8,
      var(--accent),
      #a18548,
      var(--accent));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}



/* ── 8. Global Loader ── */
#loader {
  position: fixed;
  inset: 0;
  /* Fallback for older browsers */
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 20000;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loader-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  letter-spacing: 0.1em;
  font-weight: 400;
}

.loader-bar {
  width: 120px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--text);
}

html.skip-loader #loader {
  display: none !important;
}

/* ── 9. Transition Curtain ── */
.transition-curtain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 9999;
  transform: translateY(100%);
  pointer-events: none;
}

/* ── 10. Navigation ── */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-item {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
  transition: opacity var(--duration);
  position: relative;
  display: inline-block;
}

.nav-item.active,
.nav-item:hover {
  opacity: 1;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration) var(--ease-out);
}

.nav-item.active::after,
.nav-item:hover::after {
  width: 100%;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 8px;
  /* Slightly wider gap */
  cursor: pointer;
  z-index: 20000;
  /* Ensure this is the absolute highest */
  padding: 15px;
  margin-right: -15px;
  /* Offset the padding so it visually stays in the same spot */
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  width: 32px;
  height: 1px;
  /* Thinner */
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out), width 0.4s var(--ease-out);
  transform-origin: center;
}

/* Elegant hover effect */
@media (hover: hover) {
  .nav-toggle:hover span:first-child {
    width: 24px;
    transform: translateX(8px);
  }
}

.nav-toggle.active span:first-child {
  width: 32px;
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  width: 32px;
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1500;
  /* Ensure it is above everything but loader, transition, and fixed-nav */
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  /* Larger gap between menu items */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu .mobile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  opacity: 0;
  text-decoration: none;
  letter-spacing: 0.25em;
  /* Wider spacing for Japanese */
  font-weight: 400;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s ease;
  padding: 0;
  text-align: center;
  position: relative;
}

.mobile-menu .mobile-link:hover {
  color: var(--accent);
}

.mobile-menu .mobile-link-en {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0;
}

.mobile-menu .mobile-link-en::before {
  content: '';
  display: block;
  width: 1px;
  height: 16px;
  background: var(--text);
  opacity: 0.15;
  margin: 0;
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
  transition-delay: 0.4s;
}

/* ── 11. Hero Section & Marquee Wrapper ── */
.hero-and-marquee-wrapper {
  position: relative;
  clip-path: inset(0);
  /* Clips the fixed background to this container */
  z-index: 2;
}

.hero-bg-fixed {
  position: fixed;
  inset: 0;
  background-color: #0a0a0a;
  background-image: url('assets/top_background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-bg-fixed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  width: 100%;
  padding: 0 var(--space-md);
}



.hero-subtitle {
  font-family: var(--font-jp);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.4em;
  margin-top: var(--space-lg);
  color: var(--text-muted);
  opacity: 0;
  font-weight: 400;
}

.hero-subtitle-en {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
  color: var(--text-muted);
  opacity: 0;
  font-weight: 400;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 0.2;
    transform: scaleY(0.5);
  }

  50% {
    opacity: 0.7;
    transform: scaleY(1);
  }
}

/* ── 12. Manifesto Section ── */
.manifesto-section.section-padding {
  padding-top: clamp(12rem, 25vh, 24rem);
  padding-bottom: clamp(12rem, 25vh, 24rem);
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-text em {
  font-style: italic;
  color: var(--accent);
}

.manifesto-sub {
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-md);
  letter-spacing: 0.2em;
}

/* ── 13. Marquee ── */
.marquee-section {
  position: relative;
  /* Context over fixed background */
  padding: var(--space-md) 0;
  overflow: hidden;
  background: rgba(5, 5, 5, 0.5);
  /* Semi-transparent dark */
  backdrop-filter: blur(12px);
  /* Glassmorphism blur */
  -webkit-backdrop-filter: blur(12px);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 180s linear infinite;
  /* Even slower speed */
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 20rem;
  /* Increased spacing significantly */
  padding: 0 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-content span {
  font-family: var(--font-display);
  /* Serif font */
  font-style: italic;
  /* Italic for elegance */
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  opacity: 0.15;
  /* Slightly increased opacity for better legibility */
  letter-spacing: 0.05em;
  /* Tighter letter spacing for serif */
}



@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ── 14. Divider ── */
.gold-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem auto;
  opacity: 0.2;
}

/* ── 15. Section Layout ── */
.section-padding {
  padding: var(--space-section) var(--space-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── 16. Philosophy Triptych ── */
.editorial-section {
  position: relative;
  padding-bottom: 100px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.editorial-item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--duration), background var(--duration);
}

.editorial-item:hover {
  border-color: var(--border-active);
  background: var(--surface-hover);
}

.editorial-item.item-1 {
  grid-column: 1 / 3;
}

.editorial-item.item-2 {
  grid-column: 2 / 4;
  text-align: right;
  margin-top: 12vh;
}

.editorial-item.item-3 {
  grid-column: 1 / 3;
  text-align: left;
  max-width: none;
  margin: 15vh 0 0;
  margin-left: 0;
}

.editorial-num {
  font-family: 'Playfair Display', var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--text);
  display: block;
  margin-bottom: 1rem;
  opacity: 0.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  height: auto;
}

/* Remove specific positioning as it's now part of the flow */
.editorial-item.item-1 .editorial-num,
.editorial-item.item-2 .editorial-num,
.editorial-item.item-3 .editorial-num {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
}

.editorial-jp {
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-xs);
  display: block;
  opacity: 0.9;
}

.editorial-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--text);
  letter-spacing: -0.02em;
}

.editorial-desc {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── 17. Signature Section ── */
.signature-section {
  text-align: center;
  position: relative;
}


.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  align-items: stretch;
}

.signature-grid-bottom {
  grid-template-columns: repeat(2, 1fr);
  max-width: 66.66%;
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-md);
}

.signature-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  top: 0;
  transition: border-color var(--duration), background var(--duration), top var(--duration);
}

.signature-content:hover {
  border-color: var(--border-active);
  background: var(--surface-hover);
  top: -5px;
}

.signature-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.signature-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.signature-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.signature-text {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-weight: 400;
  text-align: left;
}

.signature-price {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xs) var(--space-md);
}

/* ── 18. Stats Counter ── */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg) 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: -0.3rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.stat-label-jp {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
  letter-spacing: 0.2em;
}

/* ── 19. Liquid Gallery (Atmospheres) ── */
.liquid-gallery-section {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.liquid-gallery-section .container {
  text-align: center;
  position: relative;
  z-index: 2;
}

.liquid-canvas-container {
  width: 100%;
  max-width: 1200px;
  height: 55vh;
  position: relative;
  border: 1px solid var(--border-active);
  background: linear-gradient(135deg, #0f0f0f, #1a1714);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.liquid-canvas-container canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.liquid-canvas-container .liquid-text {
  color: var(--text-muted);
  letter-spacing: 0.3em;
  position: relative;
  z-index: 2;
  font-family: var(--font-jp);
  font-size: 0.8rem;
}

.touch-hint {
  display: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-top: var(--space-xs);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  z-index: 2;
}

@keyframes fade-pulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

/* ── 20. Mosaic (Visual Journey) ── */
.mosaic-section {
  padding: var(--space-section);
  text-align: center;
}

.mosaic-title {
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  line-height: 1.4;
  /* Increased from 1.2 to prevent clipping */
  padding-top: 0.2em;
  /* Ensure ascenders are visible */
  height: auto;
}

.section-subtitle-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-lg);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.mosaic-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mosaic-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0;
  background: linear-gradient(135deg, #0f0f0f, #1a1714, #0f0f0f);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Shutter Reveal */
.mosaic-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 2;
}

.mosaic-img.revealed::after {
  transform: scaleY(0);
}

/* ── 21. CTA Section ── */
.cta-section {
  padding: var(--space-xl) 10vw;
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--text-muted);
}

.cta-text-jp {
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  color: var(--accent);
  opacity: 0.8;
  letter-spacing: 0.3em;
  margin-top: var(--space-xs);
}

.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1.1rem 3.5rem;
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform var(--duration) var(--ease-out);
  z-index: -1;
}

.cta-button:hover {
  color: var(--bg);
}

.cta-button:hover::before {
  transform: translateX(0);
}

/* ── 22. Page Header (Sub-pages) ── */
.page-header {
  height: 50vh;
  height: 50dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  color: var(--text);
  opacity: 0;
}

.page-subtitle-jp {
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  color: var(--accent);
  letter-spacing: 0.4em;
  opacity: 0.8;
}

/* ── 23. Menu Page ── */
.menu-section {
  max-width: 850px;
  margin: 0 auto;
}

.menu-category+.menu-category {
  margin-top: var(--space-xl);
}

.menu-category-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: 0.4em;
}

.menu-category-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-xs);
}

.menu-grid {
  display: grid;
  gap: 0;
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid var(--border);
}

.menu-item-row>div {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dish-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  text-align: left;
}

.dish-desc {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
  text-align: left;
}

.dish-origin {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.8;
  margin-top: 0.2rem;
  letter-spacing: 0.1em;
  text-align: left;
}

.dish-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  white-space: nowrap;
}

.price-ghost {
  visibility: hidden;
}

/* Glass Panel / Philosophy Style Table */
.glass-panel {
  background: var(--surface);
  padding: var(--space-lg) var(--space-md);
  border: none;
  transition: background var(--duration);
}

.glass-panel:hover {
  background: var(--surface-hover);
}

/* ── 24. About Page Editorial ── */
.editorial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70vh;
  padding: 0 5vw;
  gap: 5vw;
}

.editorial-row.reverse {
  flex-direction: row-reverse;
}

.editorial-text {
  flex: 1;
  max-width: 500px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  transition: border-color var(--duration), background var(--duration);
}

.editorial-text:hover {
  border-color: var(--border-active);
  background: var(--surface-hover);
}

.chapter-num {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.08;
  margin-bottom: -1rem;
}

.editorial-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--text);
}

.editorial-text .chapter-jp {
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  color: var(--accent);
  opacity: 0.8;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-sm);
  display: block;
}

.editorial-text p {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.9;
  color: var(--text-muted);
  font-weight: 400;
}

.editorial-image-container {
  flex: 1;
  height: 55vh;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.editorial-image {
  width: 100%;
  height: 120%;
  background: linear-gradient(135deg, #0f0e0c, #1a1714, #0d0c0a);
  background-size: cover;
  background-position: center;
}

/* ── About Page: Founder Section ── */
.founder-section {
  text-align: center;
}

.founder-card {
  max-width: 700px;
  margin: 0 auto;
}

.founder-quote {
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.founder-attribution {
  margin-top: var(--space-md);
}

/* ── 25. Contact Page ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
  color: var(--accent);
}

.contact-info h3:not(:first-child) {
  margin-top: var(--space-md);
}

.contact-info p {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 400;
}

.contact-jp-note {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  opacity: 0.8;
}

.submit-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  display: block;
  width: 100%;
  margin-top: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform var(--duration) var(--ease-out);
  z-index: -1;
}

.submit-btn:hover {
  color: var(--bg);
}

.submit-btn:hover::before {
  transform: translateX(0);
}

/* ── 26. Clip-Path Reveal ── */
.clip-reveal {
  clip-path: inset(8% 8% 8% 8%);
  transition: clip-path 0s;
}

/* ── 28. Footer ── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #050505;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  opacity: 0.3;
}

.footer-jp {
  font-family: var(--font-jp);
  font-size: var(--text-xs);
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.3em;
}



.footer-copy {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  opacity: 0.4;
  margin-top: var(--space-sm);
}

/* ── 29. Animation Utilities ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}



/* ── 30. Shimmer Effect ── */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(196, 162, 101, 0.04),
      transparent);
  transform: translateX(var(--shimmer-x));
  animation: shimmer-move 4s ease-in-out infinite;
}

@keyframes shimmer-move {
  0% {
    --shimmer-x: -100%;
  }

  100% {
    --shimmer-x: 200%;
  }
}

/* ── 31. Responsive ── */
@media (max-width: 768px) {
  .fixed-nav {
    padding: 1.2rem 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .section-padding {
    padding: 6vh 5vw;
  }

  /* Increase padding significantly for the atmospheres section */
  #atmospheres.section-padding {
    padding-top: 25vh;
    padding-bottom: 25vh;
  }

  /* Show the touch hint on mobile */
  .touch-hint {
    display: block;
    animation: fade-pulse 2s infinite;
  }

  .glass-panel {
    padding: var(--space-md);
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .signature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .signature-grid-bottom {
    max-width: 100%;
  }

  .editorial-item.item-1,
  .editorial-item.item-2,
  .editorial-item.item-3 {
    grid-column: 1 / -1;
    padding: var(--space-md);
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
  }

  .editorial-num {
    font-size: 5rem;
    top: -0.6em;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .editorial-row,
  .editorial-row.reverse {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg) 5vw;
    min-height: auto;
    gap: var(--space-md);
  }

  .editorial-text {
    max-width: 100%;
  }

  .editorial-text p {
    text-align: left;
  }

  .editorial-image-container {
    flex: none;
    height: 40vh;
    width: 100%;
  }

  .menu-item-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .dish-price {
    align-self: flex-start;
    margin-top: 0.2rem;
  }

  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-parallax-wrap {
    margin-bottom: 250px;
  }

  .site-footer {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 37. Founder Grid (Desktop: Side-by-side, Mobile: Stacked) ── */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Stacked on mobile */
  gap: calc(var(--space-md) * 2);
  /* Default spacing */
}

@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr 1fr;
    /* Side-by-side on desktop */
  }
}

/* ── 38. Responsive Line Breaks ── */
.u-br-pc {
  display: initial;
}

.u-br-sp {
  display: none;
}

@media (max-width: 768px) {
  .u-br-pc {
    display: none;
  }

  .u-br-sp {
    display: initial;
  }
}