:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #172820;
  --muted: #4f5e54;
  --line: #cbcec2;
  --forest: #1c2e25;
  --forest-line: #5d6d60;
  --brass: #cdae7a;
  --gutter: clamp(18px, 5vw, 82px);
  --section-space: clamp(58px, 8vw, 116px);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.frame { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 12px; left: 12px; padding: 10px 15px; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
section[id] { scroll-margin-top: 18px; }

.header-inner, .site-nav, .brand, .footer-inner { display: flex; align-items: center; }
.header-inner { min-height: 82px; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { gap: 10px; flex-shrink: 0; font-size: 17px; font-weight: 650; letter-spacing: .13em; }
.brand-mark { display: grid; place-items: center; }
.brand-mark img { display: block; }
.site-nav { gap: clamp(16px, 3vw, 42px); font-size: 13px; white-space: nowrap; }
.site-nav a, .footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a { position: relative; }
.site-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s cubic-bezier(.2,.75,.25,1);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-nav .nav-join { color: #685032; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 72px);
  padding-block: clamp(34px, 4.4vw, 68px) clamp(38px, 5vw, 75px);
}
.hero h1 {
  font-size: clamp(49px, 6.95vw, 100px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.hero-subtitle {
  margin-top: 19px;
  font-size: clamp(19px, 2.15vw, 30px);
  letter-spacing: .055em;
  line-height: 1.5;
}
.hero-description, .about-copy, .join-layout > p {
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
}
.hero-description { max-width: 23em; margin-top: 22px; text-wrap: pretty; }
.hero-description span { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 24px);
  min-height: 49px;
  padding: 5px 5px 5px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  transition: background-color .2s, border-color .2s, transform .23s cubic-bezier(.2,.75,.25,1);
}
.action-primary { background: var(--forest); color: var(--paper); }
.action-primary:focus-visible { outline-color: var(--ink); }
.action-primary:hover { background: #2d4536; }
.action-secondary { border-color: #b0b8a8; }
.action-secondary:hover { border-color: #44614e; background: #e9ece2; }
.action:hover { transform: translateY(-2px); }
.action:active { transform: translateY(1px); }
.action-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 3px;
  font-size: 18px;
  font-weight: 500;
  transition: transform .25s cubic-bezier(.2,.75,.25,1), background-color .2s;
}
.action-primary .action-icon { background: #ffffff18; }
.action-secondary .action-icon { background: #e6e9df; }
.action:hover .action-icon { transform: translate(1px, 1px); }
.action-primary:hover .action-icon { background: #ffffff2d; }

.hero-scene img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.44;
  object-fit: cover;
  background: #b3ae98;
}
.hero-scene figcaption, .interface-preview figcaption, .product-media figcaption, .gallery-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.hero-scene figcaption { color: var(--muted); }

h2 { font-size: clamp(34px, 4.1vw, 58px); font-weight: 610; line-height: 1.19; letter-spacing: -.04em; }
.about-layout, .join-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  align-items: baseline;
  gap: clamp(20px, 6vw, 92px);
}
.about-layout { padding-block: clamp(42px, 5.3vw, 76px); border-top: 1px solid var(--line); }
.about-copy p + p { margin-top: 9px; }
.section-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 28px; }
.section-intro > p { color: var(--muted); font-size: 15px; line-height: 1.85; }

.products { padding-block: var(--section-space); background: var(--forest); color: #f2f0e8; }
.products .section-intro > p { color: #cdd4ca; }
.product-overview {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
  margin-top: clamp(24px, 3.3vw, 48px);
  padding-block: clamp(25px, 4vw, 52px);
  border-block: 1px solid var(--forest-line);
}
.product-copy h3 { font-size: clamp(24px, 2.5vw, 36px); font-weight: 630; line-height: 1.35; text-wrap: balance; }
.product-copy p { max-width: 32em; margin-top: 10px; color: #cdd4ca; font-size: 15px; line-height: 1.9; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4.4vw, 62px) clamp(22px, 4vw, 56px);
  margin-top: clamp(22px, 4.5vw, 64px);
}
.product-entry {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--forest-line);
}
.product-entry:nth-child(even) { --delay: 75ms; }
.product-entry h3 { font-size: clamp(21px, 2.2vw, 30px); }
.product-entry .product-copy p { font-size: 14px; line-height: 1.8; }
.interface-preview, .product-media { min-width: 0; }
.interface-preview img, .product-media img { display: block; width: 100%; height: auto; }
.product-media img { border: 1px solid #c9d4c9; border-radius: 3px; background: #e1e9e1; }
.interface-preview figcaption, .product-media figcaption { color: #cdd4ca; }
.product-hardware {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
  padding-block: clamp(23px, 4vw, 46px) 0;
}
.product-hardware h3 { font-size: clamp(24px, 2.5vw, 36px); }
.product-hardware .product-media img { aspect-ratio: 1.65; object-fit: cover; border: 0; border-radius: 0; }

.operations-preview {
  display: grid;
  grid-template-rows: auto 1fr auto;
  aspect-ratio: 1128 / 768;
  padding: clamp(11px, 2.3vw, 29px);
  border-radius: 3px;
  background: #e6ede5;
  color: #20392b;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.operations-head, .operations-overview { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.operations-head { margin-bottom: clamp(8px, 1.5vw, 19px); }
.operations-head strong { font-size: clamp(13px, 1.38vw, 19px); }
.operations-head span { color: #4d6051; font-size: 10px; }
.operations-overview { align-items: stretch; margin-bottom: clamp(8px, 1.3vw, 16px); }
.operations-total, .operations-trend {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #d2dcd0;
  background: #f7f9f5;
  padding: clamp(7px, 1.2vw, 15px);
}
.operations-total span, .operations-trend span { color: #365441; font-size: clamp(9px, .9vw, 12px); }
.operations-total > strong { margin-block: 3px; font-size: clamp(19px, 2.5vw, 33px); line-height: 1.05; letter-spacing: -.045em; }
.operations-total small { color: #4b6553; font-size: clamp(8px, .75vw, 11px); }
.operations-bars {
  display: flex;
  align-items: end;
  gap: 7%;
  height: clamp(26px, 3.5vw, 53px);
  margin-top: 4px;
  border-bottom: 1px solid #9db29f;
}
.operations-bars i { flex: 1; height: var(--level); background: #70947a; }
.operations-bars i:last-child { background: #2b6348; }
.operations-preview table { width: 100%; border-collapse: collapse; background: #f7f9f5; font-size: clamp(9px, .9vw, 13px); }
.operations-preview th, .operations-preview td { padding: clamp(5px, .62vw, 9px); border-bottom: 1px solid #d9e2d7; text-align: right; white-space: nowrap; }
.operations-preview th:first-child { text-align: left; }
.operations-preview thead { background: #d6e1d4; }

.projects { padding-block: var(--section-space); }
.project-list { margin-top: clamp(24px, 4vw, 54px); border-top: 1px solid var(--line); }
.project {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(12px, 4vw, 62px);
  padding-block: clamp(20px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}
.project h3 { font-size: clamp(21px, 2.3vw, 30px); font-weight: 620; line-height: 1.35; }
.project-detail p { max-width: 44em; color: var(--muted); font-size: clamp(15px, 1.12vw, 16px); line-height: 1.95; text-wrap: pretty; }
.project-detail p + p { margin-top: 11px; }

.life .frame { border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 82px) var(--section-space); }
.gallery-note { margin: 17px 0 14px; color: var(--muted); }
.space-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 44px);
}
.space-photo:nth-child(even) { --delay: 95ms; }
.photo-frame { overflow: clip; background: #d8d6c9; }
.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.75,.25,1);
}
@media (hover: hover) {
  .space-photo:hover img { transform: scale(1.032); }
}
.space-photo figcaption { padding-top: 12px; }
.space-photo h3 { font-size: clamp(19px, 2.05vw, 27px); font-weight: 620; line-height: 1.3; }
.space-photo p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }

#game-covers, #front-desk { scroll-margin-top: 20px; }

.join { background: #e7eadf; }
.join-layout { padding-block: clamp(42px, 6vw, 78px); }
.site-footer { background: #e7eadf; }
.footer-inner { min-height: 69px; justify-content: space-between; gap: 16px; border-top: 1px solid #bbc3b7; font-size: 13px; }
.footer-brand { letter-spacing: .13em; font-weight: 650; }

.back-to-top { gap: 9px; }
.back-to-top span { transition: transform .2s; }
.back-to-top:hover span, .back-to-top:focus-visible span { transform: translateY(-3px); }

@media screen and (prefers-reduced-motion: no-preference) {
  .motion-ready [data-hero-copy] > * { animation: hero-rise .7s cubic-bezier(.2,.75,.25,1) both; }
  .motion-ready [data-hero-copy] > :nth-child(2) { animation-delay: 70ms; }
  .motion-ready [data-hero-copy] > :nth-child(3) { animation-delay: 130ms; }
  .motion-ready [data-hero-copy] > :nth-child(4) { animation-delay: 190ms; }
  .motion-ready [data-hero-photo] img { animation: photo-open .9s cubic-bezier(.2,.75,.25,1) both; }
  .motion-ready [data-reveal] {
    transition: opacity .55s ease-out, transform .68s cubic-bezier(.2,.75,.25,1);
    transition-delay: var(--delay, 0ms);
  }
  .motion-ready [data-reveal]:not(.is-visible):not(:focus-within) { opacity: 0; transform: translateY(16px); }
  .motion-ready [data-reveal]:focus-within { transition-delay: 0ms; }
  .motion-ready .space-photo.is-visible .photo-frame { animation: photo-open .78s cubic-bezier(.2,.75,.25,1) var(--delay, 0ms) both; }
  .motion-ready .product-entry.is-visible .operations-bars i { transform-origin: bottom; animation: chart-grow .7s cubic-bezier(.2,.75,.25,1) .15s both; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes photo-open {
  from { clip-path: inset(0 0 9% 0); opacity: .3; }
  to { clip-path: inset(0); opacity: 1; }
}
@keyframes chart-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 760px) {
  .header-inner { min-height: 0; flex-direction: column; gap: 3px; padding-top: 11px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand-mark img { width: 31px; height: 31px; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 0 clamp(10px, 3.6vw, 25px); font-size: 12px; }
  .hero-copy, .about, .products, .projects, .life, .join { text-align: center; }
  .hero-layout, .about-layout, .join-layout, .product-overview, .product-hardware, .project { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { gap: 25px; padding-block: 40px 28px; }
  .hero h1 { font-size: clamp(48px, 12.6vw, 76px); }
  .hero-subtitle { margin-top: 11px; }
  .hero-description { margin: 14px auto 0; max-width: 23em; }
  .hero-actions { justify-content: center; margin-top: 13px; }
  .hero-scene { text-align: center; }
  .hero-scene img { aspect-ratio: 1.5; }
  .about-layout, .join-layout { gap: 13px; }
  .about-copy, .join-layout > p, .product-copy p, .project-detail p { margin-inline: auto; }
  .section-intro { flex-direction: column; align-items: center; gap: 9px; }
  .product-overview { gap: 20px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .product-entry { grid-template-rows: auto auto; }
  .product-entry:nth-child(even) { --delay: 0ms; }
  .interface-preview, .product-media { width: min(100%, 530px); margin-inline: auto; }
  .space-gallery { column-gap: 14px; }
  .space-photo:nth-child(even) { --delay: 0ms; }
}
@media (max-width: 520px) {
  .space-gallery { grid-template-columns: minmax(0, 1fr); }
  .action { padding-inline-start: 11px; font-size: 13px; }
  .action-icon { width: 31px; height: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
