/* ==========================================================================
   THE CEDAR HOUSE — LUXURY DESIGN SYSTEM & STYLESHEET
   Industry: Boutique Hotel (Kyoto, Japan)
   Art Direction: "THE STILLNESS OF CEDAR" (Sugi no Shizukasa / 杉の静けさ)
   Palette: Warm Hinoki Sand (#F5F0E6) + Aged Sumi (#24201D) + Cedar Bark (#B86B3A)
   Typography: Spectral + Manrope + Noto Serif JP
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@300;400;500&family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  /* Colors */
  --ground: #F5F0E6;
  --ground-surface: #EDE5D6;
  --ground-card: #FAF6F0;
  --ground-dark: #1C1815;
  --ground-dark-card: #27221E;
  
  --ink: #24201D;
  --ink-body: #453E38;
  --ink-faint: #7C7267;
  --ink-light: #F5F0E6;
  --ink-light-faint: #C8BFB2;
  
  --line: #DCD4C5;
  --line-dark: #38312B;
  
  --accent: #B86B3A;
  --accent-amber: #D4844D;
  --accent-soft: rgba(184, 107, 58, 0.12);
  
  /* Typography */
  --font-display: 'Spectral', 'Noto Serif JP', Georgia, serif;
  --font-jp: 'Noto Serif JP', 'Spectral', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing & Radius */
  --nav-height: 80px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 100px;
  --max-width: 1360px;
  --transition-smooth: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--ground);
  color: var(--ink-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: clip;
  background-color: var(--ground);
  position: relative;
}

/* Craft Layer */
::selection {
  background-color: var(--accent);
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ground-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--ink-faint);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Tabular Figures for Numbers & Prices */
.tabular-nums, .price, .time, .stat-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

h4 {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

p {
  font-size: 1rem;
  color: var(--ink-body);
  font-weight: 400;
}

.subhead {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subhead::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background-color: var(--accent);
}

.jp-mark {
  font-family: var(--font-jp);
  font-weight: 300;
  color: var(--accent);
  opacity: 0.85;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

.hairline-top {
  border-top: 1px solid var(--line);
}

.hairline-bottom {
  border-bottom: 1px solid var(--line);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(245, 240, 230, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(28, 24, 21, 0.03);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-body);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--ink);
  transition: var(--transition-smooth);
}

.lang-switcher:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--ground-card);
}

.lang-switcher span.active {
  color: var(--accent);
}

.btn-cedar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  background-color: var(--ink);
  color: var(--ground);
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-cedar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn-cedar:hover::before {
  transform: translateY(0);
}

.btn-cedar:hover {
  border-color: var(--accent);
  color: #FFFFFF;
}

.btn-cedar-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-cedar-outline::before {
  background-color: var(--ink);
}

.btn-cedar-outline:hover {
  color: var(--ground);
  border-color: var(--ink);
}

/* Mobile Nav Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245, 240, 230, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent);
}

/* Hero Section (H4 Centered Emblem) */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background-color: var(--ground);
}

/* Komorebi Ambient Light Loop (Floor Item 3) */
.komorebi-ambient {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 35% 30%, rgba(212, 132, 77, 0.08) 0%, rgba(245, 240, 230, 0) 60%),
              radial-gradient(circle at 75% 65%, rgba(184, 107, 58, 0.06) 0%, rgba(245, 240, 230, 0) 55%);
  pointer-events: none;
  animation: komorebiDrift 25s ease-in-out infinite alternate;
}

@keyframes komorebiDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-3%, 2%) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate(2%, -2%) scale(0.98);
    opacity: 0.75;
  }
}

.hero-emblem-wrap {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--ink-body);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

@media (max-width: 576px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn-cedar {
    width: 100%;
  }
}

.hero-frame-container {
  margin-top: 3.5rem;
  width: 100%;
  max-width: 1100px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(28, 24, 21, 0.06);
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-img-wrap {
    height: 320px;
  }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kbHero 22s ease-in-out infinite alternate;
}

@keyframes kbHero {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.07) translate(-1%, -1%);
  }
}

.hero-frame-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(28, 24, 21, 0.85);
  backdrop-filter: blur(8px);
  color: var(--ground);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(220, 212, 197, 0.2);
}

/* Signature Interaction: Kyoto Sanctuary Time/Mood Dial */
.mood-dial-container {
  background-color: var(--ground-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  margin-top: 3rem;
  position: relative;
}

.mood-dial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  .mood-dial-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.mood-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mood-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-body);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mood-btn:hover, .mood-btn.active {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

.mood-content-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 850px) {
  .mood-content-card {
    grid-template-columns: 1fr;
  }
}

.mood-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.mood-info h3 {
  margin-bottom: 0.75rem;
}

.mood-info p {
  color: var(--ink-body);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Broadsheet Hairline Table & Section S3 */
.broadsheet-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.broadsheet-table th, .broadsheet-table td {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.broadsheet-table th {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
}

.broadsheet-table tr:hover td {
  background-color: var(--ground-surface);
}

/* Room Tiers & Cards */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card-room {
  background-color: var(--ground-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card-room:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(184, 107, 58, 0.08);
}

.card-room-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.card-room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-room:hover .card-room-img {
  transform: scale(1.05);
}

.card-room-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-room-title {
  margin-bottom: 0.5rem;
}

.card-room-price {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-room-amenities {
  list-style: none;
  margin: 1.25rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-body);
}

.card-room-amenities li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-room-amenities svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Experiences & Features */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.exp-card {
  background: var(--ground-card);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.exp-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.exp-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.exp-title {
  margin-bottom: 0.75rem;
}

/* Gallery Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  height: 320px;
}

.gallery-item-col-6 {
  grid-column: span 6;
}

.gallery-item-col-4 {
  grid-column: span 4;
}

.gallery-item-col-8 {
  grid-column: span 8;
}

@media (max-width: 850px) {
  .gallery-item-col-6, .gallery-item-col-4, .gallery-item-col-8 {
    grid-column: span 12;
    height: 280px;
  }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(28, 24, 21, 0.88), transparent);
  color: var(--ground);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Form Styles */
.booking-form-card {
  background-color: var(--ground-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .booking-form-card {
    padding: 1.75rem;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-weight: 600;
}

.form-control {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #FFFFFF;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Honeypot anti-spam field */
.hp-field {
  display: none !important;
  visibility: hidden !important;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  background: var(--ground-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2.5rem 1.5rem;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--line);
}

.team-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Testimonial Cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--ground-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* Dark Theme Footer */
.site-footer {
  background-color: var(--ground-dark);
  color: var(--ink-light);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

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

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

.footer-brand h3 {
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--ink-light-faint);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  text-decoration: none;
  color: var(--ink-light-faint);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-light-faint);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Scroll Reveals (Floor Item 1) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal.from-left {
  transform: translateX(-36px);
}

.reveal.from-right {
  transform: translateX(36px);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .komorebi-ambient, .hero-img {
    animation: none !important;
  }
}
