/* ============================================================
   itlti — 镜面质感
   IT | l | TI ：字标是金属镜面，光带随鼠标扫动
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --surface: #121216;
  --surface-2: #17171d;
  --ink: #f4f3ef;
  --ink-dim: #9a9aa3;
  --ink-faint: #61616b;
  --line: #26262e;
  --line-soft: #1b1b21;
  --amber: #d8a05f;
  --amber-soft: rgba(216, 160, 95, 0.16);
  /* 镜面高光带位置（JS 更新） */
  --gx: 18%;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber-soft); color: var(--ink); }

a { color: inherit; text-decoration: none; }

.m { color: var(--amber); font-weight: 300; }

/* 镜面细线：区块分隔线（中间亮、两端隐没） */
.mirror-hairline {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--line) 18%, rgba(244,243,239,.28) 50%, var(--line) 82%, transparent);
}

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background-color .4s, border-bottom-color .4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.35rem 0;
}

.nav-links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }

.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-dim);
  padding: 0.6rem 0.25rem;
  transition: color .25s;
}

.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
  overflow: hidden;
}

/* ===== 字标：镜面金属材质 ===== */

.wordmark {
  position: relative;
  z-index: 3;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(4.5rem, 16.5vw, 13rem);
  line-height: 1;
  letter-spacing: -0.005em;
  user-select: none;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
  will-change: transform;
}

/* 金属镜面：基材 + 可移动高光带 */
.wm-a, .wm-b {
  display: inline-block;
  background-image:
    linear-gradient(90deg,
      rgba(255,255,255,0) calc(var(--gx) - 7%),
      rgba(255,255,255,.85) var(--gx),
      rgba(255,255,255,0) calc(var(--gx) + 7%)),
    linear-gradient(180deg, #f7f6f3 0%, #c3c3cb 30%, #74747f 48%, #2c2c34 52%, #8f8f99 72%, #f2f1ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter .4s;
}

/* 右 TI：IT 的镜中倒影。
   I、T 均为左右对称字母，IT 的镜像视觉上就是 TI，
   因此无需翻转，直接以暗化材质呈现"倒影"感 */
.wm-b {
  filter: brightness(0.78) saturate(0.82);
}

/* 中间镜线 l */
.wm-m {
  display: inline-block;
  font-weight: 200;
  font-size: 0.6em;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(216,160,95,.5), 0 0 44px rgba(216,160,95,.22);
  animation: breathe 5s ease-in-out infinite;
  pointer-events: none;
}

/* 翻转彩蛋：rotateY 180° = 照镜子。回文，翻过去依然可读 */
.wordmark.flip { transform: rotateY(180deg); }

@keyframes breathe {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; text-shadow: 0 0 24px rgba(216,160,95,.75), 0 0 66px rgba(216,160,95,.32); }
}

.hero-hint {
  position: relative;
  z-index: 3;
  margin-top: clamp(1.6rem, 3vh, 2.4rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-align: center;
}

/* ===== 镜面地平线 + 倒影 ===== */

.hero-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36vh;
  pointer-events: none;
  z-index: 1;
}

/* 地平线：一道细细的亮线 */
.hero-floor::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,243,239,.4) 30%, rgba(244,243,239,.7) 50%, rgba(244,243,239,.4) 70%, transparent);
}

/* 倒影：字标的镜中投影 */
.hero-floor::after {
  content: "itlti";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) scaleY(-1);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(4.5rem, 16.5vw, 13rem);
  line-height: 1;
  color: transparent;
  background: linear-gradient(to bottom, rgba(244,243,239,.22), rgba(244,243,239,.02) 68%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 80%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 80%);
  filter: blur(1.2px);
}

.hero-tagline {
  position: relative;
  z-index: 3;
  margin-top: clamp(2rem, 4vh, 3rem);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}

.hero-tagline::before { content: "— "; color: var(--amber); }
.hero-tagline::after { content: " —"; color: var(--amber); }

/* ---------- 通用区块 ---------- */

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
}

.manifesto, .about { padding: clamp(6rem, 14vh, 10rem) clamp(1.25rem, 6vw, 5rem); }

.manifesto-inner, .about-inner { max-width: 72rem; margin: 0 auto; }

/* ---------- 理念 ---------- */

.manifesto { border-top: 1px solid var(--line-soft); }

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

.manifesto-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.manifesto-body p {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  margin-bottom: 1.4rem;
  max-width: 44ch;
}

.manifesto-body p:last-child { margin-bottom: 0; color: var(--ink); }

/* ---------- 项目 ---------- */

.mirrors { padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 6vw, 5rem); border-top: 1px solid var(--line-soft); }

.mirrors-head { max-width: 72rem; margin: 0 auto 3rem; }

.mirrors-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin: 0.6rem 0 0.8rem;
}

.mirrors-sub { color: var(--ink-dim); }

.mirror-list {
  list-style: none;
  max-width: 72rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 1.1fr) minmax(12rem, 1.6fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, padding-left .3s;
}

.row:hover { background: linear-gradient(90deg, transparent, var(--surface) 25%, var(--surface)); padding-left: 1rem; }

.row-domain {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  transition: color .3s;
}

.row:hover .row-domain { color: var(--amber); }

.row-name { color: var(--ink-dim); font-size: 0.95rem; }

.row-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.row-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: .85;
  box-shadow: 0 0 8px rgba(216,160,95,.6);
}

/* 倒影：hover 时行下方浮现镜像文字 —— 照一照才显影 */
.row::after {
  content: attr(data-domain);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transform: scaleY(-1);
  color: var(--ink);
  opacity: 0;
  transition: opacity .5s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 82%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 82%);
  pointer-events: none;
  z-index: 2;
}

.row:hover::after { opacity: 0.15; }

.row-more .row-status { color: var(--ink-faint); }
.row-more .row-status::before { background: var(--ink-faint); box-shadow: none; }
.row-more .row-domain { color: var(--ink-faint); }

/* ---------- 关于 ---------- */

.about { border-top: 1px solid var(--line-soft); }

.about-quote {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.65;
  font-weight: 500;
  color: var(--ink);
  max-width: 32ch;
  margin: 1.2rem 0 1.5rem;
}

.about-note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1.25rem, 6vw, 5rem);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.footer-brand { font-family: var(--font-mono); color: var(--ink); letter-spacing: 0.06em; }
.footer-link { font-family: var(--font-mono); font-size: 0.8rem; transition: color .3s; }
.footer-link:hover { color: var(--amber); }

/* ---------- 滚动显现 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 720px) {
  .manifesto-inner { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0.35rem; padding: 1.15rem 0.25rem; }
  .row-name { font-size: 0.9rem; }
  .row-status { margin-top: 0.2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 5rem; }
}

@media (max-width: 420px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
  .hero-hint { letter-spacing: 0.14em; }
}

/* ---------- 减少动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
