:root {
  --ink: #06080b;
  --paper: #f3f4f0;
  --white: #f7f8fb;
  --muted: #a7adb7;
  --line: #c8ccd0;
  --dark-line: rgba(247, 248, 251, .24);
  --accent: #6c8cff;
  --accent-light: #3552b8;
  --alert: #e9c86a;
  --max: 1540px;
  --pad: clamp(22px, 5vw, 78px);
  --display: "Inter Tight", "Arial Narrow", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  --body: "Inter", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font: 16px/1.68 var(--body); }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: var(--accent); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; }
.dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--alert); }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; color: var(--ink); background: var(--white); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.edge-marker { position: fixed; z-index: 60; inset: 0 0 0 auto; display: grid; grid-template-columns: repeat(4, 2px); width: 8px; pointer-events: none; }
.edge-marker i { display: block; transform-origin: top; transform: scaleY(var(--progress, 0)); transition: transform .16s linear; }
.edge-marker i:nth-child(1) { background: var(--accent); }
.edge-marker i:nth-child(2) { background: #a4b5ff; }
.edge-marker i:nth-child(3) { background: var(--alert); }
.edge-marker i:nth-child(4) { background: var(--ink); }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 8px; height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); color: var(--white); border-bottom: 1px solid rgba(247,248,251,.26); transition: color .22s ease, background-color .22s ease, border-color .22s ease; }
.site-header.scrolled, .site-header.menu-active { color: var(--ink); background: rgba(243,244,240,.96); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 14px; letter-spacing: .08em; }
.brand-copy small { margin-top: 6px; font: 9px/1 var(--mono); letter-spacing: .14em; opacity: .72; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 46px); }
.site-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.site-header.scrolled .site-nav a::after, .site-header.menu-active .site-nav a::after { background: var(--accent-light); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a span { color: var(--accent); font: 10px/1 var(--mono); }
.site-header.scrolled .site-nav a span, .site-header.menu-active .site-nav a span { color: var(--accent-light); }
.site-nav .nav-action { min-height: 44px; padding: 0 18px; color: var(--ink); background: var(--white); }
.site-header.scrolled .nav-action, .site-header.menu-active .nav-action { color: var(--white); background: var(--ink); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: 6px; color: inherit; background: transparent; border: 0; cursor: pointer; }
.menu-icon, .menu-icon::after { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .22s ease; content: ""; }
.menu-icon::after { transform: translateY(7px); }
.menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-90deg); }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,.36); }
.hero-rule { position: absolute; top: 80px; right: 21%; bottom: 0; width: 1px; background: rgba(247,248,251,.24); }
.hero-copy { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; max-width: var(--max); margin: 0 auto; padding: 126px var(--pad) clamp(48px, 8vh, 98px); }
.hero h1 { max-width: 920px; margin: 0; font: 850 clamp(66px, 12vw, 186px)/.83 var(--display); letter-spacing: -.07em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 span:last-child { margin-left: clamp(34px, 9vw, 152px); color: transparent; -webkit-text-stroke: 1.5px rgba(247,248,251,.9); }
.hero-lead { max-width: 600px; margin: clamp(32px, 5vh, 68px) 0 0; color: rgba(247,248,251,.84); font-size: clamp(16px, 1.45vw, 20px); }
.line-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; width: max-content; min-height: 48px; margin-top: 30px; padding-bottom: 8px; border-bottom: 2px solid currentColor; font-weight: 700; text-decoration: none; }
.line-link svg, .form-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.line-link:hover svg, .form-action button:hover svg { transform: translateX(4px); }
.line-link svg, .form-action svg { transition: transform .22s ease; }
.light { color: var(--white); }
.hero-meta { position: absolute; z-index: 2; top: 108px; left: var(--pad); right: calc(var(--pad) + 24px); display: flex; justify-content: space-between; font: 10px/1 var(--mono); letter-spacing: .16em; color: rgba(247,248,251,.7); }
.hero-index { position: absolute; z-index: 2; right: 36px; bottom: 54px; display: grid; text-align: center; font: 11px/1 var(--mono); }
.hero-index b { padding-bottom: 44px; border-bottom: 1px solid rgba(247,248,251,.5); }
.hero-index span { padding-top: 8px; color: rgba(247,248,251,.55); }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 11vw, 176px) var(--pad); }
.dark { max-width: none; color: var(--white); background: var(--ink); }
.dark > * { max-width: calc(var(--max) - 2 * var(--pad)); margin-right: auto; margin-left: auto; }
.section-index { display: flex; align-items: baseline; gap: 22px; padding-top: 12px; border-top: 2px solid currentColor; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.section-index p { margin: 0; }
.section-index span { color: var(--accent-light); }
.dark .section-index span { color: var(--accent); }
h2 { margin: 0; font: 760 clamp(42px, 6vw, 88px)/1.02 var(--display); letter-spacing: -.055em; }
.about, .systems, .path { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 56px clamp(34px, 7vw, 120px); }
.about-copy h2, .systems-copy h2, .path-heading h2 { max-width: 1060px; }
.about-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; max-width: 1020px; margin: 56px 0 68px; }
.about-columns p { margin: 0; color: #4f555b; }
.wide-media { grid-column: 2; margin: 0; }
.wide-media img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }
figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid currentColor; font: 10px/1.4 var(--mono); letter-spacing: .1em; }

