﻿* { 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: #faf7f5;
  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 {
  font-family: MiSans-Bold, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #000;
  text-decoration: none;
}
.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-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  padding: 4px;
}

/* === Hero === */
.hero {
  max-width: 1440px;
  margin: 0 auto;
}

.flip-card {
  perspective: 1600px;
  width: 100%;
}
.flip-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.flip-inner.flipped { transform: rotateX(-180deg); }

.flip-front, .flip-back {
  grid-area: 1 / 1 / 2 / 2;
  backface-visibility: hidden;
}
.flip-back {
  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; }
.alt-about-label {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .25em;
  color: #fff;
  text-transform: uppercase;
  pointer-events: none;
}
.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: 40px 80px;
  height: 600px;
  overflow-y: auto;
}
.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;
}

/* === About Section === */
.about-content {
  background: #faf7f5;
  padding: 80px 120px;
}
.about-content h2 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 24px;
}
.about-content p {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  max-width: 800px;
  margin-bottom: 16px;
}

/* === 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: #faf7f5;
    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; }

  .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; }

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

  .about-content { padding: 40px 24px; }
  .about-content h2 { font-size: 40px; }
}

@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; }
  .about-content h2 { font-size: 32px; }
  .back-content { padding: 20px; height: 320px; }
}
