@font-face {
  font-family: "Smiley Sans";
  src: url("assets/fonts/smiley-sans-display.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 900;
}

:root {
  --paper: #f2f0e8;
  --paper-bright: #faf9f4;
  --ink: #171a15;
  --ink-soft: #51564e;
  --wheat: #c4932b;
  --wheat-deep: #9c701c;
  --steel: #747a70;
  --line: rgba(23, 26, 21, 0.22);
  --dark-line: rgba(242, 240, 232, 0.22);
  --display: "Smiley Sans", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .28em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--wheat); color: var(--ink); }
* { scrollbar-color: var(--wheat) var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--wheat); border: 3px solid var(--paper); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(242, 240, 232, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-family: var(--display); font-size: 19px; font-weight: 760; }
.brand small { margin-top: 5px; color: var(--ink-soft); font-size: 12px; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.site-nav a { position: relative; font-size: 14px; text-decoration: none; }
.site-nav a:not(.nav-action)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-action { padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; }
.nav-action:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 760; line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0; }
.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.hero-copy {
  grid-column: 1 / span 5;
  min-height: 760px;
  padding: clamp(56px, 8vw, 124px) clamp(30px, 5vw, 80px) 48px clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 { max-width: 8ch; font-size: clamp(62px, 7vw, 112px); }
.hero h1 em { color: var(--wheat-deep); font-style: normal; }
.hero-copy > p:first-of-type { max-width: 35rem; margin-top: 38px; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 21px); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.button-primary { background: var(--ink); color: var(--paper-bright); }
.button-primary:hover { background: var(--wheat-deep); transform: translateY(-2px); }
.text-link { font-weight: 650; text-decoration-thickness: 1px; }
.text-link span { display: inline-block; transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(4px, 4px); }
.hero-boundary { max-width: 32rem; margin-top: auto; padding-top: 42px; color: var(--steel); font-size: 13px; }
.hero-visual {
  position: relative;
  grid-column: 6 / -1;
  margin: 0;
  min-height: 760px;
  overflow: hidden;
  background: var(--ink);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.25s var(--ease);
}
.is-ready .hero-visual { clip-path: inset(0); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  padding: 7px 12px;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 12px;
}
.material-line { position: absolute; inset: 0 auto 0 calc(41.666% - 6px); width: 12px; pointer-events: none; }
.material-line::before { content: ""; position: absolute; inset: 0 5px; background: var(--wheat); }
.material-line span { position: sticky; top: 96px; display: block; width: 12px; height: 18px; border-radius: 50%; background: var(--wheat); box-shadow: 0 8px 24px rgba(196,147,43,.35); }

.scope { padding: clamp(90px, 11vw, 170px) clamp(24px, 5vw, 80px); }
.section-heading { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8vw; align-items: end; }
.section-heading h2 { max-width: 14ch; font-size: clamp(44px, 6vw, 90px); }
.section-heading p { max-width: 38rem; padding-bottom: 8px; color: var(--ink-soft); font-size: clamp(16px, 1.35vw, 20px); }
.scope-rail { position: relative; margin-top: 90px; display: grid; grid-template-columns: 1fr 1.35fr 1fr; border-top: 1px solid var(--ink); }
.scope-rail::before { content: ""; position: absolute; top: -3px; left: 0; width: 20%; height: 5px; background: var(--wheat); }
.scope-rail article { min-height: 250px; padding: 34px 32px 28px 0; border-right: 1px solid var(--line); }
.scope-rail article + article { padding-left: 32px; }
.scope-rail article:last-child { border-right: 0; }
.scope-rail h3 { margin-top: 48px; font-size: clamp(26px, 2.4vw, 40px); }
.scope-rail p { max-width: 28rem; margin-top: 16px; color: var(--ink-soft); }
.grain-dot { width: 14px; height: 20px; display: block; border-radius: 60% 40% 60% 40%; background: var(--wheat); transform: rotate(28deg); }

.chapter { min-height: 1050px; padding: 0 clamp(24px, 5vw, 80px) clamp(100px, 10vw, 160px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 32px; }
.chapter-copy { grid-column: 1 / span 5; padding-top: 80px; border-top: 1px solid var(--ink); }
.chapter-copy h2 { font-size: clamp(42px, 5vw, 76px); }
.chapter-copy p { max-width: 33rem; margin-top: 28px; color: var(--ink-soft); }
.chapter-main-image { grid-column: 6 / -1; grid-row: 1 / span 2; margin: 0; min-height: 850px; }
.chapter-main-image img { width: 100%; height: 100%; object-fit: cover; }
.chapter-detail-image { grid-column: 2 / span 4; align-self: end; margin: 80px 0 0; }
.chapter-detail-image img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.chapter-detail-image figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 13px; }

.process { position: relative; padding: clamp(96px, 10vw, 160px) clamp(24px, 5vw, 80px); background: var(--ink); color: var(--paper); overflow: clip; }
.section-heading-dark p { color: rgba(242,240,232,.68); }
.process-spine { position: absolute; top: 360px; bottom: 180px; left: 50%; width: 1px; background: var(--wheat); }
.process-figure { position: relative; width: min(62%, 920px); margin: 110px 0 0; }
.process-figure:nth-of-type(even) { margin-left: auto; }
.process-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.process-figure figcaption { display: grid; grid-template-columns: .45fr 1fr; gap: 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--dark-line); }
.process-figure figcaption strong { color: var(--wheat); font-family: var(--display); font-size: 23px; }
.process-figure figcaption span { color: rgba(242,240,232,.68); }