.systems { grid-template-rows: auto auto auto; }
.systems-copy { margin: 0; }
.systems-note { max-width: 650px; margin: 34px 0 0; color: rgba(247,248,251,.68); }
.systems-figure { grid-column: 2; margin: 8px 0 0; }
.systems-figure img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }
.systems-figure figcaption { color: rgba(247,248,251,.75); }
.direction-list { grid-column: 2; border-top: 1px solid var(--dark-line); }
.direction-list article { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 24px; padding: 26px 0 30px; border-bottom: 1px solid var(--dark-line); }
.direction-list article > span { color: var(--accent); font: 12px/1 var(--mono); }
.direction-list h3 { margin: 0 0 8px; font: 650 clamp(24px, 2.5vw, 38px)/1.08 var(--display); letter-spacing: -.035em; }
.direction-list p { max-width: 560px; margin: 0; color: rgba(247,248,251,.68); }

.path-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); gap: 42px; }
.path-heading p { align-self: end; max-width: 420px; margin: 0; color: #4f555b; }
.path-flow { grid-column: 2; margin-top: 76px; border-top: 1px solid var(--line); }
.path-row { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); gap: 52px; align-items: center; padding: 54px 0; border-bottom: 1px solid var(--line); }
.path-row.reverse { grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); }
.path-row.reverse .path-copy { order: 2; }
.path-copy > span, .micro-label { color: var(--accent-light); font: 10px/1 var(--mono); letter-spacing: .12em; }
.path-copy h3 { margin: 18px 0 14px; font: 720 clamp(32px, 3.2vw, 54px)/1 var(--display); letter-spacing: -.045em; }
.path-copy p { max-width: 420px; margin: 0; color: #555b62; }
.path-row figure { margin: 0; overflow: hidden; }
.path-row img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.path-row:hover img { transform: scale(1.02); }
.inspection-band { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); margin-top: 94px; color: var(--white); background: var(--accent); }
.inspection-band figure { margin: 0; }
.inspection-band img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.inspection-band > div { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(34px, 5vw, 72px); }
.inspection-band .micro-label { color: rgba(247,248,251,.7); }
.inspection-band h3 { margin: 18px 0; font: 750 clamp(38px, 4.5vw, 70px)/.98 var(--display); letter-spacing: -.06em; }
.inspection-band p { margin: 0; color: rgba(247,248,251,.82); }

.project { display: block; }
.project-grid { display: grid; grid-template-columns: minmax(300px, .76fr) minmax(430px, 1.24fr); gap: clamp(60px, 10vw, 170px); margin-top: 78px; }
.project-copy h2 { max-width: 650px; }
.project-copy > p { max-width: 600px; margin: 34px 0 0; color: rgba(247,248,251,.68); }
.timeline > div { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 24px; padding: 0 0 38px; }
.timeline > div::before { position: absolute; top: 24px; bottom: 0; left: 5px; width: 1px; background: rgba(247,248,251,.28); content: ""; }
.timeline > div::after { position: absolute; top: 6px; left: 0; width: 11px; height: 11px; background: var(--accent); content: ""; }
.timeline > div.future::after { background: var(--alert); }
.timeline time { padding-left: 24px; color: rgba(247,248,251,.62); font: 10px/1.4 var(--mono); }
.timeline p { display: grid; gap: 5px; margin: 0; }
.timeline strong { font-size: 18px; }
.timeline p span { color: rgba(247,248,251,.62); }
.future-media { max-width: calc(var(--max) - 2 * var(--pad)); margin: 86px auto 0; }
.future-media img { width: 100%; aspect-ratio: 1.78 / 1; object-fit: cover; }
.future-media figcaption { color: rgba(247,248,251,.74); }

