/* 昔塔麦得 · 公司主页。深色版式，车间照片按开工亮度。 */

:root {
  --bg: #090a0c;
  --ink: #f4f1ea;
  --muted: #a39e94;
  --line: rgba(244, 241, 234, 0.14);
  --paper: #f3efe6;
  --paper-ink: #14161a;
  --danger: #e7b2a4;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
}
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 20px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: 72px; display: flex; align-items: center; gap: 28px;
  padding: 0 28px;
  background: linear-gradient(to bottom, rgba(9,10,12,0.72), rgba(9,10,12,0));
}
.site-head.scrolled {
  background: rgba(9, 10, 12, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.08em; }
.brand img { width: 22px; height: auto; }
.site-head .brand { font-size: 22px; }
.site-head .brand img { width: 28px; }
.nav { display: flex; gap: 26px; margin-left: auto; color: var(--muted); font-size: 15px; }
.nav a.active, .nav a:hover { color: var(--ink); }
.head-cta { border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: 15px; }
.burger { display: none; width: 42px; height: 42px; margin-left: auto; position: relative; }
.burger i, .burger i::before, .burger i::after {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); content: "";
}
.burger i { top: 20px; }
.burger i::before { top: -7px; }
.burger i::after { top: 7px; }

.film { position: relative; height: 100vh; background: #d7d7d4; overflow: hidden; }
.film video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #d7d7d4;
}

.vision, .sec-intro, .start, .casepage {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}
.vision { padding: 18vh 0 10vh; }
.vision h1, .casepage h1 { font-size: clamp(36px, 4.6vw, 68px); max-width: 16em; }
.lede { margin-top: 28px; max-width: 36em; color: var(--muted); font-size: 21px; line-height: 1.7; text-wrap: pretty; }

.sec-intro { padding: 8vh 0 4vh; }
.sec-intro h2, .partners h2, .start h2, .casepage h1 {
  font-size: clamp(36px, 4.4vw, 64px);
}
.sec-intro h2.eyebrow {
  font-size: 16px; font-weight: 400; letter-spacing: 0.14em;
  line-height: 1.4; color: var(--muted); margin: 0;
}

.case {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 48px;
  align-items: end;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.case img { width: 100%; height: min(62vh, 640px); object-fit: cover; }
.case-copy span { display: block; color: var(--muted); letter-spacing: 0.14em; font-size: 13px; }
.case h3 { margin-top: 12px; font-size: clamp(30px, 2.8vw, 44px); }
.case p { margin-top: 14px; color: var(--muted); font-size: 19px; max-width: 20em; }
.case em { display: inline-block; margin-top: 22px; font-style: normal; border-bottom: 1px solid currentColor; }

.partners {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 8vh 28px;
}
.partners-inner {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.partners .eyebrow { color: #6d6860; }
.partners h2 { font-size: clamp(32px, 3vw, 44px); }
.partners-copy { min-width: 0; }
.team-note { margin-top: 20px; max-width: 26em; color: #5c574f; font-size: 18px; overflow-wrap: anywhere; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 56px; margin-top: 36px; justify-content: flex-end; }
.logos img { height: 36px; width: auto; }
.logos .is-square { height: 52px; }

.home-certs {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 8vh 0 0;
}
.home-certs .eyebrow { margin: 0 0 18px; }
.cert-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cert-strip .cert-thumb { padding: 5px; border: 1px solid var(--line); background: var(--paper); }
.cert-strip img { width: 100%; height: auto; display: block; }

.start {
  width: min(1100px, calc(100% - 48px));
  padding: 14vh 0 12vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.start h2 { font-size: clamp(32px, 3.4vw, 48px); }
.start-copy p:not(.eyebrow):not(.team-line) { margin-top: 22px; font-size: 18px; line-height: 1.7; }
.team-line { margin-top: 22px; color: var(--muted); max-width: 26em; font-size: 14px; }
.field { margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
label b { color: var(--ink); font-weight: 500; }
input, select, textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--ink); }
::placeholder { color: #6b665e; opacity: 1; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: var(--danger); }
.err { color: var(--danger); font-size: 12px; }
.field.invalid .err { display: block; margin-top: 6px; }
select option { color: #14161a; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 22px; color: var(--muted); font-size: 14px; }
.check input { width: auto; margin-top: 4px; }
.check a { border-bottom: 1px solid currentColor; }
.check.invalid { color: var(--danger); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-text { padding: 0; min-height: 0; border-bottom: 1px solid currentColor; }
.form-done { display: none; }
.form-done h3 { font-size: 40px; }
.form-done p { margin: 12px 0 22px; color: var(--muted); }
.form-card.is-done form { display: none; }
.form-card.is-done .form-done { display: block; }

.site-foot { border-top: 1px solid var(--line); padding: 32px 28px 28px; }
.foot-top, .foot-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-top nav { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.foot-bottom { margin-top: 24px; color: var(--muted); font-size: 13px; }

.casepage { padding: 18vh 0 8vh; }
.casepage .hero-img { width: min(1480px, calc(100% - 48px)); height: min(68vh, 720px); object-fit: cover; margin: 36px auto 0; }
.beats {
  width: min(1100px, calc(100% - 48px));
  margin: 8vh auto 10vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.beats h2 { font-size: 28px; }
.beats p { margin-top: 12px; color: var(--muted); }
.back { display: inline-block; margin-top: 28px; border-bottom: 1px solid currentColor; }

section { scroll-margin-top: 84px; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 0 0; margin: 0; padding: 28px;
    background: rgba(9,10,12,0.96);
    flex-direction: column; gap: 22px; font-size: 28px;
    opacity: 0; pointer-events: none;
  }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  .head-cta { display: none; }
  .burger { display: block; }
  .case, .start, .beats { grid-template-columns: 1fr; }
  .case img { height: 52vh; }
  .vision, .sec-intro, .start, .casepage, .beats { width: auto; margin-left: 24px; margin-right: 24px; }
  .case { width: auto; margin-left: 24px; margin-right: 24px; }
  .casepage .hero-img { width: auto; margin-left: 24px; margin-right: 24px; height: 46vh; }
  .row2 { grid-template-columns: 1fr; }
  .partners { padding: 8vh 24px; }
  .partners-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .partners .logos { justify-content: flex-start; }
  .film { height: 72vh; }
}

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

@media (max-width: 900px) {
  .home-certs { width: calc(100% - 48px); padding-top: 7vh; }
  .cert-strip { display: flex; overflow-x: auto; gap: 10px; margin-right: -24px; padding-right: 24px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .cert-strip .cert-thumb { flex: 0 0 190px; scroll-snap-align: start; }
}
