*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #FAF6F1;
  --warm-white: #FFFFFF;
  --warm-beige: #F5EFE7;
  --dark-green: #2D4A3E;
  --dark-green-hover: #1E3A2E;
  --gold: #C4956A;
  --gold-light: #D4A97A;
  --dark-text: #2C2C2C;
  --body-text: #6B6B6B;
  --light-border: #E8E0D5;
  --font-serif-en: 'Cormorant Garamond', serif;
  --font-serif-jp: 'Noto Serif JP', serif;
  --font-sans-jp: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans-jp);
  color: var(--dark-text);
  background: var(--warm-white);
  font-weight: 400;
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,224,213,0.5);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark-green);
}
.nav-logo-icon {
  width: 28px;
  height: 28px;
}
.nav-logo-text {
  font-family: var(--font-serif-en);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--dark-green);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  text-decoration: none;
  color: var(--dark-text);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--dark-green); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  text-decoration: none;
  background: var(--dark-green);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover {
  background: var(--dark-green-hover);
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--dark-text);
  transition: all 0.3s ease;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 40px;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  text-decoration: none;
  color: var(--dark-text);
  font-size: 18px;
  font-weight: 400;
}

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 24px; }
}

/* ========== HERO ========== */
.hero {
  background: var(--cream);
  padding: 160px 0 120px;
  overflow: hidden; /* Keeps the edges neat */
}
.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 50px; /* The invisible wall that prevents overlap */
}
.hero-text-content {
  flex: 0 1 45%; /* Takes up 45% of the space and shrinks if needed */
  max-width: 510px;
  z-index: 2;
}
.hero-carousel-wrapper {
  flex: 0 1 55%; /* Takes up 55% of the space and shrinks if needed */
  min-width: 0; /* Crucial: allows the carousel to shrink smaller than the images inside it */
  position: relative;
  z-index: 1;
}

/* Bulletproof Mobile Override */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }
  .hero-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 50px; /* Space between the button and the images */
  }
  .hero-text-content {
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
  }
  .hero-carousel-wrapper {
    width: 100vw; /* Expands carousel edge-to-edge on phones */
  }
}
.hero-eyebrow {
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 32px;
}
.hero-title {
  font-family: var(--font-serif-jp);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dark-text);
  margin-top: 0;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  word-break: keep-all;
}
.hero-title-en {
  font-family: var(--font-serif-en);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark-text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 15.5px;
  line-height: 2;
  color: var(--body-text);
  margin-bottom: 44px;
  max-width: 560px;
  font-weight: 300;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-green);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: var(--dark-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45,74,62,0.2);
}
.btn-arrow {
  transition: transform 0.2s ease;
}
.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

/* ========== SECTIONS COMMON ========== */
.section {
  padding: 100px 40px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
}
.section-heading {
  font-family: var(--font-serif-jp);
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  color: var(--dark-text);
  margin-bottom: 20px;
  letter-spacing: 1px;
  line-height: 1.5;
}
.section-heading-en {
  font-family: var(--font-serif-en);
  font-size: 36px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.section-subtext {
  text-align: center;
  color: var(--body-text);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
}

@media (max-width: 768px) {
  .section { padding: 72px 24px; }
  .hero { padding: 120px 24px 80px; min-height: auto; }
  .hero-title-en { font-size: 32px; }
  .hero-title { font-size: 28px; }
  .section-heading-en { font-size: 28px; }
  .section-heading { font-size: 24px; }
}

/* ========== WHAT WE DO ========== */
.what-we-do {
  background: var(--cream);
}
.pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}
.pillar-card {
  background: var(--warm-white);
  border: 1px solid var(--light-border);
  border-radius: 12px;
  padding: 32px 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.pillar-number {
  font-family: var(--font-serif-en);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 400;
}
.pillar-title {
  font-family: var(--font-serif-jp);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--dark-text);
}
.pillar-text {
  color: var(--body-text);
  font-size: 14.5px;
  line-height: 2;
  font-weight: 300;
  max-width: 100%;
}

@media (max-width: 768px) {
  .pillar-card { padding: 32px 28px; }
}

/* ========== THE HINOKI WAY ========== */
.hinoki-way {
  background: var(--warm-beige);
}
.hinoki-way-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch; 
  gap: 60px;
}
.hinoki-way-image {
  flex-shrink: 0;
  width: 440px; /* Made slightly wider to balance the new height */
}
.hinoki-way-image img {
  width: 100%;
  height: 100%; /* Forces image to stretch to the text's height */
  object-fit: cover; /* Prevents the image from looking squished */
  border-radius: 8px;
}
.hinoki-way-body {
  color: var(--body-text);
  font-size: 15px;
  line-height: 2.1;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Keeps text centered if image gets too tall */
}
.hinoki-way-body p {
  margin-bottom: 24px;
}
/* Removes the invisible extra space below the final paragraph so the image doesn't over-stretch */
.hinoki-way-body p:last-child {
  margin-bottom: 0;
}
/* Forces vertical stacking and fluid width on mobile screens */
@media (max-width: 768px) {
  .hinoki-way-content {
    flex-direction: column;
    gap: 32px;
  }
  .hinoki-way-image {
    width: 100%;
    max-width: 100%;
  }
  .hinoki-way-image img {
    height: auto; /* Resets height on mobile so it doesn't break */
    aspect-ratio: 4/3; /* Keeps a nice shape on phones */
  }
  .desktop-only-spacer {
    display: none; /* Hides the empty space on mobile */
  }
}
/* ========== PROCESS ========== */
.process {
  background: var(--warm-beige);
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 80px;
  margin-top: 48px;
}

