/* Generated by scripts/build-home-css.cjs */
/* 本地的 ITC Avant Garde Gothic Pro 多字重 */
@font-face {
  font-family: "Avant Garde";
  src: url("../shared/fonts/ITCAvantGardePro-Book.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avant Garde";
  src: url("../shared/fonts/ITCAvantGardePro-Demi.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avant Garde";
  src: url("../shared/fonts/ITCAvantGardePro-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* 斜体（可选，仅在用到 font-style: italic 时生效） */
@font-face {
  font-family: "Avant Garde";
  src: url("../shared/fonts/AVGARDDO_2.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --board: #f5f0e7;              /* warm cream background */
  --grid: rgba(0, 0, 0, 0.045);  /* subtle grid lines */
  --ink: #14120e;                /* near-black text */
  --ink-soft: rgba(20, 18, 14, 0.6);
  --grid-size: 96px;

  /* 正文：保持原有风格，仍用 Helvetica 系 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* 标题：本地 Avant Garde 优先，缺失时使用系统字体。 */
  --font-display: "Avant Garde", "ITC Avant Garde Gothic Pro", "Avant Garde Gothic",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* 参考图里的低饱和度三色装饰条（青 -> 金 -> 红） */
  --accent-gradient: linear-gradient(90deg, #6fd3c7 0%, #f2c14e 45%, #d24b45 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  overflow-x: hidden;

  /* 整站背景板：米色 + 网格，固定不随滚动移动 */
  background-color: var(--board);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-attachment: fixed;
}

/* 内容容器，铺满可滚动区域 */
.board { min-height: 100vh; }

/* ---------- Loading screen (fixed overlay) ---------- */
.loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.loading.is-done {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  transform: translateY(4vh);
}

/* Heavy headline with a soft mirrored reflection */
.word {
  margin: 0;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}

.word-face,
.word-reflection {
  display: block;
  text-align: center;
}

/* The reflection is a vertical mirror that fades out as it drops away. */
.word-reflection {
  margin-top: 0.06em;
  transform: scaleY(-1);
  transform-origin: center;
  opacity: 0.3;
  filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.22) 38%, rgba(0,0,0,0.5) 72%, rgba(0,0,0,1) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.22) 38%, rgba(0,0,0,0.5) 72%, rgba(0,0,0,1) 100%);
  pointer-events: none;
  user-select: none;
}

/* ---------- Loading progress ---------- */
.progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: min(320px, 72vw);
}

.progress-track {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.percent {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(20, 18, 14, 0.8);
  font-variant-numeric: tabular-nums;
}

/* ---------- Main screen (scrollable) ---------- */
.main {
  position: relative;
  z-index: 1;
  padding-bottom: 8vh;
  opacity: 0;
  /* Start the welcome reveal just after the loading screen begins fading. */
  transition: opacity 0.8s ease 0.2s;
}

#app.is-ready .main { opacity: 1; }

/* 音乐播放/暂停小按钮（固定右下角） */
.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 320;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(6px);
  color: #e9e5dc;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.music-toggle:hover {
  background: rgba(20, 18, 14, 0.75);
  transform: translateY(-2px);
}

.music-toggle:active { transform: translateY(0); }
html.music-playing .music-toggle { color: #d9b95a; border-color: rgba(217, 185, 90, 0.35); }
.music-toggle { transition: opacity .28s ease, background .25s ease, color .25s ease, transform .15s ease; }
.music-toggle.is-idle-hidden { opacity: 0; pointer-events: none; }

/* 第三面入口与仪表盘返回键共用深色金边面板。 */
.terminal-close,
.enter-btn {
  text-decoration: none;
  color: #f6f1e8;
  background: rgba(13, 11, 8, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(217, 185, 90, 0.55);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.28s ease, transform 0.28s ease;
}

/* 终端覆盖层右上角的返回按钮 */
.terminal-close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 118px;
  line-height: 1;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.terminal-close.is-idle-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.back-u-turn {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terminal-close:hover,
.enter-btn:hover {
  background: #b89438;
  color: #0d0b08;
  border-color: #b89438;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

/* 终端覆盖层出现时的优雅进入（保持不透明，避免浅色底透出；深色启动界面直接呈现出） */
.terminal-overlay {
  animation: terminal-in 0.4s ease;
}

@keyframes terminal-in {
  from { transform: scale(1.02); }
  to   { transform: none; }
}

/* Scroll 渐变动画（约 0.5s）——只有启用 JS 时才先隐藏，避免无 JS 时内容缺失 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 第三面：透明度由 JS 随滚动位置连续设置（无过渡，跟随滚动 1:1） */
.js .reveal-fade {
  opacity: 0;
}

/* 首屏 WELCOME 随滚动离场时使用更舒缓的 3 秒淡出。 */
.js .hero.reveal-fade {
  transition: opacity 3s ease;
}

/* 三色装饰条 */
.accent-bar {
  display: block;
  height: 6px;
  width: min(420px, 68vw);
  border-radius: 999px;
  background: var(--accent-gradient);
  margin-top: 1.1rem;
}

.accent-bar.small {
  align-self: center;
  flex: 1;
  width: auto;
  min-width: 3rem;
  height: 4px;
  margin: 0;
}

/* ---------- Hero: WELCOME 欢迎 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  padding: 8vh 5vw;
  text-align: center;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.18em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 9.5vw, 8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* The invitation fades separately from the welcome heading on scroll. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 22px));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 10rem;
  min-height: 58px;
  padding: 8px 14px;
  color: var(--ink-soft);
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, 9px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease, color 0.25s ease;
}

html:not(.js) .scroll-cue {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.hero.enter .scroll-cue:not(.is-hidden) {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.scroll-cue:hover,
.scroll-cue:focus-visible { color: #8c6c26; }
.scroll-cue:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }

.scroll-cue-text {
  font: 600 0.73rem/1.4 var(--font);
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.scroll-cue-arrow {
  width: 17px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero.enter .scroll-cue:not(.is-hidden) .scroll-cue-text {
  animation: scroll-cue-pulse 2.1s ease-in-out infinite;
}

.hero.enter .scroll-cue:not(.is-hidden) .scroll-cue-arrow {
  animation: scroll-cue-drop 2.1s ease-in-out infinite;
}

@keyframes scroll-cue-pulse {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 1; }
}

@keyframes scroll-cue-drop {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------- Section: 关于我 ---------- */
.section {
  padding: 10vh 6vw;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.section-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 3px solid transparent;
  /* 渐变描边环（借用三色渐变，米色填充内芯） */
  background:
    linear-gradient(var(--board), var(--board)) padding-box,
    var(--accent-gradient) border-box;
}

.section-title {
  margin: 0;
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.about-text p {
  margin: 0;
  font-family: var(--font);
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-soft);
  text-align: justify;
}

.about-photo {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.25);
}

.about-photo .photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ---------- 联系区 ---------- */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

.contact-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 148, 56, 0.55);
  color: #b89438;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.18s ease, border-color 0.25s ease;
}

.contact-circle svg { width: 24px; height: 24px; fill: currentColor; }
.contact-circle .gmail-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-circle .glyph { line-height: 1; }

.contact-circle:hover {
  background: #b89438;
  color: #0d0b08;
  border-color: #b89438;
  transform: translateY(-3px);
}

/* ---------- 第四面：未来呢 ---------- */
.future {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14vh 6vw 10vh;
}

.future-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.future-sub {
  margin: 1.4rem 0 0;
  font-family: var(--font);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- 第三面：lo-fi 底片背景 ---------- */
.section-3 {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(72px, 12vh, 150px) 8vw;
  margin: 0;
  text-align: center;
  background-image: url("assets/backdrop-3.webp");
  background-size: cover;
  background-position: center;
  color: #e9e5dc;
}

/* 中间淡淡的暗色渐晕，让压在彩色条上的文字更清晰 */
.section-3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 55% at 50% 48%, rgba(8, 8, 10, 0.42), rgba(8, 8, 10, 0) 76%);
}

.section-3-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vh, 48px);
}

