:root {
  --ink: #2c2c2a;
  --cream: #faf7f2;
  --sand: #d9b08c;
  --amber: #b45309;
  --terra: #8c4a2f;
  --muted: #5f5e5a;
  --line: rgba(44, 44, 42, 0.12);
  --white: #ffffff;
  --header: 76px;
  --max: 1120px;
  --sans: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --num: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea { font-family: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow--sand { color: var(--sand); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
  padding: 0 28px;
  background: rgba(250, 247, 242, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header--overlay {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(44, 44, 42, 0.55), rgba(44, 44, 42, 0));
  border-bottom-color: transparent;
  color: var(--cream);
}

.site-header--overlay.is-scrolled {
  position: fixed;
  background: rgba(250, 247, 242, 0.96);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 140px;
}

.brand-mark {
  width: 3px;
  height: 34px;
  background: var(--amber);
  flex: none;
}

.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.brand-en {
  display: block;
  margin-top: 3px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.site-header--overlay:not(.is-scrolled) .brand-en { color: var(--sand); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav, .langs {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a, .langs a {
  text-decoration: none;
  font-size: 14px;
}

.nav a { letter-spacing: 0.06em; }

.nav a[aria-current="page"] {
  color: var(--amber);
  font-weight: 700;
}

.site-header--overlay:not(.is-scrolled) .nav a[aria-current="page"] { color: var(--sand); }

.langs {
  padding-left: 22px;
  border-left: 1px solid var(--line);
  gap: 14px;
}

.site-header--overlay:not(.is-scrolled) .langs { border-left-color: rgba(250, 247, 242, 0.28); }

.langs a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-header--overlay:not(.is-scrolled) .langs a { color: rgba(250, 247, 242, 0.72); }

.langs a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
}

.site-header--overlay:not(.is-scrolled) .langs a[aria-current="true"] { color: var(--white); }

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 6px 12px;
  letter-spacing: 0.12em;
  font-size: 13px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--ink);
  overflow: hidden;
}

.hero-photo, .hero-video, .page-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo, .hero-video { object-position: center 40%; }

.hero-video {
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(44, 44, 42, 0.88) 0%, rgba(44, 44, 42, 0.72) 42%, rgba(44, 44, 42, 0.18) 100%),
    linear-gradient(to top, rgba(44, 44, 42, 0.55), transparent 40%);
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 72px;
  padding-top: calc(var(--header) + 48px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 108px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero-sub {
  margin: 18px 0 0;
  color: var(--cream);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.hero-en {
  margin: 22px 0 0;
  color: var(--sand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 28px 0;
  background: var(--amber);
}

.hero-lead {
  margin: 0;
  max-width: 28em;
  color: var(--sand);
  font-size: 16px;
  line-height: 1.9;
}

/* About band — slide 3 */

.about-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 520px;
  background: var(--ink);
  color: var(--cream);
}

.about-copy {
  padding: 88px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h2 {
  margin: 8px 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.about-copy p { margin: 0; color: var(--sand); font-size: 18px; max-width: 16em; }

.about-copy .about-index {
  margin: 0;
  max-width: none;
  color: var(--amber);
  font-family: var(--num);
  font-size: clamp(72px, 8vw, 112px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.about-visual { position: relative; min-height: 360px; }

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Profile */

.section { padding: 96px 0; }

.section-head { margin-bottom: 40px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0.04em;
}

.profile {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.profile-photo { position: relative; }

.profile-photo img { width: 100%; height: 460px; object-fit: cover; object-position: center 30%; }

.year-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 16px 18px 14px;
  background: rgba(44, 44, 42, 0.88);
  color: var(--cream);
}

.year-badge strong {
  display: block;
  font-family: var(--num);
  font-size: 42px;
  font-weight: 300;
  color: var(--sand);
  line-height: 1;
}

.year-badge span { font-size: 13px; letter-spacing: 0.14em; }

.kicker {
  margin: 0 0 10px;
  color: var(--terra);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.profile-copy p { margin: 0 0 16px; color: var(--ink); }
.profile-copy .kicker { color: var(--terra); margin-bottom: 10px; }

.profile-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-stat b {
  font-family: var(--num);
  font-size: 72px;
  font-weight: 300;
  color: var(--amber);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.profile-stat span { color: var(--terra); letter-spacing: 0.12em; }

/* Founders */

.founders { background: var(--cream); }

.lede { max-width: 46em; margin: 0 0 28px; }

.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0 36px;
}

.node {
  padding: 22px 18px;
  text-align: center;
  color: var(--white);
}

.node strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: 0.08em; }
.node span { display: block; margin-top: 4px; font-size: 13px; opacity: 0.9; }
.node--terra { background: var(--terra); }
.node--sand { background: #c49a78; color: var(--ink); }
.node--amber { background: var(--amber); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  padding: 28px 24px 26px;
  border-top: 4px solid var(--terra);
  box-shadow: 0 14px 36px rgba(44, 44, 42, 0.05);
}

.card:nth-child(2) { border-top-color: var(--sand); }
.card:nth-child(3) { border-top-color: var(--amber); }

.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: 0.04em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.quote-line {
  margin: 28px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--terra);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Close — slide 11 */

.close {
  background: var(--terra);
  color: var(--cream);
  padding: 88px 0 72px;
}

.close-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: end;
}

.close-kicker { margin: 0 0 8px; color: var(--sand); letter-spacing: 0.12em; }

.close-num {
  margin: 0;
  font-family: var(--num);
  font-size: clamp(120px, 16vw, 200px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--white);
}

.close-unit { margin: 8px 0 0; font-size: 28px; letter-spacing: 0.14em; }

.pillars { display: grid; gap: 12px; }

.pillar {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--sand);
}

.pillar h3 { margin: 0 0 4px; font-size: 18px; color: var(--white); }
.pillar p { margin: 0; color: var(--sand); font-size: 14px; }

.close-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(217, 176, 140, 0.45);
}

.close-cta h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: 0.06em; }
.close-cta p { margin: 0; color: var(--sand); letter-spacing: 0.08em; font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.btn:hover { background: var(--white); }

.btn--amber { background: var(--amber); color: var(--white); }
.btn--amber:hover { background: #9a4708; }

/* Page hero */

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--ink);
  overflow: hidden;
}

.page-hero-photo { object-position: center 45%; }

.page-hero .hero-scrim {
  background: linear-gradient(90deg, rgba(44, 44, 42, 0.88), rgba(44, 44, 42, 0.35));
}

.page-hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 56px;
  padding-top: 72px;
}

.page-hero--plain {
  min-height: 280px;
  background:
    linear-gradient(100deg, rgba(44, 44, 42, 0.2), transparent 40%),
    var(--ink);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: 0.08em;
}

.page-hero .lede { color: var(--sand); margin-top: 16px; }

/* Products */

.band { background: var(--white); }

.product-block + .product-block { border-top: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split img { width: 100%; height: 420px; object-fit: cover; }

.split--flip { grid-template-columns: 0.95fr 1.05fr; }
.split--flip .split-copy { order: 2; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }

.spec {
  background: var(--white);
  padding: 20px 18px;
  border-top: 3px solid var(--terra);
}

.spec:nth-child(2) { border-top-color: var(--amber); }
.spec h3 { margin: 0 0 6px; font-size: 22px; color: var(--terra); letter-spacing: 0.06em; }
.spec:nth-child(2) h3 { color: var(--amber); }
.spec .en-label { margin: 0 0 8px; font-weight: 700; }
.spec p { margin: 0; color: var(--muted); font-size: 14px; }
.spec .en-label { color: var(--ink); font-size: 15px; font-weight: 700; }

.callout {
  margin: 22px 0 0;
  color: var(--terra);
  font-weight: 700;
}

.memory-cards { margin-top: 8px; }
.memory-photo { margin-top: 28px; }
.memory-photo img { width: 100%; height: 380px; object-fit: cover; object-position: center 60%; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 22px 16px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.steps li:nth-child(2) { background: var(--amber); }
.steps li:nth-child(3) { background: var(--terra); }

.steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-weight: 400;
}

.wafer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.wafer-grid img { width: 100%; height: 360px; object-fit: cover; }

/* Contact */

.contact-note {
  margin: 0 0 28px;
  padding: 12px 14px;
  background: rgba(217, 176, 140, 0.35);
  color: var(--ink);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.offices { display: grid; gap: 14px; }

.office {
  background: var(--white);
  padding: 20px 20px 16px;
  border-left: 3px solid var(--amber);
}

.office h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: 0.06em; }
.office p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.office a { color: var(--terra); }

.form {
  background: var(--white);
  padding: 28px 24px;
  box-shadow: 0 14px 36px rgba(44, 44, 42, 0.05);
}

.form h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: 0.06em; }
.form > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: 13px; letter-spacing: 0.06em; }

.field input, .field textarea {
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 12px 12px;
  font-size: 15px;
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  border-color: transparent;
}

.form-note {
  margin: 14px 0 0;
  color: var(--terra);
  font-weight: 700;
}

.map-placeholder {
  margin-top: 28px;
  min-height: 180px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(44, 44, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 44, 42, 0.04) 1px, transparent 1px),
    var(--cream);
  background-size: 28px 28px;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.16em;
}

/* Language placeholder */

.lang-main {
  min-height: calc(100svh - 220px);
  display: grid;
  place-items: center;
  padding: 72px 20px;
}

.lang-card {
  width: min(560px, 100%);
  background: var(--white);
  padding: 40px 36px;
  border-top: 4px solid var(--amber);
}

.lang-card h1 { margin: 0 0 12px; font-size: 36px; letter-spacing: 0.06em; }
.lang-card p { margin: 0 0 12px; color: var(--muted); }
.lang-card .eyebrow { margin-bottom: 14px; color: var(--amber); }
.lang-card .btn { margin-top: 10px; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: 36px 0 28px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.site-footer strong {
  display: block;
  color: var(--cream);
  letter-spacing: 0.14em;
  font-size: 16px;
}

.site-footer .en {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.site-footer .fine {
  margin: 18px 0 0;
  color: rgba(217, 176, 140, 0.75);
  font-size: 12px;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--cream); text-decoration: none; font-size: 14px; letter-spacing: 0.06em; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .header-tools {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 20px 22px;
    background: var(--cream);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .header-tools.is-open { display: flex; }

  .nav, .langs { flex-direction: column; align-items: flex-start; gap: 12px; }
  .langs { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }

  .site-header--overlay:not(.is-scrolled) .langs a,
  .site-header--overlay:not(.is-scrolled) .nav a { color: var(--ink); }
  .site-header--overlay:not(.is-scrolled) .nav a[aria-current="page"],
  .langs a[aria-current="true"] { color: var(--amber); }

  .about-band, .profile, .split, .split--flip, .close-grid, .contact-grid, .wafer-grid {
    grid-template-columns: 1fr;
  }

  .split--flip .split-copy { order: 0; }
  .about-copy { padding: 56px 24px; }
  .cards, .triad, .pair, .fields { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%); }
  .close-cta, .footer-row { flex-direction: column; align-items: flex-start; }
  .profile-photo img, .split img, .memory-photo img, .wafer-grid img { height: 280px; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .site-header { padding: 0 16px; }
  .hero-inner, .page-hero-inner { width: min(var(--max), calc(100% - 32px)); }
  .section { padding: 64px 0; }
  .hero h1 { letter-spacing: 0.04em; }
}

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