.process-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}
.process-step-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 500;
}
.process-step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark-text);
}
.process-step-text {
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.9;
  font-weight: 300;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========== ABOUT / FOUNDER ========== */
.founder {
  background: var(--cream);
  padding-bottom: 100px;
}
.founder-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-photo-placeholder {
  color: var(--body-text);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.founder-name {
  font-family: var(--font-serif-jp);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}
.founder-name-reading {
  font-size: 14px;
  color: var(--body-text);
  margin-bottom: 6px;
}
.founder-role {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  font-weight: 500;
}
.founder-bio {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--body-text);
  font-weight: 300;
}

@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .founder-photo {
    max-width: 240px;
  }
}

/* ========== ADVISORY BOARD ========== */
.advisory {
  background: var(--warm-beige);
}
.advisory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.advisor-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.advisor-card:hover {
  transform: translateY(-4px);
}
.advisor-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--warm-beige);
  border: 2px solid var(--light-border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.advisor-card:hover .advisor-photo {
  border-color: var(--gold);
}
.advisor-photo-placeholder {
  color: var(--body-text);
  font-size: 11px;
}
.advisor-name {
  font-family: var(--font-serif-jp);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}
.advisor-title {
  font-size: 12.5px;
  color: var(--body-text);
  font-weight: 300;
}

@media (max-width: 768px) {
  .advisory-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .advisory-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .advisor-photo { width: 100px; height: 100px; }
}

/* ========== MODAL ========== */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-backdrop.active {
  display: flex;
  opacity: 1;
}
.modal-content {
  background: var(--warm-white);
  border-radius: 16px;
  padding: 56px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-backdrop.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--body-text);
  padding: 8px;
  line-height: 1;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--dark-text); }
.modal-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--warm-beige);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-name {
  font-family: var(--font-serif-jp);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 4px;
}
.modal-role {
  font-size: 13px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 28px;
  font-weight: 500;
}
.modal-bio {
  font-size: 14px;
  line-height: 2;
  color: var(--body-text);
  font-weight: 300;
}

@media (max-width: 768px) {
  .modal-content { padding: 36px 28px; margin: 20px; }
  .modal-backdrop { padding: 20px; }
}

/* ========== COMPANY INFO ========== */
.company-info {
  background: var(--cream);
}
.info-table {
  margin-top: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--light-border);
}
.info-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark-text);
}
.info-value {
  font-size: 14px;
  color: var(--body-text);
  font-weight: 300;
  line-height: 1.8;
}

/* ========== CONTACT ========== */
.contact {
  background: var(--warm-beige);
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}
.contact-intro {
  text-align: center;
  color: var(--body-text);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 48px;
  font-weight: 300;
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-label .optional {
  font-weight: 300;
  color: var(--body-text);
  font-size: 12px;
  margin-left: 6px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-border);
  border-radius: 8px;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  background: var(--warm-white);
  color: var(--dark-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,149,106,0.1);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.8;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-green);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 6px;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--dark-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45,74,62,0.2);
}
.contact-footer-info {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--light-border);
  text-align: center;
}
.contact-email {
  font-size: 15px;
  color: var(--dark-text);
  margin-bottom: 8px;
}
.contact-email a {
  color: var(--dark-green);
  text-decoration: none;
  border-bottom: 1px solid var(--light-border);
  transition: border-color 0.2s ease;
}
.contact-email a:hover { border-color: var(--dark-green); }
.contact-address {
  font-size: 13.5px;
  color: var(--body-text);
  font-weight: 300;
  line-height: 1.8;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--warm-white);
  padding: 48px 40px;
  text-align: center;
  border-top: 1px solid var(--light-border);
}
.footer-text {
  font-size: 12.5px;
  color: var(--body-text);
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* ========== IMAGE CAROUSEL ========== */
.carousel-section {
  background: var(--cream);
  padding: 60px 0;
  overflow: hidden;
  width: 100%;
}

.marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  
  animation: scrollMarquee 90s linear infinite; 
}

/* Pause the animation when a user hovers */
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  gap: 0; 
  padding-right: 0; 
}

/* Individual images rather than clusters */
.carousel-img {
  position: relative;
  width: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0.85;
  filter: grayscale(15%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
  
  /* This exact negative margin controls the "barely overlapping" effect */
  margin-right: -20px; 
}

.pos-low {
  height: 240px;
  transform: translateY(30px);
  z-index: 1;
}

.pos-high {
  height: 320px;
  transform: translateY(-20px);
  /* The High images naturally sit on top of the Low images */
  z-index: 2; 
}

.carousel-img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(0) scale(1.03) !important;
  z-index: 10 !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* ========== DIVIDER ========== */
.section-divider {
  width: 60px;
  height: 1px;
  background: var(--light-border);
  margin: 0 auto 20px;
}

/* ========== PAGE SECTIONS (single-page anchor navigation) ========== */
.page-section {
  scroll-margin-top: 72px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee mask */
.marquee-container {
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
  mask-image: linear-gradient(to right, transparent, black 15%);
}

.section-heading--spaced {
  margin-bottom: 48px;
}

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

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

.info-row:last-child {
  border-bottom: none;
}

.modal-placeholder-text {
  font-size: 13px;
}
