:root {
  color-scheme: light;
  --paper: #faf7f5;
  --ink: #050505;
  --muted: #77716c;
  --faint: rgba(0, 0, 0, 0.055);
  --line: #050505;
  --accent: #4f4943;
  --accent-soft: rgba(5, 5, 5, 0.09);
  --glass: rgba(250, 247, 245, 0.46);
  --panel: rgba(250, 247, 245, 0.82);
  font-family:
    "Inter", "MiSans", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  background: rgba(250, 247, 245, 0.38);
}

.nav {
  --nav-x: 50%;
  --nav-on: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 245, 0.86);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(150px 48px at var(--nav-x) 50%, rgba(5, 5, 5, calc(var(--nav-on) * 0.08)), transparent 72%),
    linear-gradient(90deg, transparent, rgba(5, 5, 5, calc(var(--nav-on) * 0.08)), transparent);
  pointer-events: none;
}

.nav::after {
  content: "";
  position: absolute;
  left: var(--nav-x);
  bottom: 0;
  width: 108px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  transform: translateX(-50%) scaleX(var(--nav-on));
  transition: transform 180ms ease;
}

.nav-cursor {
  position: absolute;
  left: var(--nav-x);
  top: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(5, 5, 5, 0.24);
  border-radius: 50%;
  opacity: var(--nav-on);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.brand,
.nav-note,
.nav-menu a {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.brand,
.nav-note {
  color: rgba(0, 0, 0, 0.62);
}

.nav-note {
  justify-self: end;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  gap: 8px;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.24);
}

.nav-menu a {
  padding: 10px 17px;
  transition:
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: #050505;
  color: #fff;
}

.brand:hover,
.brand:focus-visible,
.nav-note:hover,
.nav-note:focus-visible {
  opacity: 0.58;
  outline: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  outline: none;
}

.hero {
  position: relative;
  min-height: 486px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 245, 0.46);
  perspective: 1600px;
}

.flip,
.flip-inner,
.hero-face {
  min-height: 486px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 86px;
  background:
    linear-gradient(90deg, transparent, rgba(5, 5, 5, 0.07), transparent),
    linear-gradient(to top, rgba(250, 247, 245, 0.78), transparent);
  pointer-events: none;
}

.flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 740ms cubic-bezier(0.4, 0, 0.2, 1);
}

.flip.is-flipped .flip-inner {
  transform: rotateX(180deg);
}

.hero-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backface-visibility: hidden;
}

.hero-back {
  transform: rotateX(180deg);
}

.word-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.word-pattern::before {
  content:
    "T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E"
    "\A T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E"
    "\A T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E"
    "\A T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E"
    "\A T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E"
    "\A T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E   T Y Q   R O L E";
  position: absolute;
  left: -36px;
  top: 18px;
  color: var(--faint);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: 0.32em;
  line-height: 1.86;
  white-space: pre;
}

.word-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 50% 50%, rgba(250, 247, 245, 0.55), transparent 76%);
}

.invert::before {
  color: rgba(255, 255, 255, 0.12);
}

.invert::after {
  background: radial-gradient(closest-side at 50% 50%, rgba(0, 0, 0, 0.42), transparent 76%);
}

.hero-title {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto auto;
  gap: clamp(34px, 5vw, 78px);
  align-items: baseline;
  justify-content: center;
  width: min(1180px, calc(100% - 96px));
  margin: 0;
  color: var(--ink);
  font-size: clamp(68px, 7.2vw, 116px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  white-space: nowrap;
}

.hero-title span {
  display: block;
  text-align: center;
}

.reveal {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020304;
  clip-path: circle(var(--reveal-size, 0px) at var(--cursor-x, -300px) var(--cursor-y, -300px));
  overflow: hidden;
  will-change: clip-path;
}

.reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.08) 39%, transparent 40%),
    radial-gradient(circle at 58% 42%, rgba(255, 255, 255, 0.08), transparent 36%);
  opacity: 0.74;
  pointer-events: none;
}

.hero-title-cn {
  color: #fff;
  font-size: clamp(64px, 6.8vw, 108px);
  line-height: 1;
  z-index: 2;
}

.flip-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  height: 82px;
  background: transparent;
  color: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.reveal + .flip-zone {
  color: rgba(0, 0, 0, 0.24);
}

.about-text {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  padding: 44px 48px;
  border: 1px solid var(--line);
  background: rgba(250, 247, 245, 0.82);
}

.about-text p {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.75;
}

.about-text p + p {
  margin-top: 20px;
  color: var(--muted);
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 284px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 245, 0.56);
}

.show-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 284px;
  padding: 34px 36px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    rgba(250, 247, 245, 0.44);
  overflow: hidden;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.show-card:last-child {
  border-right: 0;
}

.show-card::before {
  content: "";
  position: absolute;
  inset: 20px 24px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.58), transparent 48%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18), transparent 52%);
  height: 1px;
  opacity: 0.62;
}

