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

body {
  font-family: MiSans-Regular, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #faf7f5;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

.site-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  min-height: 100vh;
  background: #faf7f5;
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #000;
  height: 56px;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img { height: 28px; display: block; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .2s;
}
.nav-link:hover { opacity: .6; }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #000;
  padding: 8px 0;
}
.nav-dropdown-trigger svg { width: 14px; height: 14px; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #000;
  min-width: 120px;
  padding: 8px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background .2s;
}
.nav-dropdown-menu a:hover { background: #f1ece7; }

.nav-lang { position: relative; }
.nav-lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #000;
  padding: 8px 4px;
}
.nav-lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #000;
  min-width: 120px;
  padding: 8px;
  z-index: 200;
}
.nav-lang:hover .nav-lang-menu { display: block; }
.nav-lang-menu a,
.nav-lang-current {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  text-decoration: none;
  color: #000;
  border-radius: 8px;
}
.nav-lang-menu a:hover { background: #f1ece7; }
.nav-lang-current { color: #f97316; font-weight: 600; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  padding: 4px;
}

/* === Hero === */
.hero {
  max-width: 1440px;
  margin: 0 auto;
  transition: transform .3s ease-out;
  transform-origin: 50%;
}
.hero.perspective { transform: perspective(1200px) rotateX(-2.5deg); }

.flip-card {
  perspective: 1600px;
  width: 100%;
}
.flip-inner {
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.flip-inner.flipped { transform: rotateX(-180deg); }

.flip-front, .flip-back {
  backface-visibility: hidden;
  position: relative;
}
.flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: rotateX(180deg);
  background: #faf7f5;
}

.hero-title {
  background: #faf7f5;
  border: 1px solid #000;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: crosshair;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 45%, #faf7f5 0%, #faf7f500 100%);
  pointer-events: none;
  z-index: 2;
}

.pattern-row {
  display: flex;
  white-space: nowrap;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: .3em;
  line-height: 1.6;
  color: #0000000d;
  font-family: MiSans-Bold, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.pattern-row:nth-child(odd) { margin-left: -2em; }
.pattern-row .pattern-text {
  flex-shrink: 0;
  padding-right: .8em;
  transition: color .3s, text-shadow .3s;
}
.pattern-row .pattern-text:hover {
  color: #0000001f;
  text-shadow: 0 0 20px rgba(0,0,0,.08);
}

.hero-text {
  position: relative;
  z-index: 3;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #000;
  font-family: MiSans-Bold, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.hero-alt {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: circle(0px at -300px -300px);
  will-change: clip-path;
}
.hero-alt .hero-alt-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-alt .hero-alt-content .pattern-row {
  font-size: 32px;
  color: #ffffff1f;
}
.hero-alt .hero-alt-content .pattern-row:nth-child(odd) { margin-left: -1em; }
.hero-alt-text {
  position: relative;
  z-index: 3;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  white-space: nowrap;
  font-family: MiSans-Bold, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.about-label {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .25em;
  color: #000;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity .3s;
}
.about-label:hover { opacity: .5; }

.crack-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 20;
  cursor: pointer;
}

/* === Back Content === */
.back-content {
  background: #faf7f5;
  border: 1px solid #000;
  padding: 80px 120px;
  min-height: 600px;
}
.content-card {
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 3px;
  padding: 28px 32px;
  max-width: 800px;
  margin: 0 auto;
}
.content-card p {
  font-size: 16px;
  line-height: 2;
  color: #444;
  margin-bottom: 20px;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card strong { color: #000; }

.back-click-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 20;
  cursor: pointer;
}

/* === Showcase === */
.showcase {
  display: flex;
}
.showcase-card {
  flex: 1;
  border-bottom: 1px solid #000;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.showcase-card:not(:last-child) { border-right: 1px solid #000; }
.showcase-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: filter .45s, transform .4s;
}
.showcase-card:hover img {
  filter: invert() brightness(.85);
  transform: scale(1.02);
}
.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent 0%, rgba(0,0,0,.8) 100%);
  transition: background .2s;
}
.showcase-card:hover .showcase-overlay { background: rgba(0,0,0,.65); }
.showcase-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}
.showcase-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.showcase-info p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

/* === Section Header === */
.section-header {
  background: #faf7f5;
  border-bottom: 1px solid #000;
  padding: 60px 80px;
  display: flex;
  align-items: center;
  gap: 80px;
}
.section-header h2 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  flex-shrink: 0;
}
.section-header p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  max-width: 480px;
}

/* === Row List === */
.row-list {
  border-bottom: 1px solid #000;
}
.row-item {
  display: flex;
  align-items: center;
  background: #faf7f5;
  border-bottom: 1px solid #000;
  padding: 40px;
  text-decoration: none;
  color: #000;
  transition: all .2s;
  cursor: pointer;
}
.row-item:last-child { border-bottom: none; }
.row-item:hover {
  background: #000;
  color: #fff;
}
.row-item:hover .row-index,
.row-item:hover .row-info h3,
.row-item:hover .row-info p,
.row-item:hover .row-arrow {
  color: #fff;
}
.row-index {
  font-size: 28px;
  font-weight: 600;
  width: 80px;
  flex-shrink: 0;
  color: #999;
  font-family: MiSans-Regular, monospace, sans-serif;
  transition: color .2s;
}
.row-info { flex: 1; }
.row-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color .2s;
}
.row-info p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  transition: color .2s;
}
.row-arrow {
  font-size: 28px;
  flex-shrink: 0;
  margin-left: 24px;
  transition: color .2s;
  color: #000;
}

/* === Blog === */
.blog { border-top: 1px solid #000; }

/* === Join Us === */
.join-intro {
  background: #faf7f5;
  border-bottom: 1px solid #000;
  padding: 60px 80px;
}
.join-intro h2 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 24px;
}
.join-intro p {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  max-width: 800px;
}
.join-contact {
  background: #faf7f5;
  padding: 48px 80px;
  border-bottom: 1px solid #000;
}
.join-contact p {
  font-size: 16px;
  color: #444;
}
.join-contact strong { color: #000; }

/* === Footer === */
.footer {
  background: #faf7f5;
  text-align: center;
  padding: 48px 24px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #000;
}

/* === Mobile Nav === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #000;
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .nav-lang-menu { right: auto; left: 0; }

  .hero-title { height: 400px; }
  .hero-text { font-size: 56px; }
  .hero-alt-text { font-size: 56px; }
  .pattern-row { font-size: 36px; }
  .hero-alt .hero-alt-content .pattern-row { font-size: 24px; }

  .showcase { flex-direction: column; }
  .showcase-card:not(:last-child) { border-right: none; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 24px;
  }
  .section-header h2 { font-size: 40px; }

  .back-content { padding: 40px 24px; }
  .content-card { padding: 20px; }
  .content-card p { font-size: 15px; }

  .join-intro { padding: 40px 24px; }
  .join-intro h2 { font-size: 40px; }
  .join-contact { padding: 40px 24px; }

  .row-item { padding: 24px; }
  .row-index { width: 50px; font-size: 24px; }
  .row-info h3 { font-size: 20px; }
}

@media (max-width: 430px) {
  .hero-title { height: 320px; }
  .hero-text { font-size: 40px; }
  .hero-alt-text { font-size: 32px; }
  .pattern-row { font-size: 28px; }
  .hero-alt .hero-alt-content .pattern-row { font-size: 18px; }

  .section-header h2 { font-size: 32px; }
  .row-index { width: 40px; font-size: 20px; }
  .row-info h3 { font-size: 18px; }
  .row-info p { font-size: 14px; }
}