.deloc {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display); /* Avant Garde */
  font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.deloc-sub {
  margin: 0;
  max-width: 48ch;
  line-height: 1.8;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.6vw, 1.05rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 229, 220, 0.85);
}

.section-3 .enter-btn { margin-top: 12px; }

/* 进入按钮：与仪表盘返回键一致的深色金边胶囊面板。 */
.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 3.2rem;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.enter-btn .btn-arrow {
  font-size: 13px;
  line-height: 1;
  transform: translateY(-2px);
}

/* 文字：每次进入时播放一次 1.2s 入场动画；离开后重置以便下次重放 */
.section-3 .deloc,
.section-3 .deloc-sub,
.section-3 .enter-btn {
  opacity: 0;
}

.section-3.enter .deloc {
  animation: deloc-in 1.2s ease forwards;
}

.section-3.enter .deloc-sub {
  animation: deloc-in 1.2s ease 0.15s forwards;
}

.section-3.enter .enter-btn {
  animation: deloc-in 1.2s ease 0.3s forwards;
}

@keyframes deloc-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 第一/二/四面文字：与第三面相同的“进入播放一次 + 随滚动淡出” */
.js .hero .hero-title,
.js .hero .accent-bar,
.js .about .section-head,
.js .about .about-grid,
.js .future .future-title,
.js .future .future-sub,
.js .future .future-body {
  opacity: 0;
}