.show-card::after {
  content: attr(data-index);
  position: absolute;
  right: 28px;
  top: 24px;
  color: rgba(0, 0, 0, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.show-card:hover,
.show-card:focus-within {
  background:
    radial-gradient(circle at 78% 28%, rgba(5, 5, 5, 0.08), transparent 40%),
    rgba(250, 247, 245, 0.5);
}

.show-card > * {
  position: relative;
  z-index: 1;
}

.show-card span,
.section-head p,
.row-desc,
.statement-copy {
  color: var(--muted);
}

.show-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.show-card h2 {
  margin: 18px 0 10px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.08;
}

.show-card p {
  margin: 0;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.7;
}

.section-block,
.statement {
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.section-block {
  scroll-margin-top: 64px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  min-height: 228px;
  padding: 60px 82px;
  border-bottom: 1px solid var(--line);
}

.section-head h2,
.statement-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 5.4vw, 78px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.section-head p {
  max-width: 760px;
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.75;
}

.info-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(300px, 0.35fr) minmax(0, 1fr) 120px;
  align-items: center;
  width: 100%;
  min-height: 104px;
  padding: 22px 48px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: color 180ms ease;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 50%, rgba(255, 255, 255, 0.12), transparent 34%),
    #050505;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.info-row:hover,
.info-row:focus-visible {
  color: #fff;
  outline: none;
}

.info-row:hover::before,
.info-row:focus-visible::before {
  transform: scaleX(1);
}

.row-index {
  color: #999;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 24px;
  font-weight: 700;
}

.row-title {
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 850;
  line-height: 1.25;
}

.row-desc {
  font-size: 15px;
  line-height: 1.65;
}

.row-arrow {
  justify-self: end;
  font-size: 32px;
  font-weight: 300;
  transition: transform 180ms ease;
}

.info-row:hover .row-index,
.info-row:hover .row-desc,
.info-row:focus-visible .row-index,
.info-row:focus-visible .row-desc {
  color: rgba(255, 255, 255, 0.66);
}

.info-row:hover .row-arrow,
.info-row:focus-visible .row-arrow {
  transform: translateX(8px);
}

.statement {
  position: relative;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 60px;
  padding: 72px 80px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.055), transparent 38%),
    var(--glass);
  overflow: hidden;
}

.focus-note {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  max-width: 300px;
  margin: 28px 0 0;
  color: rgba(5, 5, 5, 0.45);
  text-align: left;
  transform: translateY(0);
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.focus-note::after {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 1px;
  height: 78px;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.46), transparent);
}

.focus-note span {
  grid-column: 2;
  display: block;
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.focus-note p {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.8;
}

.statement:hover .focus-note,
.statement:focus-within .focus-note {
  color: rgba(5, 5, 5, 0.72);
  transform: translateY(4px);
}

.statement-title {
  grid-column: 1;
  grid-row: 1;
}

.statement-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.statement-title span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.statement-title h2 {
  margin-top: 18px;
}

.statement-copy {
  display: grid;
  gap: 22px;
  max-width: 900px;
  font-size: 17px;
  line-height: 2;
}

.statement-copy p {
  margin: 0;
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
    height: 58px;
    padding: 0 20px;
  }

  .nav-menu {
    display: none;
  }

  .nav-cursor,
  .nav::after {
    display: none;
  }

  .brand,
  .nav-note {
    font-size: 13px;
  }

  .hero,
  .flip,
  .flip-inner,
  .hero-face {
    min-height: 300px;
  }

  .hero-title {
    width: min(350px, calc(100% - 32px));
    grid-template-columns: auto auto auto;
    gap: clamp(14px, 4vw, 22px);
    font-size: clamp(30px, 9.2vw, 46px);
    line-height: 1;
  }

  .hero-title-cn {
    gap: 8px;
    font-size: clamp(30px, 9vw, 44px);
  }

  .word-pattern::before {
    left: -48px;
    font-size: 34px;
    line-height: 1.7;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .show-card {
    min-height: 160px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 20px;
  }

  .show-card:last-child {
    border-bottom: 0;
  }

  .section-block {
    scroll-margin-top: 58px;
  }

  .section-head,
  .statement {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 42px 20px;
  }

  .statement {
    grid-template-rows: auto auto auto;
  }

  .statement-title {
    grid-column: 1;
    grid-row: 1;
  }

  .statement-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .section-head {
    min-height: auto;
  }

  .section-head h2,
  .statement-title h2 {
    font-size: 43px;
    white-space: normal;
  }

  .section-head p {
    font-size: 16px;
  }

  .info-row {
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    gap: 8px 14px;
    min-height: 86px;
    padding: 13px 20px;
  }

  .row-desc {
    grid-column: 2 / 4;
    font-size: 12px;
    line-height: 1.5;
  }

  .row-index {
    font-size: 16px;
  }

  .row-title {
    font-size: 20px;
  }

  .row-arrow {
    grid-column: 3;
    grid-row: 1;
    font-size: 28px;
  }

  .statement-copy {
    font-size: 14px;
    line-height: 1.9;
  }

  .focus-note {
    grid-column: 1;
    grid-template-columns: 1px minmax(0, 1fr);
    grid-row: 3;
    width: 100%;
    max-width: none;
    margin-top: 10px;
    text-align: left;
    color: rgba(5, 5, 5, 0.52);
  }

  .focus-note::after {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 62px;
  }

  .focus-note span,
  .focus-note p {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flip-inner,
  .info-row,
  .info-row::before,
  .row-arrow {
    transition: none;
  }
}
