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

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

/* Tokens */
:root {
  --washi:       #F4EFE6;
  --washi-deep:  #EDE5D8;
  --ink:         #1A1714;
  --stone:       #5C4F3F;
  --gold:        #B8935A;
  --mist:        #B0A496;
  --pale:        #F9F6F1;

  --serif-en: 'Cormorant Garamond', Georgia, serif;
  --serif-jp: 'Noto Serif JP', serif;
  --sans-jp:  'Noto Sans JP', sans-serif;

  --nav-h: 72px;
}

/* Washi Paper Background */
body {
  background-color: var(--washi);
  color: var(--ink);
  font-family: var(--serif-en);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.02 0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23f)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 400px 400px, 200px 200px;
  mix-blend-mode: multiply;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65 0.15' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.48 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* All content above texture */
nav, main, footer, .page-wrapper { position: relative; z-index: 1; }

/* Navigation */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(244,239,230,0.97) 0%, rgba(244,239,230,0) 100%);
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo span.en {
  font-family: var(--serif-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
}

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

.nav-links a {
  font-family: var(--serif-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-links a.active {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--mist);
  margin-left: 16px;
}

.lang-switch a {
  font-family: var(--sans-jp);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--mist);
  text-decoration: none;
  padding: 5px 10px;
  transition: background 0.2s, color 0.2s;
  text-transform: none;
  border: none;
}

.lang-switch a.active {
  background: var(--ink);
  color: var(--washi);
  border: none;
  padding-bottom: 5px;
}

.lang-switch a:hover:not(.active) {
  color: var(--stone);
  background: var(--washi-deep);
}

/* Page Wrapper */
.page-wrapper {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* Vertical Japanese Rail */
.jp-rail {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--serif-jp);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--mist);
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  line-height: 1.8;
}

/* Section Base */
section {
  padding: 96px 56px;
  max-width: 1100px;
  margin: 0 auto;
}

section + section {
  padding-top: 0;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 80px 56px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--sans-jp);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}

.hero-title {
  font-family: var(--serif-en);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-title em {
  font-style: italic;
  color: var(--stone);
}

.hero-title-jp {
  font-family: var(--serif-jp);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.15em;
  margin-bottom: 40px;
  display: block;
}

.hero-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--stone);
  max-width: 440px;
  margin-bottom: 48px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-kanji-block {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--serif-jp);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--mist);
  letter-spacing: 0.1em;
  line-height: 1;
  user-select: none;
}

/* Divider */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 56px 64px;
}

.divider.center { margin: 0 auto 64px; }

/* Section Labels */
.section-label {
  font-family: var(--sans-jp);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.section-label-jp {
  font-family: var(--serif-jp);
  font-size: 12px;
  font-weight: 400;
  color: var(--mist);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  display: block;
}

/* Headings */
h1 { font-weight: 400; }
h2 { font-weight: 400; }
h3 { font-weight: 500; }

h2 {
  font-family: var(--serif-en);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}

h2 em { font-style: italic; color: var(--stone); }

h3 {
  font-family: var(--serif-en);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Body Text */
p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--stone);
  font-weight: 400;
}

p + p { margin-top: 20px; }

/* Japanese body text */
.jp-page p {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.05em;
}

.jp-page h2 {
  font-family: var(--serif-jp);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.jp-page h3 {
  font-family: var(--serif-jp);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Gold CTA Button */
.btn {
  display: inline-block;
  font-family: var(--serif-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--washi);
  background: var(--ink);
  padding: 14px 36px;
  border: 1px solid var(--ink);
  transition: background 0.3s, color 0.3s;
}

.jp-page .btn {
  font-family: var(--serif-jp);
  letter-spacing: 0.2em;
  text-transform: none;
  font-size: 12px;
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--washi);
}

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

.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--washi);
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Three Column Grid */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

/* Card */
.card {
  padding: 40px 32px;
  border: 1px solid var(--washi-deep);
  background: rgba(249,246,241,0.6);
}

.card-num {
  font-family: var(--serif-en);
  font-size: 32px;
  font-weight: 400;
  color: var(--mist);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-style: italic;
}

.card-jp {
  font-family: var(--serif-jp);
  font-size: 12px;
  font-weight: 400;
  color: var(--mist);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: block;
}

/* Pull Quote */
.pull-quote {
  border-left: 1px solid var(--gold);
  padding: 8px 0 8px 32px;
  margin: 48px 0;
}

.pull-quote p {
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
}

.jp-page .pull-quote p {
  font-style: normal;
  font-size: 18px;
  letter-spacing: 0.06em;
  line-height: 2;
}