.hero.enter .hero-title,
.about.enter .section-head,
.future.enter .future-title {
  animation: sec-text-in 1.2s ease forwards;
}

.hero.enter .accent-bar,
.about.enter .about-grid,
.future.enter .future-sub {
  animation: sec-text-in 1.2s ease 0.12s forwards;
}

@keyframes sec-text-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* 第四面：与前面相同的淡进/淡出，但整体比它们晚 0.5s */
.future {
  transition: opacity 0.45s ease 0.5s;
}

.future.enter .future-title {
  animation: sec-text-in 1.2s ease 0.5s forwards;
}

.future.enter .future-sub {
  animation: sec-text-in 1.2s ease 0.62s forwards;
}

.future.enter .future-body {
  animation: sec-text-in 1.2s ease 0.74s forwards;
}

.future-body {
  max-width: 56ch;
  margin-top: 1.4rem;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink-soft);
  text-align: justify;
}

/* ---------- DC page hand-off ---------- */
/* Keep the page visible underneath so the transfer reads as a deliberate hand-off,
   then let the independent boot screen take over. */
.dc-page-transition {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #e5c76f;
  background:
    radial-gradient(circle at center, rgba(184, 148, 56, 0.16), transparent 30%),
    rgba(13, 11, 8, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.dc-page-transition.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.dc-transition-core {
  position: relative;
  display: grid;
  place-items: center;
  width: min(190px, 52vw);
  aspect-ratio: 1;
  isolation: isolate;
  opacity: 0;
  transform: scale(0.9) translateZ(0);
  will-change: opacity, transform;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22, .61, .36, 1);
}

.dc-page-transition.is-active .dc-transition-core {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

.dc-transition-orbit {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(229, 199, 111, 0.58);
  border-radius: 50%;
  transform: translateZ(0);
  will-change: transform, opacity;
}

.dc-transition-orbit-b {
  width: 72%;
  transform: rotateX(68deg) rotateZ(-30deg);
  border-color: rgba(229, 199, 111, 0.34);
}

.dc-page-transition.is-active .dc-transition-orbit-a {
  animation: dc-orbit-a 0.78s cubic-bezier(.22, .61, .36, 1) both;
}

.dc-page-transition.is-active .dc-transition-orbit-b {
  animation: dc-orbit-b 0.78s 0.06s cubic-bezier(.22, .61, .36, 1) both;
}

.dc-transition-signal {
  width: 13px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e5c76f;
  box-shadow: 0 0 0 7px rgba(229, 199, 111, 0.11), 0 0 18px rgba(229, 199, 111, 0.7);
  will-change: transform, opacity;
}

.dc-page-transition.is-active .dc-transition-signal {
  animation: dc-signal 0.72s 0.1s ease-in-out both;
}

.dc-transition-core p {
  position: absolute;
  top: calc(100% + 20px);
  width: max-content;
  max-width: 80vw;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
}

@keyframes dc-orbit-a {
  from { transform: translateZ(0) rotate(-36deg); opacity: 0; }
  to { transform: translateZ(0) rotate(0deg); opacity: 1; }
}

@keyframes dc-orbit-b {
  from { transform: rotateX(68deg) rotateZ(-76deg); opacity: 0; }
  to { transform: rotateX(68deg) rotateZ(-30deg); opacity: 1; }
}

@keyframes dc-signal {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-page-transition,
  .dc-page-transition.is-active,
  .dc-transition-core { transition-duration: 0.01ms; }
  .dc-transition-orbit,
  .dc-transition-signal { animation: none; }
  .scroll-cue { transition-duration: 0.01ms; }
  .scroll-cue-text,
  .scroll-cue-arrow { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 320px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-title { flex-direction: column; gap: 0.1em; }
  .scroll-cue {
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    min-height: 56px;
    gap: 5px;
  }
  .scroll-cue-text { font-size: 0.78rem; letter-spacing: 0.12em; }
}

.venus-preview {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  margin: 0;
  padding: 8vh 7vw 10vh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: 6vw;
  overflow: hidden;
  color: #f1dfbd;
  background: radial-gradient(ellipse at 72% 50%, #3b2818 0%, #18130e 42%, #100e0b 80%);
}
.venus-preview::before {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(#b8943826 1px, transparent 1px), linear-gradient(90deg, #b8943826 1px, transparent 1px);
  background-size: 96px 96px;
}
.venus-preview-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
}
.venus-eyebrow {
  margin: 0 0 30px;
  color: #bba582;
  font: 10px/1.5 var(--font);
  letter-spacing: .25em;
}
#venus-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 108px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
}
#venus-title span {
  display: block;
  margin-top: 18px;
  font: 300 19px/1.4 var(--font);
  letter-spacing: .5em;
}
.venus-preview-description { margin: 32px 0 0; color: #baac97; font-size: 14px; line-height: 2; }
.venus-preview .enter-btn { margin-top: 36px; padding: 15px 26px; font-size: 12px; letter-spacing: .1em; }
.venus-preview-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}
#venus-preview-canvas {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s ease;
}
.venus-preview-stage.is-ready #venus-preview-canvas {
  visibility: visible;
  opacity: 1;
}
#venus-preview-canvas canvas { display: block; width: 100%; height: 100%; }
.venus-preview-fallback { display: none; position: absolute; bottom: 5%; width: 100%; text-align: center; font-size: 12px; color: #baac97; }
.venus-preview-stage.is-error .venus-preview-fallback { display: block; }
.venus-preview-caption {
  position: absolute;
  inset: auto 7vw 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #b8943833;
  padding-top: 15px;
  color: #9c886b;
  font-size: 9px;
  letter-spacing: .17em;
}
@media (max-width: 640px) {
  .venus-preview { min-height: 100vh; min-height: 100svh; height: 100vh; height: 100svh; margin: 0; padding: clamp(24px, 5svh, 44px) 7vw 58px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 24px; }
  .venus-preview-copy { align-self: start; }
  .venus-eyebrow { margin-bottom: 18px; font-size: 8px; }
  #venus-title { font-size: clamp(34px, 11vw, 60px); }
  #venus-title span { display: inline-block; margin: 0 0 0 15px; font-size: 14px; vertical-align: middle; }
  .venus-preview-description { margin-top: 20px; font-size: 12px; line-height: 1.9; }
  .venus-preview .enter-btn { margin-top: 22px; padding: 13px 20px; font-size: 10px; }
  .venus-preview-caption { bottom: 16px; font-size: 7px; padding-top: 10px; gap: 8px; }
}

/* Use the same replay-on-entry rhythm as the other home sections. */
.js .venus-eyebrow,
.js #venus-title,
.js .venus-preview-description,
.js .venus-preview .enter-btn,
.js .venus-preview-stage { opacity: 0; }
.venus-preview.enter .venus-eyebrow,
.venus-preview.enter #venus-title { animation: sec-text-in 1.2s ease forwards; }
.venus-preview.enter .venus-preview-description { animation: sec-text-in 1.2s .12s ease forwards; }
.venus-preview.enter .enter-btn { animation: sec-text-in 1.2s .24s ease forwards; }
.venus-preview.enter .venus-preview-stage { animation: venus-globe-in 1.2s .12s ease forwards; }
@keyframes venus-globe-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .venus-preview .venus-eyebrow,
  .js .venus-preview #venus-title,
  .js .venus-preview .venus-preview-description,
  .js .venus-preview .enter-btn,
  .js .venus-preview .venus-preview-stage { opacity: 1; animation: none; }
}
@media (max-height: 600px) and (min-width: 641px) {
  .venus-eyebrow { margin-bottom: 10px; }
  #venus-title { font-size: 9svh; }
  #venus-title span { margin-top: 8px; font-size: 14px; }
  .venus-preview-description { margin-top: 12px; font-size: 12px; }
  .venus-preview .enter-btn { margin-top: 12px; padding: 10px 18px; }
}

