
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 2em;
  display: flex;
  gap: 4em;
  z-index: 2;
}

.logo {
  flex: 3;
}

.logo-mark {
  display: inline-block;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
}

.tagline,
.about {
  flex: 1;
}

nav p {
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

nav p span {
  color: gray;
}

section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

h1 {
  text-transform: uppercase;
  font-size: 4vw;
  font-weight: 500;
  color: #1f1f1f;
}

.hero,
.outro {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #edebde;
}

.sticky {
  background-color: #fffef8;
}

.titles {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 400vw;
  height: 100vh;
  display: flex;
  will-change: transform;
}

.title {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9vw;
  font-style: italic;
  will-change: transform;
}

h1.title-1 {
  color: #dafa6c;
}

h1.title-2 {
  color: #10d0f4;
}

h1.title-3 {
  color: #1f1f1f;
}

.images {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200vw;
  height: 200vh;
  transform-style: preserve-3d;
  perspective: 2000px;
  z-index: -1;
}

.card {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 2em;
  background: #c0c0c0;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

@media (max-width: 700px) {
  nav {
    width: 100%;
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(92px, 0.55fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .logo,
  .tagline,
  .about {
    min-width: 0;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .tagline {
    grid-column: 2;
    grid-row: 1;
  }

  .about {
    grid-column: 2;
    grid-row: 2;
  }

  nav p {
    overflow-wrap: anywhere;
  }
}

/* i18n: fixed language switcher */
.lang-switch { position: fixed; top: 16px; right: 16px; z-index: 1000; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  padding: 8px 30px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff; font-family: inherit; font-size: 14px; line-height: 1; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; backdrop-filter: blur(4px);
}
.lang-select option { color: #111; background-color: #fff; }

/* i18n line-break: JP body natural (kinsoku); titles stay on one line */
html[lang="ja"] { line-break: strict; }
html[lang="ja"] p { word-break: normal; overflow-wrap: anywhere; text-wrap: pretty; }
html[lang="ja"] h1 { word-break: keep-all; }
html[lang="ja"] .title h1 { font-size: 7vw; }