.pull-quote .jp {
  font-family: var(--serif-jp);
  font-size: 13px;
  font-weight: 400;
  color: var(--stone);
  margin-top: 12px;
  display: block;
  font-style: normal;
  letter-spacing: 0.15em;
}

/* Form */
.form-group { margin-bottom: 28px; }

label {
  display: block;
  font-family: var(--sans-jp);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
  font-weight: 400;
}

.jp-page label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: none;
}

input, textarea, select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mist);
  padding: 10px 0;
  font-family: var(--serif-en);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-bottom-color: var(--ink);
}

textarea { resize: vertical; min-height: 100px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6B5A' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

input::placeholder, textarea::placeholder { color: var(--mist); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Footer */
footer {
  border-top: 1px solid var(--washi-deep);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 64px;
}

.footer-logo {
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.15em;
}

.footer-nav {
  display: flex;
  gap: 36px;
  list-style: none;
}

.footer-nav a {
  font-family: var(--serif-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.3s;
}

.jp-page .footer-nav a {
  font-family: var(--serif-jp);
  letter-spacing: 0.15em;
  text-transform: none;
  font-size: 11px;
}

.footer-nav a:hover { color: var(--stone); }

.footer-copy {
  font-family: var(--serif-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--mist);
}

/* Fade In */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Philosophy principles (shared) */
.philosophy-principles { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 56px; max-width: 760px; }
.principle { padding: 48px 0; border-bottom: 1px solid var(--washi-deep); display: grid; grid-template-columns: 80px 1fr; gap: 48px; align-items: start; }
.principle:first-child { border-top: 1px solid var(--washi-deep); }
.principle-num { font-family: var(--serif-jp); font-size: 28px; font-weight: 400; color: var(--mist); writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.1em; }
.principle-title { font-family: var(--serif-en); font-size: 22px; font-weight: 400; font-style: italic; color: var(--ink); margin-bottom: 8px; }
.jp-page .principle-title { font-family: var(--serif-jp); font-style: normal; font-weight: 500; font-size: 18px; letter-spacing: 0.08em; }
.principle-jp { font-family: var(--serif-jp); font-size: 11px; color: var(--gold); letter-spacing: 0.25em; margin-bottom: 20px; display: block; }

/* What We Bring shared */
.offering-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--washi-deep); border: 1px solid var(--washi-deep); margin-top: 56px; }
.offering-cell { background: var(--pale); padding: 48px 40px; }
.offering-cell:hover { background: var(--washi); }
.offering-icon { font-family: var(--serif-jp); font-size: 32px; color: var(--mist); margin-bottom: 20px; display: block; }
.offering-title-en { font-family: var(--serif-en); font-size: 20px; font-weight: 400; font-style: italic; color: var(--ink); margin-bottom: 6px; }
.jp-page .offering-title-en { font-family: var(--serif-jp); font-style: normal; font-weight: 500; font-size: 18px; letter-spacing: 0.08em; }
.offering-title-jp { font-family: var(--serif-jp); font-size: 11px; color: var(--gold); letter-spacing: 0.25em; margin-bottom: 20px; display: block; }

/* Phase list */
.phase-list { margin-top: 64px; }
.phase { display: grid; grid-template-columns: 160px 1fr; gap: 64px; padding: 56px 0; border-bottom: 1px solid var(--washi-deep); align-items: start; }
.phase:first-child { border-top: 1px solid var(--washi-deep); }
.phase-label { text-align: right; }
.phase-num { font-family: var(--serif-en); font-size: 48px; font-weight: 400; font-style: italic; color: var(--mist); line-height: 1; display: block; margin-bottom: 8px; }
.phase-name { font-family: var(--sans-jp); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone); font-weight: 400; }
.jp-page .phase-name { text-transform: none; letter-spacing: 0.15em; font-size: 11px; }
.phase-jp { font-family: var(--serif-jp); font-size: 11px; color: var(--mist); letter-spacing: 0.2em; margin-top: 4px; display: block; }

/* Criteria */
.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.criteria-item { display: flex; gap: 20px; align-items: flex-start; }
.criteria-jp-char { font-family: var(--serif-jp); font-size: 20px; font-weight: 400; color: var(--mist); flex-shrink: 0; margin-top: 2px; }

/* Form section title */
.form-section-title { font-family: var(--sans-jp); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 48px 0 32px; padding-top: 48px; border-top: 1px solid var(--washi-deep); font-weight: 400; }
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.jp-page .form-section-title { font-size: 11px; letter-spacing: 0.2em; text-transform: none; }

