/* Base layout */
* { box-sizing: border-box; }
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0e0f10;
  background: linear-gradient(135deg, #c8b6ff 0%, #b8d8ba 100%); /* lilac → sage */
}

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 4vmin;
}

.words {
  display: flex;
  gap: clamp(4rem, 6vmin, 6rem);
  justify-content: center;
}

.word {
  position: relative;
  display: inline-grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

/* Background X (two crossing bars) */
/* (removed background X) */

.word .front, .word .back {
  position: absolute;
  inset: auto;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(72px, 24vw, 380px);
  line-height: 1;
  transition: opacity 320ms ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #0e0f10;
}

.word .front {
  opacity: 1;
}

.word .back {
  color: #0e0f10;
  opacity: 0;
}

/* Hover anywhere toggles both words to Japanese */
.words:has(.word:hover) .front,
.words:focus-within .front {
  opacity: 0;
}
.words:has(.word:hover) .back,
.words:focus-within .back {
  opacity: 1;
}

/* Accessibility: visible focus */
.word:focus-visible {
  outline: 3px solid rgba(14, 15, 16, 0.6);
  outline-offset: 6px;
}

/* Scrolling marquee at bottom */
.marquee {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-right-to-left 25s linear infinite;
  font-family: "Playwrite DE Grund Guides", cursive;
  font-size: 12px;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.8);
  letter-spacing: 0.02em;
}

@keyframes scroll-right-to-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-33.33%);
  }
}

/* Hidden menu in upper left */
.menu-toggle {
  position: fixed;
  top: 30px;
  left: 30px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-line {
  width: 24px;
  height: 2px;
  background: rgba(14, 15, 16, 0.7);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(200, 182, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu[aria-hidden="false"] {
  transform: translateX(0);
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.menu-link {
  font-family: 'Lexend', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(14, 15, 16, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.menu-link:hover {
  color: rgba(14, 15, 16, 1);
  transform: translateX(10px);
}

.language-selector {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  justify-content: center;
}

.language-btn {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.6);
  background: transparent;
  border: 1px solid rgba(14, 15, 16, 0.3);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.language-btn:hover {
  color: rgba(14, 15, 16, 0.8);
  border-color: rgba(14, 15, 16, 0.5);
  transform: translateY(-1px);
}

.language-btn.active {
  color: rgba(14, 15, 16, 1);
  background: rgba(14, 15, 16, 0.1);
  border-color: rgba(14, 15, 16, 0.6);
}

/* About page styles */
.about-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6rem 4rem 4rem 4rem;
}

/* Override background for About page only */
body.about-page-body {
  background: #b8d8ba; /* sage only for About page */
}

/* Override background for Atelier page only */
body.atelier-page-body {
  background: #b8d8ba; /* sage only for Atelier page */
}

.about-content {
  max-width: 600px;
  width: 100%;
}

.about-title {
  font-family: "Playwrite DE Grund Guides", cursive;
  font-size: 3rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.9);
  text-align: left;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.about-text {
  background: transparent;
  padding: 0;
}

.intro-text {
  font-family: 'Lexend', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.8);
  line-height: 1.6;
  margin-bottom: 3rem;
  text-align: left;
  letter-spacing: 0.01em;
}

.bio-name {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.8);
  margin: 3rem 0 0.5rem 0;
  letter-spacing: 0.01em;
}

.bio-location {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.6);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.bio-text {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.8);
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}

.why-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(14, 15, 16, 0.1);
}

.why-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(14, 15, 16, 0.9);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.why-text p {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.8);
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin: 0;
}

/* Atelier page styles */
.atelier-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6rem 4rem 4rem 4rem;
}

.atelier-content {
  max-width: 800px;
  width: 100%;
}

.atelier-title {
  font-family: "Playwrite DE Grund Guides", cursive;
  font-size: 3rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.9);
  text-align: left;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  border: none;
  overflow: visible;
  transition: all 0.3s ease;
}

.project-item:hover {
  border: none;
}

.project-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 1rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
  text-align: left;
  transition: all 0.3s ease;
  gap: 1rem;
}

.project-toggle:hover {
  background: transparent;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(14, 15, 16, 0.9);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.project-plus {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(14, 15, 16, 0.7);
  transition: all 0.3s ease;
  min-width: 24px;
  text-align: center;
}

.project-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: transparent;
}

.project-description {
  padding: 0 0 1.5rem 0;
  margin-left: 2rem;
}

.project-description p {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.8);
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin: 0;
}

/* Contact page styles */
.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.contact-content {
  max-width: 600px;
  width: 100%;
}

.contact-title {
  font-family: "Playwrite DE Grund Guides", cursive;
  font-size: 3rem;
  font-weight: 400;
  color: rgba(14, 15, 16, 0.9);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(14, 15, 16, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(14, 15, 16, 0.8);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(14, 15, 16, 0.2);
  border-radius: 12px;
  background: rgba(173, 216, 230, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(14, 15, 16, 0.9);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(14, 15, 16, 0.4);
  background: rgba(173, 216, 230, 0.5);
  transform: translateY(-1px);
}

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

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: rgba(14, 15, 16, 0.9);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.submit-btn:hover {
  background: rgba(14, 15, 16, 1);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Small screens: stack words */
@media (max-width: 640px) {
  .words { 
    flex-direction: row;
    justify-content: center;
    gap: clamp(2rem, 4vmin, 4rem);
  }
  .marquee {
    height: 50px;
  }
  .marquee-content {
    font-size: 10px;
  }
  .menu-toggle {
    top: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
  }
  .menu-line {
    width: 20px;
  }
  .menu-link {
    font-size: 2rem;
  }
  .contact-page {
    padding: 2rem 1rem;
  }
  .contact-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  .contact-form {
    padding: 2rem;
  }
  .about-page {
    padding: 4rem 2rem 2rem 2rem;
  }
  .about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  .intro-text {
    font-size: 1.1rem;
  }
  .bio-name {
    font-size: 1rem;
    margin: 2rem 0 0.5rem 0;
  }
  .atelier-page {
    padding: 4rem 2rem 2rem 2rem;
  }
  .atelier-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  .project-toggle {
    padding: 1.2rem 1.5rem;
  }
  .project-title {
    font-size: 1.1rem;
  }
  .project-description {
    padding: 0 0 1.2rem 0;
    margin-left: 1.5rem;
  }
}