.contact { display: grid; grid-template-columns: 150px minmax(300px, .78fr) minmax(380px, 1.22fr); gap: 56px clamp(34px, 6vw, 94px); }
.contact-copy h2 { margin-bottom: 30px; }
.contact-copy > p { max-width: 580px; margin: 0; color: #4f555b; }
address { max-width: 420px; margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--line); font-style: normal; }
address span { display: block; margin-bottom: 8px; color: var(--accent-light); font: 10px/1 var(--mono); letter-spacing: .1em; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; align-content: start; }
.contact-form label { display: grid; gap: 10px; }
.contact-form label > span { font: 10px/1.3 var(--mono); letter-spacing: .08em; }
.contact-form input, .contact-form textarea { width: 100%; min-height: 48px; padding: 11px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; outline: 0; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-light); box-shadow: 0 3px 0 var(--accent-light); }
.contact-form [aria-invalid="true"] { border-color: #a50020; }
.contact-form .full { grid-column: 1 / -1; }
.form-action { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 22px; align-items: center; }
.form-action button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 54px; padding: 0 24px; color: var(--white); background: var(--ink); border: 2px solid var(--ink); cursor: pointer; font-weight: 700; }
.form-action button:hover { color: var(--ink); background: transparent; }
.form-status { min-height: 28px; margin: 0; color: #4f555b; font-size: 14px; }

.site-footer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr) minmax(180px, .8fr); gap: 46px; padding: 58px var(--pad) 28px; color: var(--white); background: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand p { display: grid; margin: 0; }
.footer-brand strong { font-size: 14px; letter-spacing: .06em; }
.footer-brand span { margin-top: 7px; color: rgba(247,248,251,.56); font: 9px/1 var(--mono); letter-spacing: .09em; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; align-content: center; }
.footer-links a { min-height: 44px; display: flex; align-items: center; color: rgba(247,248,251,.82); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note { color: rgba(247,248,251,.56); font-size: 12px; }
.footer-note p { margin: 0; }
.copyright { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(247,248,251,.2); color: rgba(247,248,251,.62); font: 10px/1.4 var(--mono); }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .site-header { height: 70px; }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav { position: fixed; inset: 70px 8px 0 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 40px var(--pad); color: var(--ink); background: var(--paper); }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 68px; border-bottom: 1px solid var(--line); font-size: 20px; }
  .site-nav .nav-action { justify-content: center; min-height: 56px; margin-top: 28px; color: var(--white); background: var(--ink); }
  .about, .systems, .path { grid-template-columns: 110px minmax(0, 1fr); gap: 44px 34px; }
  .systems { grid-template-rows: auto auto auto; }
  .path-heading { grid-template-columns: 1fr; gap: 28px; }
  .path-heading p { max-width: 620px; }
  .inspection-band { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 110px minmax(0, 1fr); }
  .contact-form { grid-column: 2; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
  :root { --pad: 20px; }
  .edge-marker { width: 5px; grid-template-columns: repeat(4, 1px); }
  .site-header { right: 5px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { display: none; }
  .hero-copy { padding-top: 98px; }
  .hero-image { object-position: 66% center; }
  .hero-shade { background: rgba(0,0,0,.56); }
  .hero-rule { top: 70px; right: 12%; }
  .hero-meta { top: 92px; font-size: 8px; }
  .hero-meta span:last-child { display: none; }
  .hero h1 { font-size: clamp(58px, 18vw, 84px); }
  .hero h1 span:last-child { margin-left: 0; }
  .hero-lead { margin-top: 34px; font-size: 16px; }
  .hero-index { display: none; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .about, .systems, .path, .contact { display: block; }
  .section-index { margin-bottom: 42px; }
  h2 { font-size: clamp(40px, 12vw, 58px); }
  .about-columns { grid-template-columns: 1fr; gap: 18px; margin: 36px 0 50px; }
  .wide-media img, .systems-figure img, .path-row img { aspect-ratio: 4 / 3; }
  .systems-note { margin-top: 26px; }
  .systems-figure { margin-top: 48px; }
  .direction-list { margin-top: 46px; }
  .direction-list article { grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
  .direction-list h3 { font-size: 28px; }
  .path-flow { margin-top: 48px; }
  .path-row, .path-row.reverse { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 36px 0; }
  .path-row.reverse .path-copy { order: 0; }
  .path-copy h3 { font-size: 38px; }
  .inspection-band { margin-top: 58px; }
  .inspection-band img { min-height: 300px; }
  .inspection-band > div { min-height: 310px; }
  .project-grid { margin-top: 50px; }
  .timeline > div { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; }
  .future-media { margin-top: 56px; }
  .future-media img { aspect-ratio: 4 / 3; }
  .contact-copy > p { margin-top: 0; }
  address { margin-top: 42px; }
  .contact-form { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 52px; }
  .contact-form label, .contact-form .full { grid-column: 1; }
  .form-action { grid-template-columns: 1fr; gap: 16px; }
  .form-action button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; }
  .footer-note, .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
