@font-face {
  font-family: "Shengyuan Display";
  src: url("assets/fonts/zcool-qingke-huangyou.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #111516;
  --graphite: #282d2c;
  --paper: #ece9e1;
  --fiber: #f7f5ef;
  --steel: #a8aaa5;
  --line: #b8b8b1;
  --oxide: #e55c2f;
  --display: "Shengyuan Display", "Microsoft YaHei", sans-serif;
  --body: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
  --max: 1586px;
  --pad: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  scrollbar-color: var(--oxide) var(--ink);
  scrollbar-width: thin;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.65;
  cursor: default;
  overflow-x: clip;
}

::selection { color: var(--fiber); background: var(--oxide); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--oxide); border: 2px solid var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }

:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--fiber);
  background: var(--ink);
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  min-height: 80px;
  padding: 0 var(--pad);
  color: var(--fiber);
  background: rgb(17 21 22 / 96%);
  border-bottom: 1px solid rgb(247 245 239 / 18%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-height: 52px;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 15px; letter-spacing: .08em; }
.brand-copy small { color: #c2c4be; font-size: 9px; letter-spacing: .14em; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e2e1dc;
  font-size: 13px;
  text-decoration: none;
  transition: color 220ms ease;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--oxide); }
.site-nav .nav-contact { padding: 0 18px; color: var(--ink); background: var(--oxide); }
.site-nav .nav-contact:hover { color: var(--ink); background: #f16b3f; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: min(790px, calc(100vh - 80px));
  color: var(--fiber);
  background: var(--ink);
  border-bottom: 1px solid #3c4140;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(72px, 8vw, 136px) var(--pad);
}
.material-line {
  width: fit-content;
  padding-bottom: 7px;
  color: #c8cac4;
  border-bottom: 1px solid var(--oxide);
  font-size: 12px;
  letter-spacing: .18em;
}
.hero h1 {
  max-width: 9ch;
  margin: 35px 0 30px;
  font-family: var(--display);
  font-size: clamp(72px, 9vw, 142px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.035em;
}
.hero h1 span { color: var(--oxide); }
.hero-lead { max-width: 36em; color: #c3c5c0; font-size: clamp(15px, 1.2vw, 18px); }
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  width: fit-content;
  min-height: 48px;
  margin-top: 38px;
  color: var(--fiber);
  text-decoration-color: var(--oxide);
}
.text-action svg, .submit-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.text-action svg { transition: transform 320ms var(--ease); }
.text-action:hover svg { transform: translateX(8px); }

.hero-media { position: relative; min-width: 0; overflow: hidden; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(17 21 22 / 20%), transparent 28%);
  pointer-events: none;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.hero-media figcaption {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  bottom: 36px;
  max-width: 18em;
  padding: 8px 0;
  color: var(--fiber);
  border-bottom: 1px solid var(--oxide);
  font-size: 12px;
  letter-spacing: .08em;
}
.selvedge-scale {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  color: var(--ink);
  background: var(--oxide);
  font: 10px/1 var(--body);
  font-variant-numeric: tabular-nums;
}
.selvedge-scale span { display: flex; align-items: center; gap: 4px; writing-mode: vertical-rl; }
.selvedge-scale span::after { content: ""; width: 13px; border-top: 1px solid currentColor; }
.hero-coordinate {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 120px;
  color: rgb(247 245 239 / 65%);
  font-size: 9px;
  letter-spacing: .24em;
  writing-mode: vertical-rl;
}

.fact-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--pad);
  color: var(--fiber);
  background: var(--graphite);
}
.fact-rail p { min-height: 112px; padding: 24px 22px 20px 0; border-right: 1px solid #505452; }
.fact-rail p:not(:first-child) { padding-left: 22px; }
.fact-rail p:last-child { border-right: 0; }
.fact-rail strong, .fact-rail span { display: block; }
.fact-rail strong { color: #aeb0aa; font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.fact-rail span { margin-top: 10px; font-size: clamp(14px, 1.3vw, 18px); }

.section-pad { padding: clamp(90px, 10vw, 160px) var(--pad); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(260px, 4fr) minmax(0, 3fr);
  align-items: end;
  margin-bottom: clamp(54px, 7vw, 100px);
}
.section-heading h2, .application-aside h2, .research-copy h2, .project h2, .contact h2 {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 108px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.025em;
}
.section-heading p { grid-column: 2; max-width: 37em; color: #3d4342; }

.material-spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); align-items: stretch; }
.material-family { position: relative; min-height: 650px; overflow: hidden; }
.material-family img { width: 100%; height: 100%; object-fit: cover; }
.material-family figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 12px 18px;
  color: var(--fiber);
  background: var(--ink);
  font-size: 12px;
}
.material-index { display: grid; grid-template-rows: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.material-index article {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-content: center;
  padding: 22px clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--ink);
}
.material-index article > span { grid-row: 1 / span 2; color: var(--oxide); font-size: 11px; font-variant-numeric: tabular-nums; }
.material-index h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 46px); font-weight: 400; line-height: 1; }
.material-index p { max-width: 28em; margin-top: 10px; color: #4f5553; font-size: 13px; }

.structure-band { padding: clamp(90px, 10vw, 156px) 0 0; color: var(--fiber); background: var(--ink); }
.structure-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr) minmax(0, 1fr); align-items: end; padding: 0 var(--pad) clamp(58px, 7vw, 100px); }
.structure-copy h2 { font-family: var(--display); font-size: clamp(48px, 6.2vw, 96px); font-weight: 400; line-height: .93; letter-spacing: -.02em; }
.structure-copy p { grid-column: 2; max-width: 36em; color: #b9bbb6; }
.structure-wide { position: relative; height: clamp(380px, 52vw, 740px); overflow: hidden; }
.structure-wide img { width: 100%; height: 100%; object-fit: cover; }
.structure-wide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 var(--pad);
  background: rgb(17 21 22 / 84%);
}
.structure-wide figcaption span { padding: 18px 0; border-right: 1px solid #5f6360; font-size: 12px; }
.structure-wide figcaption span:not(:first-child) { padding-left: 20px; }
.structure-wide figcaption span:last-child { border-right: 0; }
.structure-pair { display: grid; grid-template-columns: 1fr 1fr; }
.structure-pair figure { position: relative; min-height: 500px; overflow: hidden; }
.structure-pair figure:first-child { border-right: 1px solid #535856; }
.structure-pair img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.structure-pair figure:hover img { transform: scale(1.025); }
.structure-pair figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 18px var(--pad); color: var(--fiber); background: linear-gradient(transparent, rgb(17 21 22 / 90%)); font-size: 13px; }
.structure-pair figcaption strong { display: block; font-family: var(--display); font-size: 42px; font-weight: 400; }

.applications { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr); gap: clamp(48px, 7vw, 110px); }
.application-aside { position: sticky; top: 120px; align-self: start; }
.application-aside h2 { max-width: 4ch; }
.application-aside p { max-width: 25em; margin-top: 34px; color: #4d5351; }
.application-axis ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.application-axis li { display: grid; grid-template-columns: 52px minmax(180px, 1fr) minmax(220px, 1.1fr); align-items: center; min-height: 114px; border-bottom: 1px solid var(--ink); }
.application-axis li > span { color: var(--oxide); font-size: 12px; }
.application-axis h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 44px); font-weight: 400; line-height: 1; }
.application-axis li p { max-width: 28em; color: #4c5250; font-size: 13px; }
.application-axis figure { position: relative; margin-top: 58px; min-height: 470px; overflow: hidden; }
.application-axis img { width: 100%; height: 100%; object-fit: cover; }
.application-axis figcaption { position: absolute; right: 0; bottom: 0; padding: 12px 18px; color: var(--fiber); background: var(--ink); font-size: 12px; }

.research { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); min-height: 730px; color: var(--fiber); background: var(--graphite); }
.research-media { min-width: 0; overflow: hidden; }
.research-media img { width: 100%; height: 100%; object-fit: cover; }
.research-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(58px, 7vw, 110px) var(--pad); }
.research-copy h2 { max-width: 6ch; color: var(--fiber); }
.research-date { margin: 44px 0 24px; color: var(--oxide); font: 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.research-copy > p:not(.research-date) { max-width: 34em; color: #d3d4cf; }
.research-copy .boundary-note { margin-top: 28px; padding-top: 20px; color: #b7b9b4; border-top: 1px solid #656966; font-size: 12px; }

.project { padding-bottom: 0; }
.project-heading p { grid-column: 2 / span 2; max-width: 46em; }
.timeline { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 42px 0 80px; }
.timeline-track { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: #b0b0aa; }
.timeline-track i { display: block; width: 62%; height: 100%; background: var(--oxide); transform-origin: left center; animation: measure 1.5s var(--ease) both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
@keyframes measure { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
.time-start, .time-end { display: grid; gap: 10px; }
.time-end { justify-items: end; text-align: right; }
.timeline strong { font: clamp(48px, 7vw, 96px)/1 var(--display); font-variant-numeric: tabular-nums; }
.timeline span { color: #454b49; font-size: 13px; }
.timeline > p { grid-column: 1 / -1; margin-top: 56px; color: #4b514f; font-size: 13px; }
.roll-library { position: relative; height: clamp(380px, 50vw, 690px); margin: 0 calc(var(--pad) * -1); overflow: hidden; }
.roll-library img { width: 100%; height: 100%; object-fit: cover; }
.roll-library figcaption { position: absolute; bottom: 0; left: var(--pad); padding: 14px 18px; color: var(--fiber); background: var(--ink); font-size: 12px; }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(450px, 7fr); gap: clamp(50px, 8vw, 120px); padding: clamp(90px, 10vw, 150px) var(--pad); color: var(--fiber); background: var(--ink); }
.contact h2 { max-width: 7ch; color: var(--fiber); }
.contact-copy > p { max-width: 32em; margin-top: 36px; color: #bec0bb; }
.contact dl { margin-top: 64px; border-top: 1px solid #565b58; }
.contact dl div { display: grid; grid-template-columns: 130px 1fr; padding: 16px 0; border-bottom: 1px solid #565b58; }
.contact dt { color: #aeb0ab; font-size: 12px; }
.contact dd { color: #e2e2dd; font-size: 13px; }
.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 30px 24px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { color: #c9cbc6; font-size: 12px; }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  color: var(--fiber);
  caret-color: var(--oxide);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #707470;
  border-radius: 0;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #bfc1bc; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--oxide); outline-offset: 4px; border-color: var(--oxide); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff8660; }
.submit-button {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-top: 10px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--oxide);
  border: 0;
  border-radius: 0;
  transition: background-color 180ms ease;
}
.submit-button:hover { background: #f16d41; }
.submit-button:disabled { cursor: not-allowed; background: #6b6f6c; }
.form-status { grid-column: 1 / -1; min-height: 28px; color: #ffc1ad; font-size: 13px; }

.site-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: center; gap: 20px; min-height: 96px; padding: 18px var(--pad); color: #c8cac5; background: var(--graphite); border-top: 1px solid #515653; font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--fiber); letter-spacing: .07em; }
.footer-brand img { width: 40px; height: 40px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); }
  .hero h1 { font-size: clamp(70px, 11vw, 110px); }
  .section-heading { grid-template-columns: 1fr 1fr; }
  .section-heading p { grid-column: 2; }
  .material-spread { grid-template-columns: minmax(0, 6fr) minmax(300px, 5fr); }
  .research { grid-template-columns: 6fr 5fr; }
  .contact { grid-template-columns: 4fr 6fr; }
  .site-footer { grid-template-columns: 1.5fr 1fr 1fr; }
  .site-footer > a { grid-column: 3; justify-self: end; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; }
  .brand img { width: 44px; height: 44px; }
  .menu-toggle {
    position: relative;
    z-index: 22;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 96px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--fiber);
    background: transparent;
    border: 1px solid #636763;
  }
  .menu-toggle i, .menu-toggle i::after { display: block; width: 18px; border-top: 1px solid currentColor; transition: transform 240ms var(--ease); }
  .menu-toggle i::after { content: ""; transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] i { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { transform: translateY(-1px) rotate(-90deg); }
  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 72px 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 20px var(--pad) 30px;
    color: var(--fiber);
    background: var(--ink);
    border-bottom: 1px solid #555957;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 220ms ease, transform 320ms var(--ease), visibility 220ms;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 8px 0; border-bottom: 1px solid #484c4a; }
  .site-nav a:nth-child(even) { padding-left: 18px; }
  .site-nav .nav-contact { grid-column: 1 / -1; justify-content: center; margin-top: 18px; padding: 0 18px; border: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 620px; }
  .hero-media { min-height: 520px; }
  .hero-media::after { background: linear-gradient(180deg, rgb(17 21 22 / 12%), transparent); }
  .fact-rail { grid-template-columns: 1fr 1fr; }
  .fact-rail p:nth-child(2) { border-right: 0; }
  .fact-rail p:nth-child(-n+2) { border-bottom: 1px solid #505452; }
  .section-heading, .structure-copy { grid-template-columns: 1fr; gap: 28px; }
  .section-heading p, .structure-copy p, .project-heading p { grid-column: 1; }
  .material-spread, .applications, .research, .contact { grid-template-columns: 1fr; }
  .material-family { min-height: 560px; }
  .material-index { grid-template-rows: none; }
  .material-index article { min-height: 135px; }
  .structure-copy { padding-right: var(--pad); padding-left: var(--pad); }
  .structure-pair figure { min-height: 380px; }
  .application-aside { position: static; }
  .application-aside h2 { max-width: none; }
  .research-media { min-height: 600px; }
  .contact-copy { padding-bottom: 20px; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 76px; }
  .site-header { min-height: 72px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 13px; }
  .site-nav { grid-template-columns: 1fr; max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav a:nth-child(even) { padding-left: 0; }
  .site-nav .nav-contact { grid-column: 1; }
  .hero-copy { min-height: 590px; padding-top: 76px; padding-bottom: 76px; }
  .material-line { font-size: 10px; letter-spacing: .1em; }
  .hero h1 { margin-top: 32px; font-size: clamp(70px, 24vw, 94px); }
  .hero-lead { font-size: 15px; }
  .hero-media { min-height: 430px; }
  .hero-media figcaption { right: 20px; bottom: 20px; }
  .selvedge-scale { left: 12px; width: 26px; }
  .fact-rail { grid-template-columns: 1fr; }
  .fact-rail p, .fact-rail p:not(:first-child) { min-height: 88px; padding: 18px 0; border-right: 0; border-bottom: 1px solid #505452; }
  .section-pad { padding-top: 92px; padding-bottom: 92px; }
  .section-heading h2, .application-aside h2, .research-copy h2, .project h2, .contact h2 { font-size: clamp(52px, 18vw, 72px); }
  .section-heading { margin-bottom: 48px; }
  .material-family { min-height: 390px; }
  .material-index article { grid-template-columns: 50px 1fr; min-height: 132px; padding: 20px 0; }
  .material-index h3 { font-size: 34px; }
  .structure-band { padding-top: 90px; }
  .structure-copy h2 { font-size: 48px; }
  .structure-wide { height: 380px; }
  .structure-wide figcaption { grid-template-columns: 1fr; padding: 0 20px; }
  .structure-wide figcaption span { padding: 9px 0; border-right: 0; border-bottom: 1px solid #5f6360; }
  .structure-wide figcaption span:not(:first-child) { padding-left: 0; }
  .structure-wide figcaption span:last-child { border-bottom: 0; }
  .structure-pair { grid-template-columns: 1fr; }
  .structure-pair figure { min-height: 390px; }
  .structure-pair figure:first-child { border-right: 0; border-bottom: 1px solid #535856; }
  .applications { gap: 48px; }
  .application-axis li { grid-template-columns: 38px 1fr; align-content: center; padding: 18px 0; }
  .application-axis li p { grid-column: 2; margin-top: 8px; }
  .application-axis figure { min-height: 390px; }
  .research-media { min-height: 430px; }
  .research-copy { padding: 74px 20px 88px; }
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .time-end { justify-items: start; text-align: left; }
  .timeline > p { margin-top: 14px; }
  .roll-library { height: 420px; }
  .contact { gap: 48px; }
  .contact dl div { grid-template-columns: 1fr; gap: 4px; }
  .inquiry-form { grid-template-columns: 1fr; }
  .field, .field-wide { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; gap: 6px; padding-top: 28px; padding-bottom: 28px; }
  .site-footer > a { grid-column: 1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
