/* ==========================================================================
   NIMBA PAINTING — REFERENCE-ACCURATE DESIGN SYSTEM
   Recreated from SAISEI Reference Video System
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --bg-dark: #121110;
  --bg-dark-alt: #181614;
  --bg-light: #F4EEE8;
  --bg-light-alt: #EFE9DF;
  
  --text-dark: #1C1A17;
  --text-light: #F0EDE6;
  --text-muted-dark: #8A857D;
  --text-muted-light: #7A766F;
  
  --accent-tan: #C2A482;
  --accent-tan-hover: #A68A6B;
  --accent-pill-bg: rgba(194, 164, 130, 0.15);
  
  --border-dark: rgba(240, 237, 230, 0.15);
  --border-light: rgba(28, 26, 23, 0.12);
  
  --font-serif: 'Cormorant Garamond', 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  --max-width: 1440px;
  --container-padding: clamp(1.5rem, 4vw, 4rem);
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section Contrast Variants */
.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Typography System */
.display-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.headline-xl {
  font-size: clamp(2.2rem, 6.5vw, 7rem);
}

.headline-lg {
  font-size: clamp(1.8rem, 5vw, 5rem);
}

.headline-md {
  font-size: clamp(1.5rem, 3.8vw, 3.5rem);
}

.body-text {
  font-size: clamp(0.9rem, 1.1vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-muted-light);
  max-width: 34rem;
}

.dark-section .body-text {
  color: var(--text-muted-dark);
}

/* Sub-Label Header System */
.sub-label-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.romaji-accent {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--accent-tan);
}

.section-label {
  opacity: 0.85;
}

/* Pill Button Component */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: 1px solid var(--accent-tan);
  color: var(--text-dark);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.35s var(--transition-smooth);
  background: transparent;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.dark-section .pill-btn {
  color: var(--text-light);
  border-color: var(--accent-tan);
}

.pill-btn:hover {
  background-color: var(--accent-tan);
  color: #121110 !important;
  transform: translateY(-2px);
}

/* Grids */
.grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

/* ==========================================================================
   Preloader Sequence
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  animation: preloaderFailsafe 2.5s forwards ease-in-out;
}

@keyframes preloaderFailsafe {
  0%, 80% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.preloader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.preloader-symbol {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.preloader-line {
  position: absolute;
  top: 50%;
  height: 1px;
  background-color: var(--text-dark);
  width: 50vw;
  transition: transform 1s var(--transition-smooth);
}

.preloader-line-left {
  right: 50%;
  transform-origin: right center;
}

.preloader-line-right {
  left: 50%;
  transform-origin: left center;
}

/* ==========================================================================
   Site Header & Menu Overlay
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}

.site-header.scrolled {
  padding: 1rem 0;
  background-color: rgba(18, 17, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.site-header.light-theme {
  color: var(--text-dark);
}

.site-header.light-theme.scrolled {
  background-color: rgba(244, 238, 232, 0.9);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.header-center {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  opacity: 0.8;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

/* Full-Screen Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--transition-smooth), visibility 0.5s var(--transition-smooth);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-watermark-kanji {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(12rem, 30vw, 30rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  opacity: 0.03;
  user-select: none;
  pointer-events: none;
}

.menu-overlay-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}

.overlay-nav .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.nav-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
}

.nav-link .num {
  font-family: var(--font-sans);
  font-size: 1rem;
  opacity: 0.5;
}

.nav-link:hover {
  color: var(--accent-tan);
  transform: translateX(10px);
}

.overlay-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  border-left: 1px solid var(--border-dark);
  padding-left: 3rem;
}

.info-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted-dark);
  display: block;
  margin-bottom: 0.4rem;
}

.info-value {
  font-size: 1.1rem;
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.social-links a:hover {
  color: var(--accent-tan);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.4) contrast(1.1);
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

.hero-section:hover .hero-bg-img {
  transform: scale(1);
}

.hero-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18, 17, 16, 0.4) 0%, rgba(18, 17, 16, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-kanji-block {
  position: absolute;
  right: var(--container-padding);
  bottom: 12rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 22rem;
}

.kanji-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
}

.kanji-sub {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-tan);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.hero-title-block {
  margin-top: auto;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 18vw, 17rem);
  line-height: 0.85;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-left: -0.03em;
}

/* ==========================================================================
   Section 1: About / Tradition
   ========================================================================== */
