:root {
  --bg-color: #fdfdfc;
  --text-primary: #222225;
  --text-secondary: #7f7f85;
  --nav-bg: rgba(253, 253, 252, 0.85);
  --card-bg: #ffffff;
  --border-color: rgba(34, 34, 37, 0.05);
  --accent-color: #c98e68;
  --radius-lg: 40px;
  --radius-md: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #111112;
    --text-primary: #f2f2f3;
    --text-secondary: #99999e;
    --nav-bg: rgba(17, 17, 18, 0.85);
    --card-bg: #1a1a1c;
    --border-color: rgba(242, 242, 243, 0.05);
  }
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(0, 0, 0, 0.2) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  z-index: 10;
}

.halo {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

.halo-a {
  top: -20vh;
  left: -10vw;
  background: radial-gradient(circle, rgba(201, 142, 104, 0.12), transparent 70%);
}

.halo-b {
  bottom: -20vh;
  right: -10vw;
  background: radial-gradient(circle, rgba(224, 187, 161, 0.1), transparent 70%);
}

/* Global Navigation */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 52px;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 9999;
  display: flex;
  align-items: center;
}

.global-nav-content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* Typography & Core Layout */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  letter-spacing: -0.04em;
  font-weight: 600;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-title {
  font-size: clamp(52px, 8vw, 104px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, #b3937d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.45;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 600px;
  margin: 0 auto;
}

.hero-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(201, 142, 104, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

/* Philosophy Section */
.philosophy {
  padding: 160px 0 180px;
  background: var(--bg-color);
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 80px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.bento-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 64px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.bento-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.bento-item.large {
  grid-column: span 2;
  min-height: 480px;
  border-radius: var(--radius-lg);
  padding: 80px;
  flex-direction: row;
  align-items: center;
}

.bento-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.bento-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.bento-title {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.bento-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

.bento-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.art-minimal {
  perspective: 1000px;
}

.art-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(201, 142, 104, 0.3);
  opacity: 0.5;
  animation: pulseRing 8s ease-in-out infinite alternate;
}

.art-core {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(201, 142, 104, 0.2), transparent 70%);
  filter: blur(20px);
  animation: floatCore 10s ease-in-out infinite;
}

.art-glass {
  position: absolute;
  width: 220px;
  height: 300px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transform: rotateZ(-8deg) translateY(10px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  .art-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.bento-item.large:hover .art-glass {
  transform: rotateZ(0deg) translateY(0);
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.3; }
  100% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes floatCore {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-20px, -20px); }
  66% { transform: translate(20px, 10px); }
}

/* Vision Section */
.vision {
  padding: 160px 20px;
  background: var(--card-bg);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.vision-content {
  max-width: 800px;
}

.vision h2 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.vision p {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Footer */
.global-footer {
  background: var(--bg-color);
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.legal-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: var(--text-primary);
}

.separator {
  opacity: 0.5;
}

/* Animations */
.reveal-text {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-scale {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  animation: scaleUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Responsive — mobile & small tablets only; desktop ( >768px ) unchanged */
@media (max-width: 768px) {
  .global-nav-content {
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  }

  .nav-links a {
    font-size: 11px;
    letter-spacing: 0.01em;
  }

  .nav-links {
    gap: 12px;
    flex-shrink: 0;
  }

  .brand {
    font-size: 13px;
    min-width: 0;
  }

  .hero {
    padding: max(100px, calc(env(safe-area-inset-top, 0px) + 72px)) max(16px, env(safe-area-inset-right, 0px)) 48px
      max(16px, env(safe-area-inset-left, 0px));
  }

  .hero-content {
    width: 100%;
    max-width: min(100%, 360px);
    margin-inline: auto;
  }

  .hero-title {
    font-size: clamp(26px, 6.35vw + 0.85rem, 34px);
    line-height: 1.22;
    margin-bottom: 14px;
    letter-spacing: -0.035em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  /* 允许整块标题按视口自然断行，避免「单字成行」却因 PC 刻意的 <br/> 而无法重排 */
  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    font-size: clamp(14px, 2.9vw + 0.65rem, 17px);
    line-height: 1.58;
    max-width: 100%;
    letter-spacing: -0.012em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .section-container {
    padding: 0 max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px));
  }

  .section-title {
    font-size: clamp(22px, 5.8vw + 0.65rem, 30px);
    line-height: 1.28;
    margin-bottom: 32px;
    letter-spacing: -0.038em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
    padding-inline: 4px;
  }

  .philosophy {
    padding: 72px 0 88px;
  }

  .vision {
    padding: 72px max(18px, env(safe-area-inset-right, 0px)) 72px max(18px, env(safe-area-inset-left, 0px));
  }

  .vision-content {
    max-width: min(100%, 360px);
    margin-inline: auto;
  }

  .vision h2 {
    font-size: clamp(22px, 5.35vw + 0.72rem, 30px);
    line-height: 1.26;
    margin-bottom: 18px;
    letter-spacing: -0.036em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .vision p {
    font-size: clamp(14px, 2.85vw + 0.62rem, 17px);
    line-height: 1.62;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bento-item {
    padding: 26px 22px;
    border-radius: 28px;
  }

  .bento-item.large {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 26px 22px;
    border-radius: 32px;
  }

  .bento-item:hover {
    transform: none;
  }

  .bento-content {
    max-width: 100%;
  }

  .bento-eyebrow {
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    font-size: 11px;
  }

  .bento-title {
    font-size: clamp(21px, 4.95vw + 0.62rem, 26px);
    line-height: 1.26;
    margin-bottom: 12px;
    letter-spacing: -0.032em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .bento-desc {
    font-size: clamp(14px, 2.65vw + 0.52rem, 16px);
    line-height: 1.62;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: pretty;
    letter-spacing: -0.006em;
  }

  .hero-subtitle br,
  .vision p br,
  .bento-desc br {
    display: none;
  }

  .bento-art {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    height: 200px;
    margin-top: 22px;
  }

  .art-ring {
    width: 200px;
    height: 200px;
  }

  .art-core {
    width: 120px;
    height: 120px;
  }

  .art-glass {
    width: min(240px, 72vw);
    height: 148px;
  }

  .global-footer {
    padding: 36px max(18px, env(safe-area-inset-right, 0px)) max(36px, env(safe-area-inset-bottom, 0px))
      max(18px, env(safe-area-inset-left, 0px));
    font-size: 11px;
  }

  .legal-links {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* Extra-small phones — only tighten type further */
@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(24px, 5.85vw + 0.82rem, 30px);
  }

  .section-title {
    font-size: clamp(20px, 5.2vw + 0.6rem, 28px);
  }

  .vision h2 {
    font-size: clamp(20px, 4.8vw + 0.65rem, 26px);
  }

  .bento-title {
    font-size: clamp(19px, 4.4vw + 0.56rem, 24px);
  }
}