.mars-preview {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  margin: 0;
  padding: 8vh 7vw 10vh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: 6vw;
  overflow: hidden;
  color: #f1dfbd;
  background: radial-gradient(ellipse at 72% 50%, #49281f 0%, #21120f 42%, #120b0a 80%);
}
.mars-preview::before {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(#b8943826 1px, transparent 1px), linear-gradient(90deg, #b8943826 1px, transparent 1px);
  background-size: 96px 96px;
}
.mars-preview-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
}
.mars-eyebrow {
  margin: 0 0 30px;
  color: #bba582;
  font: 10px/1.5 var(--font);
  letter-spacing: .25em;
}
#mars-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 108px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
}
#mars-title span {
  display: block;
  margin-top: 18px;
  font: 300 19px/1.4 var(--font);
  letter-spacing: .5em;
}
.mars-preview-description { margin: 32px 0 0; color: #baac97; font-size: 14px; line-height: 2; }
.mars-preview .enter-btn { margin-top: 36px; padding: 15px 26px; font-size: 12px; letter-spacing: .1em; }
.mars-preview-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}
#mars-preview-canvas {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s ease;
}
.mars-preview-stage.is-ready #mars-preview-canvas {
  visibility: visible;
  opacity: 1;
}
#mars-preview-canvas canvas { display: block; width: 100%; height: 100%; }
.mars-preview-fallback { display: none; position: absolute; bottom: 5%; width: 100%; text-align: center; font-size: 12px; color: #baac97; }
.mars-preview-stage.is-error .mars-preview-fallback { display: block; }
.mars-preview-caption {
  position: absolute;
  inset: auto 7vw 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #b8943833;
  padding-top: 15px;
  color: #9c886b;
  font-size: 9px;
  letter-spacing: .17em;
}
@media (max-width: 640px) {
  .mars-preview { min-height: 100vh; min-height: 100svh; height: 100vh; height: 100svh; margin: 0; padding: clamp(24px, 5svh, 44px) 7vw 58px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 24px; }
  .mars-preview-copy { align-self: start; }
  .mars-eyebrow { margin-bottom: 18px; font-size: 8px; }
  #mars-title { font-size: clamp(34px, 11vw, 60px); }
  #mars-title span { display: inline-block; margin: 0 0 0 15px; font-size: 14px; vertical-align: middle; }
  .mars-preview-description { margin-top: 20px; font-size: 12px; line-height: 1.9; }
  .mars-preview .enter-btn { margin-top: 22px; padding: 13px 20px; font-size: 10px; }
  .mars-preview-caption { bottom: 16px; font-size: 7px; padding-top: 10px; gap: 8px; }
}

/* Use the same replay-on-entry rhythm as the other home sections. */
.js .mars-eyebrow,
.js #mars-title,
.js .mars-preview-description,
.js .mars-preview .enter-btn,
.js .mars-preview-stage { opacity: 0; }
.mars-preview.enter .mars-eyebrow,
.mars-preview.enter #mars-title { animation: sec-text-in 1.2s ease forwards; }
.mars-preview.enter .mars-preview-description { animation: sec-text-in 1.2s .12s ease forwards; }
.mars-preview.enter .enter-btn { animation: sec-text-in 1.2s .24s ease forwards; }
.mars-preview.enter .mars-preview-stage { animation: mars-globe-in 1.2s .12s ease forwards; }
@keyframes mars-globe-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .mars-preview .mars-eyebrow,
  .js .mars-preview #mars-title,
  .js .mars-preview .mars-preview-description,
  .js .mars-preview .enter-btn,
  .js .mars-preview .mars-preview-stage { opacity: 1; animation: none; }
}
@media (max-height: 600px) and (min-width: 641px) {
  .mars-eyebrow { margin-bottom: 10px; }
  #mars-title { font-size: 9svh; }
  #mars-title span { margin-top: 8px; font-size: 14px; }
  .mars-preview-description { margin-top: 12px; font-size: 12px; }
  .mars-preview .enter-btn { margin-top: 12px; padding: 10px 18px; }
}

