@font-face {
  font-family: "ZCOOL QingKe HuangYou";
  src: url("assets/fonts/zcool-qingke-huangyou.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f1f0e8;
  --paper-raised: #fbfaf4;
  --ink: #0b2c33;
  --green: #1c6655;
  --orange: #e06a2a;
  --iron: #596569;
  --line: #b9c6c3;
  --header-height: 76px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --display: "ZCOOL QingKe HuangYou", "Microsoft YaHei", sans-serif;
  --body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--orange); color: #101b1d; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--green); border: 2px solid var(--paper); }

a { color: inherit; text-underline-offset: 5px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

img { display: block; width: 100%; height: auto; }
figure { margin: 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-raised);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: var(--header-height);
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; flex: none; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em; }
.brand small { color: #3f5559; font-size: .68rem; margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  transition: right 220ms ease-out;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 14px 10px;
  cursor: pointer;
}
.menu-button span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform 220ms ease, opacity 220ms ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.section-space { padding: clamp(96px, 11vw, 180px) var(--gutter); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(36px, 8vw, 130px); align-items: end; margin-bottom: clamp(48px, 7vw, 104px); }
.section-head h2, .flow-intro h2, .contact h2, .identity h2 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head p, .flow-intro p { margin: 0; max-width: 36rem; color: #3b5559; }

.hero {
  min-height: calc(100vh - var(--header-height));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  overflow: clip;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  z-index: 3;
  padding: clamp(72px, 9vw, 132px) 3vw 190px var(--gutter);
  align-self: center;
}
.hero-company { margin: 0 0 28px; font-weight: 700; color: var(--green); }
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 8vw, 7.6rem);
  font-weight: 400;
  line-height: .87;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero-lead { max-width: 36rem; margin: 32px 0 0; color: #324d52; font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 38px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid currentColor;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.button-primary { background: var(--ink); color: var(--paper-raised); }
.button-primary:hover { background: var(--green); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.text-link span { color: var(--orange); font-size: 1.4rem; }

.hero-visual { position: relative; min-height: 100%; background: var(--paper-raised); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-flow { position: absolute; inset: auto 0 122px; width: 100%; height: 260px; z-index: 4; pointer-events: none; }
.hero-flow path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-flow 1.5s .25s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes draw-flow { to { stroke-dashoffset: 0; } }
.hero-directions {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}
.hero-directions a { min-height: 118px; padding: 18px 0; display: flex; align-items: flex-end; gap: 14px; text-decoration: none; }
.hero-directions a + a { padding-left: clamp(24px, 4vw, 72px); border-left: 1px solid var(--ink); }
.hero-directions span { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 4.5rem); line-height: 1; }
.hero-directions small { margin-bottom: 5px; color: #425b60; }

.directions { background: var(--paper-raised); }
.direction-stage { position: relative; min-height: 620px; overflow: hidden; background: var(--ink); }
.direction-stage > img { width: 100%; height: clamp(620px, 68vw, 940px); object-fit: cover; }
.direction-stage figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: var(--paper-raised);
}
.direction-stage figcaption > div { padding: clamp(28px, 4vw, 64px); min-height: 250px; }
.direction-stage figcaption > div + div { border-left: 1px solid #87a6a2; }
.direction-stage h3 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; line-height: 1; }
.direction-stage p { max-width: 32rem; margin: 0; color: #c6d7d4; }

.flow { background: var(--ink); color: var(--paper-raised); padding-left: 0; padding-right: 0; }
.flow-intro { padding: 0 var(--gutter) clamp(68px, 8vw, 120px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
.flow-intro p { color: #c6d7d4; }
.flow-band { min-height: 620px; display: grid; grid-template-columns: 1.45fr .55fr; border-top: 1px solid #416068; }
.flow-band:nth-of-type(3) { grid-template-columns: .55fr 1.45fr; }
.flow-band figure { min-height: 620px; overflow: hidden; }
.flow-band img { width: 100%; height: 100%; object-fit: cover; }
.flow-band > div { padding: clamp(42px, 6vw, 92px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); }
.flow-band h3 { margin: 0 0 20px; font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 4.5vw, 4.8rem); line-height: .98; }
.flow-band p { margin: 0; color: #c6d7d4; max-width: 34rem; }

.project { background: var(--paper); }
.project-head h2 { max-width: 15ch; }
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(64px, 9vw, 126px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.timeline li { min-height: 210px; padding: 26px 24px 26px 0; position: relative; display: flex; flex-direction: column; }
.timeline li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.timeline li::before { content: ""; width: 14px; height: 14px; position: absolute; top: -8px; left: 0; background: var(--orange); border-radius: 50%; }
.timeline li + li::before { left: 28px; }
.timeline time { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline strong { margin-top: auto; font-family: var(--display); font-size: 2.4rem; font-weight: 400; line-height: 1; }
.timeline span { margin-top: 10px; color: #465e63; }
.project-visual { overflow: hidden; }
.project-visual img { min-height: 420px; object-fit: cover; }

.making { background: var(--paper-raised); }
.making-gallery { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(16px, 2vw, 32px); align-items: end; }
.making-gallery figure { overflow: hidden; }
.making-gallery img { height: 100%; object-fit: cover; }
.making-material { height: clamp(560px, 62vw, 860px); }
.making-inspection { height: clamp(400px, 44vw, 620px); }

.identity { background: var(--green); color: var(--paper-raised); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 12vw, 180px); }
.identity h2 { max-width: 11ch; }
.identity dl { margin: 0; border-top: 1px solid #a5c8bf; }
.identity dl > div { padding: 22px 0; display: grid; grid-template-columns: 120px 1fr; gap: 18px; border-bottom: 1px solid #a5c8bf; }
.identity dt { color: #d5e8e2; }
.identity dd { margin: 0; font-weight: 700; }

.contact { background: var(--ink); color: var(--paper-raised); display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(64px, 12vw, 180px); }
.contact-copy { align-self: start; }
.contact-copy p { max-width: 32rem; color: #c6d7d4; margin-top: 28px; }
#inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
.form-row { display: grid; gap: 8px; }
.form-row-wide, .form-actions { grid-column: 1 / -1; }
.form-row label { font-weight: 700; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid #8ca5a8;
  border-radius: 0;
  background: transparent;
  color: var(--paper-raised);
  caret-color: var(--orange);
}
.form-row textarea { resize: vertical; min-height: 132px; }
.form-row select { background-color: var(--ink); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-bottom-color: var(--orange); }
.form-row input:user-invalid, .form-row select:user-invalid, .form-row textarea:user-invalid { border-bottom-color: #ff9d70; }
.form-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button-submit { background: var(--orange); color: #101b1d; border-color: var(--orange); font-weight: 800; }
.button-submit:hover { background: var(--paper-raised); border-color: var(--paper-raised); }
.form-status { margin: 0; min-height: 28px; color: #ffd5c1; }

.site-footer {
  padding: 36px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  background: #061f25;
  color: var(--paper-raised);
  border-top: 1px solid #416068;
}
.site-footer > div:first-child { display: grid; }
.site-footer strong { font-family: var(--display); font-size: 1.45rem; font-weight: 400; }
.site-footer span { color: #b7ccca; font-size: .82rem; }
.footer-notes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-bottom: 80px; }
  .hero-visual { min-height: 620px; }
  .hero-flow { bottom: 105px; }
  .hero-directions { position: relative; left: auto; right: auto; padding: 0 var(--gutter); grid-column: 1; background: var(--paper); }
  .section-head, .flow-intro, .identity, .contact { grid-template-columns: 1fr; }
  .flow-band, .flow-band:nth-of-type(3) { grid-template-columns: 1fr; }
  .flow-band:nth-of-type(3) > div { order: 2; }
  .flow-band figure { min-height: 520px; }
  .flow-band > div { min-height: 320px; }
}

@media (max-width: 740px) {
  :root { --header-height: 68px; }
  .site-header { min-height: var(--header-height); padding-top: 9px; padding-bottom: 9px; }
  .brand small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .menu-button { display: block; position: relative; z-index: 22; }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 21;
    background: var(--ink);
    color: var(--paper-raised);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 32px var(--gutter) 80px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { min-height: 70px; border-bottom: 1px solid #416068; font-family: var(--display); font-size: 2.2rem; }
  .site-nav a::after { display: none; }
  .hero-copy { padding-top: 70px; padding-bottom: 64px; }
  .hero-company { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(4.1rem, 20vw, 6rem); }
  .hero-visual { min-height: 440px; }
  .hero-visual img { object-position: 58% center; }
  .hero-flow { bottom: 95px; height: 160px; }
  .hero-directions { padding: 0 var(--gutter); }
  .hero-directions a { min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; }
  .hero-directions a + a { padding-left: 18px; }
  .hero-directions span { font-size: 2.25rem; }
  .section-head { gap: 28px; margin-bottom: 46px; }
  .section-head h2, .flow-intro h2, .contact h2, .identity h2 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .direction-stage { min-height: 0; }
  .direction-stage > img { height: 520px; object-position: center; }
  .direction-stage figcaption { grid-template-columns: 1fr; }
  .direction-stage figcaption > div + div { border-left: 0; border-top: 1px solid #87a6a2; }
  .flow-intro { gap: 26px; }
  .flow-band figure { min-height: 360px; }
  .flow-band > div { min-height: 280px; padding: 38px var(--gutter) 56px; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); margin-left: 8px; }
  .timeline li, .timeline li + li { min-height: 160px; padding: 0 0 36px 30px; border-left: 0; }
  .timeline li::before, .timeline li + li::before { left: -8px; top: 4px; }
  .timeline strong { margin-top: 24px; }
  .project-visual img { min-height: 320px; object-position: 43% center; }
  .making-gallery { grid-template-columns: 1fr; }
  .making-material, .making-inspection { height: 430px; }
  .identity dl > div { grid-template-columns: 94px 1fr; }
  #inquiry-form { grid-template-columns: 1fr; }
  .form-row, .form-row-wide, .form-actions { grid-column: 1; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-notes { justify-content: flex-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; }
  .hero-flow path { stroke-dashoffset: 0; }
}