.about-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.text-card-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.featured-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #e0d8ce;
}

.reveal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--transition-smooth);
}

.featured-image-wrap:hover .reveal-img {
  transform: scale(1.04);
}

/* ==========================================================================
   Section 2: Animated Split Text & Scatter
   ========================================================================== */
.scatter-section {
  padding: clamp(6rem, 12vw, 12rem) 0;
  overflow: hidden;
}

.scatter-content-wrap {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.scatter-heading {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8.5vw, 8.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.scatter-heading .word {
  display: inline-block;
  transition: transform 0.6s var(--transition-smooth);
}

.scatter-thumb {
  position: absolute;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.8s ease-out;
}

.scatter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-1 {
  width: 140px;
  height: 180px;
  top: -10%;
  left: 5%;
}

.thumb-2 {
  width: 160px;
  height: 200px;
  bottom: -5%;
  right: 8%;
}

.thumb-3 {
  width: 130px;
  height: 130px;
  top: 15%;
  right: 25%;
}

/* ==========================================================================
   Section 3: Selected Projects Showcase Slider
   ========================================================================== */
.projects-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
  position: relative;
}

.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.slide-counter {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-muted-dark);
}

.projects-slider-wrapper {
  position: relative;
}

.projects-slider {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-slide {
  position: absolute;
  width: 100%;
  max-width: 900px;
  height: 550px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth), visibility 0.8s ease;
}

.project-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slide-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 1.5s var(--transition-smooth);
}

.project-slide:hover .slide-image-container img {
  transform: scale(1.05);
}

.slide-info-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 3;
  box-sizing: border-box;
}

.project-slide-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-light);
  max-width: 25rem;
  overflow-wrap: break-word;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: -2rem;
  right: -2rem;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.nav-arrow {
  pointer-events: auto;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
  padding: 1rem 1.5rem;
  background: rgba(18, 17, 16, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-dark);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

/* ==========================================================================
   Section 4: Approach / Sustainability
   ========================================================================== */
.sustainability-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.split-reversed {
  align-items: center;
}

.image-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #e0d8ce;
}

.col-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

/* ==========================================================================
   Section 5: Service Breakdown
   ========================================================================== */
.services-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.services-giant-title {
  margin-bottom: 4rem;
}

.inline-cutout-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em;
}

.inline-img-badge {
  display: inline-block;
  width: 2.2em;
  height: 1.1em;
  border-radius: 9999px;
  overflow: hidden;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.inline-img-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-detail-row {
  border-top: 1px solid var(--border-light);
  padding-top: 3rem;
}

.services-desc {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.services-list-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.service-num {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-top: 0.2rem;
}

.service-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.service-text p {
  font-size: 0.95rem;
  color: var(--text-muted-light);
  line-height: 1.6;
}

/* ==========================================================================
   Section 6: Full-Width Philosophy Feature
   ========================================================================== */
.philosophy-section {
  position: relative;
  padding: clamp(6rem, 12vw, 12rem) 0;
  overflow: hidden;
}

.philosophy-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.philosophy-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) contrast(1.1);
}

.philosophy-overlay-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.7);
}

.philosophy-section .container {
  position: relative;
  z-index: 2;
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.35;
  color: var(--text-light);
  font-weight: 300;
}

/* ==========================================================================
   Section 7: Contact / Vision
   ========================================================================== */
.contact-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.contact-actions {
  margin: 1.5rem 0 3rem;
}

.contact-asymmetric-thumb {
  width: 60%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-top: 2rem;
}

.contact-main-image-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