.submit-row { margin-top: 48px; display: flex; align-items: center; gap: 32px; }
.form-note { font-size: 12px; color: var(--stone); font-style: italic; line-height: 1.7; font-weight: 400; }

/* Mobile menu - hidden on desktop */
.mobile-menu { display: none; }

/* Tablet */
@media (max-width: 960px) {
  nav { padding: 0 28px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.12em; }
  .lang-switch a { padding: 4px 8px; }
  section { padding: 72px 36px; }
  .hero { padding: 64px 36px; gap: 48px; }
  .three-col { grid-template-columns: 1fr 1fr; gap: 28px; }
  .jp-rail { display: none; }
  footer { padding: 40px 36px; }
  .divider { margin: 0 36px 56px; }
}

/* Mobile */
@media (max-width: 680px) {
  :root { --nav-h: 60px; }

  nav {
    padding: 0 20px;
    height: var(--nav-h);
    background: #F4EFE6;
    position: fixed;
    z-index: 100;
  }

  .nav-logo { font-size: 13px; }

  /* Hide desktop links on mobile */
  .nav-links-desktop { display: none; }

  /* Show mobile menu toggle */
  .mobile-menu { display: block; }

  /* Remove default <details> marker */
  .mobile-menu-toggle { list-style: none; }
  .mobile-menu-toggle::-webkit-details-marker { display: none; }

  /* Hamburger icon */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
  }

  .burger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
  }

  /* Full screen overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #F4EFE6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
    padding: 40px 24px;
  }

  .mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
  }

  .mobile-menu-logo {
    font-family: var(--serif-jp);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--ink);
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu-logo .en {
    font-family: var(--serif-en);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--stone);
  }

  .mobile-menu-links a {
    font-family: var(--serif-en);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
  }

  .mobile-menu-links a.active {
    color: var(--ink);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
  }

  .mobile-menu-links a:hover { color: var(--ink); }

  /* Language switcher inside mobile menu - separate from nav version */
  .mobile-lang-switch {
    display: flex;
    align-items: center;
    border: 1px solid var(--mist);
    margin-top: 8px;
  }

  .mobile-lang-switch a {
    font-family: var(--sans-jp);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--stone);
    text-decoration: none;
    padding: 6px 16px;
    text-transform: none;
    border: none;
    letter-spacing: 0.1em;
  }

  .mobile-lang-switch a.active {
    background: var(--ink);
    color: var(--washi);
    border: none;
    padding-bottom: 6px;
  }

  .mobile-lang-switch a:hover:not(.active) {
    color: var(--ink);
    background: var(--washi-deep);
    border: none;
    padding-bottom: 6px;
  }

  /* Layout */
  section { padding: 52px 20px; }
  section + section { padding-top: 0; }
  .page-wrapper { padding-top: var(--nav-h); }

  .hero {
    grid-template-columns: 1fr;
    padding: 44px 20px 52px;
    gap: 36px;
    min-height: auto;
  }

  .hero-visual { display: none; }
  .hero-title { font-size: clamp(30px, 8vw, 42px); }
  .hero-body { font-size: 15px; max-width: 100%; }

  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .three-col { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 28px 20px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-container { max-width: 100%; }

  .jp-rail { display: none; }

  .divider { margin: 0 20px 44px; }

  .pull-quote { padding: 8px 0 8px 20px; margin: 28px 0; }
  .pull-quote p { font-size: 17px; }

  .philosophy-principles { max-width: 100%; }
  .principle { grid-template-columns: 36px 1fr; gap: 16px; padding: 28px 0; }
  .principle-num { font-size: 20px; }
  .principle-title { font-size: 18px; }

  .offering-grid { grid-template-columns: 1fr; gap: 1px; }
  .offering-cell { padding: 28px 20px; }

  .phase { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .phase-label { text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .phase-num { font-size: 32px; display: inline; margin-bottom: 0; }
  .phase-name { display: inline; }
  .phase-jp { display: none; }

  .criteria-grid { grid-template-columns: 1fr; gap: 24px; }

  .submit-row { flex-direction: column; align-items: flex-start; gap: 20px; }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 32px 20px;
    margin-top: 40px;
  }

  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
  .footer-copy { font-size: 9px; }

  .btn { padding: 13px 28px; font-size: 10px; }
}

/* Very small screens */
@media (max-width: 380px) {
  section { padding: 44px 16px; }
  .hero { padding: 36px 16px 44px; }
  .divider { margin: 0 16px 36px; }
  nav { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
