:root {
  color-scheme: dark;
  --ink: #0b0d0c;
  --ink-soft: #111411;
  --panel: #161a17;
  --line: rgba(229, 233, 226, 0.16);
  --line-strong: rgba(229, 233, 226, 0.28);
  --text: #f1f1eb;
  --muted: #b8beb6;
  --green: #8fbf75;
  --green-dark: #5e8350;
  --pink: #d6a0ad;
  --shell: min(1200px, calc(100vw - 80px));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(4, 6, 5, 0.78), rgba(4, 6, 5, 0.22));
}

.nav-shell {
  width: var(--shell);
  height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 13px;
  line-height: 1;
  text-decoration: none;
}

.brand-wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-wordmark span { color: var(--green); }

.brand-cn {
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

nav { display: flex; gap: clamp(24px, 4vw, 54px); }

nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease;
}

nav a:hover { color: #fff; }

.hero {
  position: relative;
  min-height: 700px;
  height: 92svh;
  max-height: 980px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media { z-index: -3; }

.hero-media img {
  object-fit: cover;
  object-position: 54% 47%;
  filter: saturate(0.85) contrast(1.05);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 6, 5, 0.95) 0%, rgba(4, 6, 5, 0.78) 35%, rgba(4, 6, 5, 0.24) 67%, rgba(4, 6, 5, 0.48) 100%),
    linear-gradient(0deg, rgba(4, 6, 5, 0.92) 0%, transparent 43%, rgba(4, 6, 5, 0.16) 75%);
}

.hero-content {
  padding-bottom: clamp(76px, 10vh, 112px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero h1 span,
.section-heading h2 span { display: block; }

.hero h1 {
  max-width: none;
  font-size: clamp(64px, 5.3vw, 80px);
}

.hero-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.85;
}

.hero-note {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 164px;
  padding: 12px 19px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: #0a0d09;
  font-weight: 700;
}

.button-primary:hover { background: #a3cf8c; border-color: #a3cf8c; }

.button-secondary { background: rgba(14, 17, 15, 0.56); }

.button-secondary:hover { border-color: rgba(255, 255, 255, 0.56); background: rgba(255, 255, 255, 0.08); }

.scroll-cue {
  position: absolute;
  right: max(28px, calc((100vw - min(1200px, calc(100vw - 80px))) / 2));
  bottom: 0;
  height: 128px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.scroll-cue i { width: 1px; height: 62px; background: rgba(255, 255, 255, 0.4); }

.section { padding: clamp(100px, 11vw, 156px) 0; }

.capability { background: var(--ink-soft); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(50px, 9vw, 130px);
  align-items: end;
}

.section-heading h2 { max-width: none; font-size: clamp(44px, 4.2vw, 64px); }

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.process-grid {
  margin: 80px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.process-grid li {
  position: relative;
  min-height: 310px;
  padding: 22px 26px 30px 0;
  border-right: 1px solid var(--line);
}

.process-grid li:not(:first-child) { padding-left: 26px; }
.process-grid li:last-child { border-right: 0; }

.step-number {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.step-mark {
  width: 8px;
  height: 8px;
  margin: 46px 0 24px;
  border: 1px solid var(--green);
  background: var(--green-dark);
  transform: rotate(45deg);
}

.process-grid h3 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process-grid p {
  margin: 0;
  color: #9fa69e;
  font-size: 14px;
  line-height: 1.85;
}

.education {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(143, 191, 117, 0.025), transparent 24%),
    var(--ink);
}

.education-heading { align-items: start; }

.application-grid {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.application-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #131613;
}

.card-visual {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #101310;
}

.card-index {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.card-visual picture,
.card-visual img { width: 100%; height: 100%; }

.card-visual img {
  object-fit: contain;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.application-card:hover .card-visual img { transform: scale(1.025); }

.card-visual-proton img { padding: 52px 22px 14px; }
.card-visual-system img { padding: 48px 8px 2px; }

.card-visual-device {
  background: #292d2a;
}

.card-visual-device img {
  width: 112%;
  max-width: none;
  margin-left: -6%;
  object-fit: cover;
  object-position: 50% 46%;
  mix-blend-mode: screen;
}

.card-content { min-height: 248px; padding: 31px 30px 36px; }

.card-content h3 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.card-content p { margin: 0; color: #a8aea7; font-size: 14px; line-height: 1.85; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #080a09;
  color: #969c95;
}

.footer-grid {
  min-height: 220px;
  padding-block: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 36px 40px;
}

.footer-grid p { margin: 0; }

.footer-brand { color: var(--text); font-size: 19px; font-weight: 740; letter-spacing: 0.18em; }

.footer-brand + p { margin-top: 9px; font-size: 13px; }

.footer-company { color: #c5cac3; font-size: 14px; text-align: right; }

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  color: #b6bbb4;
  font-size: 13px;
  text-align: center;
}

.footer-meta a { color: #d3d7d1; text-underline-offset: 4px; }

@media (max-width: 1024px) {
  :root { --shell: min(100% - 56px, 1200px); }
  .section-heading { grid-template-columns: 1fr; gap: 34px; }
  .section-heading > p { max-width: 700px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid li:nth-child(2) { border-right: 0; }
  .process-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .process-grid li:nth-child(3) { padding-left: 0; }
  .application-grid { grid-template-columns: 1fr; }
  .application-card { display: grid; grid-template-columns: 1fr 1fr; }
  .card-content { min-height: 330px; display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 36px); }
  .nav-shell { height: 68px; }
  .brand { gap: 9px; }
  .brand-wordmark { font-size: 17px; }
  .brand-cn { padding-left: 9px; font-size: 12px; letter-spacing: 0.04em; }
  nav { gap: 18px; }
  nav a { font-size: 12px; letter-spacing: 0.02em; }
  .hero { min-height: 720px; height: 94svh; max-height: 860px; }
  .hero-media img { object-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4, 6, 5, 0.94), rgba(4, 6, 5, 0.46)), linear-gradient(0deg, rgba(4, 6, 5, 0.94), transparent 55%); }
  .hero-content { padding-bottom: 50px; }
  .hero h1 { font-size: clamp(40px, 11.2vw, 46px); }
  .hero-lead { margin-top: 24px; font-size: 16px; line-height: 1.72; }
  .hero-note { font-size: 12px; line-height: 1.65; }
  .hero-actions { margin-top: 25px; }
  .button { min-width: 0; padding: 11px 15px; font-size: 12px; }
  .scroll-cue { display: none; }
  .section { padding: 86px 0; }
  .section-heading h2 { font-size: 39px; }
  .section-heading > p { font-size: 15px; }
  .process-grid { margin-top: 54px; grid-template-columns: 1fr; }
  .process-grid li,
  .process-grid li:not(:first-child),
  .process-grid li:nth-child(3) { min-height: 0; padding: 23px 0 30px; border-right: 0; border-top: 1px solid var(--line); }
  .process-grid li:first-child { border-top: 0; }
  .step-mark { margin: 28px 0 18px; }
  .application-grid { margin-top: 52px; }
  .application-card { display: block; }
  .card-visual { height: 280px; }
  .card-content { min-height: 0; padding: 27px 24px 31px; }
  .footer-grid { min-height: 280px; grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .footer-company { text-align: left; }
  .footer-meta { grid-column: 1; gap: 8px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