/* Full-screen index, in the same warm paper and muted gold as the main site. */
.site-nav-toggle {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 108px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(184, 148, 56, .5);
  border-radius: 999px;
  background: rgba(22, 19, 14, .94);
  color: #f2e9d8;
  font: 500 12px/1.2 var(--font);
  letter-spacing: .12em;
  cursor: pointer;
  box-shadow: 0 6px 24px #0002;
  transition: background .2s ease, transform .2s ease;
}
.site-nav-toggle[hidden] { display: none; }
.site-nav-toggle:hover { background: #3d3220; transform: translateY(-2px); }
#site-nav-toggle {
  min-width: 46px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #14120e;
  box-shadow: none;
  transition: opacity .25s ease, transform .25s ease;
}
#site-nav-toggle.is-on-dark-background { color: #fff; }
#site-nav-toggle:hover { background: transparent; transform: none; }
#site-nav-toggle.is-idle-hidden { opacity: 0; transform: translateY(-5px); pointer-events: none; }
.nav-hamburger { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-navigation {
  position: fixed;
  inset: 0;
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #30291f;
  background-color: #f3eee4;
  background-image: linear-gradient(#8a72500a 1px, transparent 1px), linear-gradient(90deg, #8a72500a 1px, transparent 1px);
  background-size: 96px 96px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-navigation[open] { display: flex; flex-direction: column; animation: navigation-in .35s ease both; }
.site-navigation::backdrop { background: #15110d70; }
html.site-menu-open { overflow: hidden; }
.navigation-top { padding: 30px 7vw; min-height: 90px; display: flex; align-items: center; }
.navigation-brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.navigation-brand > span { color: #aa9476; }
.navigation-content {
  flex: 1 0 auto;
  width: 100%; max-width: 1440px;
  margin: auto; padding: 6vh 9vw;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center; gap: 8vw;
}
.navigation-kicker { margin: 0 0 24px; font-size: 10px; letter-spacing: .25em; color: #a08557; }
.navigation-intro h2 { margin: 0 0 24px; font-size: clamp(28px, 3.4vw, 50px); font-weight: 400; letter-spacing: .03em; }
.navigation-intro > p:last-child { margin: 0; color: #9c8d7a; font-size: 12px; line-height: 1.8; }
.navigation-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid #ad956644; }
.navigation-links li { border-bottom: 1px solid #ad956644; }
.navigation-links a {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 26px;
  align-items: center; gap: 18px;
  padding: clamp(18px, 3vh, 34px) 6px;
  text-decoration: none; color: inherit;
  transition: color .2s ease, background .2s ease;
}
.navigation-number { align-self: start; margin-top: 8px; font-size: 10px; color: #a18a65; letter-spacing: .06em; }
.navigation-label { font-size: clamp(26px, 3.2vw, 44px); font-weight: 400; line-height: 1.25; letter-spacing: .06em; }
.navigation-label small { display: block; margin-top: 9px; font-size: 9px; line-height: 1.5; letter-spacing: .19em; color: #9c8d7a; }
.navigation-arrow { font-size: 23px; color: #b99d68; transition: transform .2s ease; }
.navigation-links a:hover, .navigation-links a[aria-current="location"] { color: #9a772d; background: #b8943809; }
.navigation-links a:hover .navigation-arrow { transform: translate(3px, -3px); }
.navigation-links a[aria-current="location"] .navigation-number { font-weight: 700; }
.site-nav-toggle:focus-visible, .navigation-links a:focus-visible { outline: 2px solid #b89438; outline-offset: 4px; }
.navigation-bottom { display: flex; justify-content: space-between; gap: 20px; margin: 0 7vw; padding: 24px 0 max(24px, env(safe-area-inset-bottom)); border-top: 1px solid #ad956633; font-size: 8px; letter-spacing: .13em; color: #aa9678; }
#about, #dc, #venus, #contact { scroll-margin-top: 0; }
#about:focus, #dc:focus, #venus:focus, #contact:focus { outline: none; }
@keyframes navigation-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .site-nav-toggle { top: max(16px, env(safe-area-inset-top)); right: 16px; min-width: 96px; gap: 14px; }
  .navigation-top { padding: 22px 7vw; min-height: 80px; }
  .navigation-brand { font-size: 18px; }
  .navigation-content { display: block; padding: 3vh 8vw 5vh; }
  .navigation-intro { margin-bottom: 26px; }
  .navigation-kicker { margin-bottom: 12px; font-size: 9px; }
  .navigation-intro h2 { font-size: 26px; margin-bottom: 12px; }
  .navigation-intro > p:last-child { font-size: 11px; }
  .navigation-links a { padding: 20px 4px; gap: 14px; }
  .navigation-label { font-size: 27px; }
  .navigation-bottom { font-size: 7px; }
  .navigation-bottom > span:last-child { display: none; }
}
@media (max-height: 600px) {
  .navigation-content { padding-top: 16px; padding-bottom: 20px; }
  .navigation-links a { padding-block: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-navigation[open] { animation: none; }
  .site-nav-toggle, .navigation-links a, .navigation-arrow { transition: none; }
}