.noodle-chapter { min-height: 850px; display: grid; grid-template-columns: 7fr 5fr; }
.noodle-chapter figure { margin: 0; min-height: 760px; overflow: hidden; }
.noodle-chapter figure img { width: 100%; height: 100%; object-fit: cover; }
.noodle-copy { padding: clamp(70px, 9vw, 140px) clamp(28px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.noodle-copy h2 { font-size: clamp(48px, 6vw, 92px); }
.noodle-copy p { max-width: 35rem; margin: 34px 0; color: var(--ink-soft); font-size: 18px; }
.noodle-copy .text-link { align-self: flex-start; }

.progress { padding: clamp(90px, 10vw, 150px) clamp(24px, 5vw, 80px); display: grid; grid-template-columns: 1.7fr 1fr; gap: 9vw; border-block: 1px solid var(--ink); }
.progress h2 { font-size: clamp(42px, 5vw, 78px); }
.progress-statement p { max-width: 48rem; margin-top: 30px; color: var(--ink-soft); font-size: 18px; }
.progress-boundary { align-self: end; padding-top: 30px; border-top: 5px solid var(--wheat); }
.progress-boundary p { color: var(--ink-soft); }
.progress-boundary a { display: inline-block; margin-top: 28px; font-weight: 700; }

.materials { padding: clamp(90px, 10vw, 150px) clamp(24px, 5vw, 80px); display: grid; grid-template-columns: 4fr 8fr; gap: 7vw; align-items: center; }
.materials-copy h2 { font-size: clamp(42px, 5vw, 78px); }
.materials-copy p { max-width: 30rem; margin-top: 26px; color: var(--ink-soft); }
.materials figure { margin: 0; }
.materials figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.contact { padding: clamp(90px, 11vw, 170px) clamp(24px, 5vw, 80px); display: grid; grid-template-columns: 5fr 7fr; gap: 10vw; background: var(--wheat); }
.contact h2 { max-width: 10ch; font-size: clamp(48px, 6vw, 92px); }
.contact-intro p { max-width: 32rem; margin-top: 28px; color: rgba(23,26,21,.7); }
form { display: grid; align-content: start; }
form label { margin-top: 24px; font-size: 14px; font-weight: 700; }
form label:first-child { margin-top: 0; }
form input, form select, form textarea { width: 100%; min-height: 50px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); outline: 0; }
form textarea { resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-bottom-width: 3px; }
form .button { justify-self: start; margin-top: 34px; }
.form-status { min-height: 27px; margin-top: 18px; font-weight: 700; }
.form-status.is-error { color: #641b12; }

.site-footer { min-height: 190px; padding: 40px clamp(24px, 5vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr 1.5fr auto; gap: 34px; align-items: center; background: var(--ink); color: var(--paper); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--display); font-size: 20px; }
.site-footer p { color: rgba(242,240,232,.68); font-size: 13px; }
.site-footer a { font-weight: 700; }

@media (max-width: 980px) {
  .site-header { min-height: 68px; backdrop-filter: none; }
  .brand img { width: 38px; height: 38px; }
  .brand small { display: none; }
  .menu-toggle { position: relative; z-index: 55; min-width: 52px; min-height: 48px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-label { font-size: 13px; }
  .menu-lines { position: absolute; right: 0; bottom: 5px; width: 24px; height: 1px; background: currentColor; transition: transform .25s ease; }
  .menu-lines::before { content: ""; position: absolute; right: 0; bottom: 7px; width: 24px; height: 1px; background: currentColor; transform: scaleX(.667); transform-origin: right; transition: transform .25s ease; }
  .menu-toggle[aria-expanded="true"] .menu-lines { transform: rotate(45deg) translate(-5px,-5px); }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { transform: rotate(-90deg) translate(-7px,0) scaleX(1); }
  .site-nav { position: fixed; inset: 0; padding: 110px 28px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; background: var(--wheat); clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .45s var(--ease), visibility .45s; }
  .site-nav.is-open { clip-path: inset(0); visibility: visible; }
  .site-nav a { font-family: var(--display); font-size: clamp(34px, 9vw, 56px); font-weight: 760; }
  .site-nav .nav-action { margin-top: auto; border-radius: 999px; font-family: var(--body); font-size: 16px; }
  .hero { display: block; }
  .hero-copy { min-height: 620px; padding-top: 80px; }
  .hero h1 { font-size: clamp(58px, 14vw, 96px); }
  .hero-visual { min-height: 72vw; }
  .material-line { display: none; }
  .section-heading, .progress, .materials, .contact { grid-template-columns: 1fr; }
  .section-heading { gap: 30px; }
  .scope-rail { grid-template-columns: 1fr; }
  .scope-rail article { min-height: auto; padding: 28px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .scope-rail article + article { padding-left: 0; }
  .scope-rail h3 { margin-top: 24px; }
  .chapter { min-height: 0; display: block; }
  .chapter-copy { padding: 70px 0; }
  .chapter-main-image { min-height: 560px; }
  .chapter-detail-image { width: 70%; margin: -80px 0 0 auto; position: relative; border: 12px solid var(--paper); }
  .process-spine { left: 24px; }
  .process-figure { width: calc(100% - 32px); margin-left: 32px !important; }
  .noodle-chapter { grid-template-columns: 1fr; }
  .noodle-chapter figure { min-height: 68vw; }
  .progress-boundary { margin-top: 30px; }
  .materials { gap: 50px; }
  .contact { gap: 60px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-header { padding-inline: 18px; }
  .brand strong { font-size: 16px; }
  .hero-copy { min-height: 600px; padding: 68px 20px 34px; }
  .hero h1 { font-size: clamp(52px, 16vw, 74px); }
  .hero-copy > p:first-of-type { margin-top: 28px; font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 30px; }
  .hero-boundary { padding-top: 34px; }
  .hero-visual { min-height: 108vw; }
  .hero-visual figcaption { right: 12px; bottom: 12px; }
  .scope, .process, .progress, .materials, .contact { padding-inline: 20px; }
  .scope { padding-block: 88px; }
  .section-heading h2 { font-size: 44px; }
  .scope-rail { margin-top: 56px; }
  .chapter { padding: 0 20px 88px; }
  .chapter-copy h2 { font-size: 43px; }
  .chapter-main-image { min-height: 128vw; }
  .chapter-detail-image { width: 78%; margin-top: -54px; border-width: 8px; }
  .process { padding-block: 88px; }
  .process-spine { top: 300px; bottom: 120px; left: 20px; }
  .process-figure { width: calc(100% - 22px); margin: 70px 0 0 22px !important; }
  .process-figure figcaption { grid-template-columns: 1fr; gap: 8px; }
  .noodle-chapter figure { min-height: 136vw; }
  .noodle-copy { padding: 80px 20px; }
  .noodle-copy h2, .progress h2, .materials h2, .contact h2 { font-size: 46px; }
  .progress, .materials, .contact { padding-block: 86px; }
  .site-footer { padding: 42px 20px; grid-template-columns: 1fr; gap: 18px; }
}

@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-visual { clip-path: inset(0); }
}