/* ==========================================================================
   Section 8: Site Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(5rem, 8vw, 8rem) 0 2rem;
  border-top: 1px solid var(--border-dark);
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  right: 5%;
  bottom: 10%;
  font-family: var(--font-serif);
  font-size: clamp(12rem, 30vw, 30rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  opacity: 0.03;
  user-select: none;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
  position: relative;
  z-index: 2;
}

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

.footer-menu a {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--accent-tan);
}

.footer-info-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-content: start;
}

.footer-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.group-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted-dark);
}

.group-value {
  font-size: 1rem;
  color: var(--text-light);
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.social-list a:hover {
  color: var(--accent-tan);
}

.coordinates-group {
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  position: relative;
  z-index: 2;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted-dark);
}

/* Subtle Glassmorphism Developer Credit */
.developer-credit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(244, 238, 232, 0.08);
}

.developer-credit-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  background: rgba(244, 238, 232, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 238, 232, 0.09);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 238, 232, 0.65);
  transition: all 0.35s var(--transition-smooth);
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.developer-credit-glass:hover {
  background: rgba(244, 238, 232, 0.07);
  border-color: rgba(212, 163, 115, 0.35);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   Project Detail Modal / Drawer View
   ========================================================================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--transition-smooth), visibility 0.4s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(20px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1100px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark);
}

.modal-counter {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-muted-dark);
}

.close-btn {
  font-size: 1.5rem;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.close-btn:hover {
  opacity: 1;
  color: var(--accent-tan);
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  overflow: hidden;
}

.modal-image-wrapper {
  width: 100%;
  height: 70%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.modal-meta-bar {
  text-align: center;
}

.modal-project-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-transform: uppercase;
}

.modal-project-sub {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-tan);
}

.modal-footer-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-kanji-block {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .menu-overlay-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .overlay-info {
    border-left: none;
    border-top: 1px solid var(--border-dark);
    padding-left: 0;
    padding-top: 2rem;
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

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

  .projects-slider {
    min-height: 450px;
  }
  
  .project-slide {
    height: 410px;
    border-radius: 8px;
    overflow: hidden;
  }

  .slide-info-overlay {
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.85rem;
  }

  .project-slide-title {
    max-width: 100%;
    font-size: clamp(1.3rem, 4.5vw, 2.2rem);
  }

  .slide-info-overlay .pill-btn {
    padding: 0.55rem 1.4rem;
    font-size: 0.75rem;
    min-height: 40px;
    align-self: flex-start;
  }
  
  .slider-controls {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin-top: 2rem;
    justify-content: center;
    gap: 2rem;
  }
  
  .thumb-1, .thumb-2, .thumb-3 {
    display: none;
  }
  
  .header-center {
    display: none;
  }
}

/* ==========================================================================
   Breadcrumbs Navigation Component
   ========================================================================== */
.breadcrumbs-nav {
  padding: 2rem 0 0 0;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}

.dark-section .breadcrumbs-list {
  color: var(--text-muted-dark);
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  opacity: 0.6;
  color: var(--accent-tan);
}

.breadcrumbs-link {
  color: inherit;
  transition: color 0.3s ease;
}

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

.breadcrumbs-item[aria-current="page"] {
  color: var(--accent-tan);
  font-weight: 600;
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1.25rem;
  }

  .hero-section {
    min-height: 85vh;
  }

  .projects-slider {
    min-height: 390px;
  }

  .project-slide {
    height: 360px;
  }

  .slide-info-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    gap: 0.65rem;
  }

  .project-slide-title {
    font-size: clamp(1.15rem, 5vw, 1.6rem);
    line-height: 1.15;
  }

  .slide-info-overlay .pill-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    min-height: 38px;
  }

  .overlay-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .pill-btn {
    width: 100%;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: clamp(1.3rem, 5.5vw, 2.2rem);
  }

  .modal-content {
    padding: 1.5rem 1.25rem;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  [data-scroll-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}


