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

:root {
  --paper: #f1e7d5;
  --paper-light: #f8f2e7;
  --ink: #1b1813;
  --muted: #5d5549;
  --red: #a93624;
  --red-dark: #762114;
  --gold: #c29417;
  --olive: #59642d;
  --rule: rgba(27, 24, 19, .42);
  --display: "Smiley Sans", "Microsoft YaHei", sans-serif;
  --body: "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
::selection { color: var(--paper-light); background: var(--red-dark); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 15px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  min-height: 78px;
  padding: 15px clamp(18px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.brand { min-height: 44px; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.brand small { margin-top: 5px; font-size: 9px; letter-spacing: .19em; }
.site-nav { display: flex; align-items: center; gap: clamp(19px, 2.4vw, 42px); }
.site-nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-action { padding: 4px 20px; color: var(--paper-light); background: var(--red-dark); }
.menu-toggle { display: none; min-width: 52px; min-height: 44px; color: inherit; border: 0; background: transparent; cursor: pointer; }

.hero {
  position: relative;
  min-height: min(960px, 100svh);
  padding: 125px clamp(18px, 4vw, 68px) 60px;
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(480px, 1.7fr) minmax(230px, .65fr);
  gap: clamp(14px, 2vw, 34px);
  align-items: center;
  overflow: hidden;
}
.hero::after {
  content: "+";
  position: absolute;
  right: 3.5vw;
  bottom: 14px;
  font-size: 36px;
  font-weight: 300;
}
.hero-title { align-self: start; padding-top: 13vh; z-index: 2; }
.hero-title p { max-width: 18ch; margin: 0; font-size: 14px; letter-spacing: .12em; }
.hero-dieline {
  position: relative;
  width: min(780px, 64vw);
  margin: 0 -8vw 0 -6vw;
  transform: rotate(-5deg);
  transform-origin: 53% 48%;
  z-index: 1;
  transition: transform 950ms cubic-bezier(.16, 1, .3, 1), filter 950ms cubic-bezier(.16, 1, .3, 1);
}
.hero-dieline img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; clip-path: polygon(5% 0, 100% 7%, 94% 100%, 0 90%); filter: saturate(.92) contrast(1.04); }
.hero-dieline h1 {
  position: absolute;
  z-index: 4;
  left: 6%;
  top: 43%;
  width: 88%;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 780;
  line-height: .9;
  letter-spacing: -.035em;
  text-align: center;
  transform: rotate(6deg);
  text-shadow: 0 2px 12px rgba(241,231,213,.82);
}
.kernel-panel {
  position: absolute;
  z-index: 4;
  width: 21%;
  min-height: 25%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper-light);
  background: rgba(27,24,19,.88);
  border: 1px dashed rgba(248,242,231,.62);
}
.kernel-panel small { font-size: 8px; letter-spacing: .15em; }
.kernel-panel strong { font-family: var(--display); font-size: clamp(28px, 3vw, 48px); line-height: 1; }
.kernel-panel-peanut { left: 14%; top: 14%; transform: rotate(6deg); }
.kernel-panel-bean { right: 11%; bottom: 13%; color: var(--ink); background: rgba(89,100,45,.9); transform: rotate(6deg); }
.tear-action {
  position: absolute;
  z-index: 5;
  right: 7%;
  top: 12%;
  min-width: 142px;
  min-height: 50px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--paper-light);
  background: var(--red-dark);
  text-decoration: none;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%, 6% 50%);
  transform: rotate(6deg);
}
.tear-action:hover { background: var(--ink); }
.tear-action svg, .direction-copy a svg, form button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; flex: 0 0 auto; }
.hero-dieline figcaption {
  position: absolute;
  left: 10%;
  bottom: 4%;
  max-width: 46ch;
  padding: 7px 12px;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 12px;
  letter-spacing: .08em;
}
.fold { position: absolute; z-index: 2; pointer-events: none; border-top: 1px dashed rgba(27, 24, 19, .7); }
.fold-a { width: 78%; left: 4%; top: 33%; transform: rotate(12deg); }
.fold-b { width: 62%; right: 1%; top: 62%; transform: rotate(-18deg); }
body[data-folded="true"] .hero-dieline { transform: rotate(-2deg) translateY(12px) scale(.985); filter: drop-shadow(10px 18px 20px rgba(27,24,19,.18)); }
.hero-statement { align-self: end; padding: 0 0 7vh; z-index: 2; }
.hero-statement p { margin: 0 0 26px; font-family: var(--display); font-size: clamp(27px, 2.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.direction-copy a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 15px;
  color: var(--paper-light);
  background: var(--red-dark);
  text-decoration: none;
}
.direction-copy a:hover { background: var(--ink); }

.company {
  padding: clamp(72px, 9vw, 150px) clamp(18px, 7vw, 118px);
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: clamp(30px, 6vw, 100px);
  background: var(--ink);
  color: var(--paper-light);
}
.company-copy { align-self: center; }
.company h2, .section-intro h2, .communication h2, .development h2, .contact h2 {
  margin: 0 0 24px;
  max-width: 13ch;
  font-family: var(--display);
  font-size: clamp(44px, 5.8vw, 82px);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.company-copy p, .section-intro p, .communication-title p, .development-copy p, .contact-copy p { max-width: 68ch; margin: 0; font-size: 17px; }
.kernel-spread { margin: 0; align-self: center; }
.kernel-spread img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: polygon(0 8%, 96% 0, 100% 92%, 5% 100%); }
.identity-ledger { grid-column: 1 / -1; margin: 35px 0 0; border-top: 1px solid rgba(248,242,231,.5); }
.identity-ledger div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(248,242,231,.25); }
.identity-ledger dt { color: #d7cdbb; font-size: 13px; }
.identity-ledger dd { margin: 0; font-size: 17px; }

.directions { padding: clamp(80px, 10vw, 160px) 0 0; }
.section-intro { padding: 0 clamp(18px, 8vw, 138px) clamp(60px, 8vw, 120px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 6vw; align-items: end; }
.direction { min-height: 72vh; display: grid; grid-template-columns: 42% 58%; align-items: stretch; border-top: 1px solid var(--rule); }
.direction-broadbean { grid-template-columns: 58% 42%; }
.direction-broadbean .direction-copy { order: 2; }
.direction-copy { position: relative; padding: clamp(50px, 8vw, 135px) clamp(24px, 7vw, 112px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.direction-copy > span { position: absolute; right: -3vw; top: -10vh; color: rgba(27,24,19,.05); font-family: var(--display); font-size: clamp(250px, 35vw, 560px); line-height: 1; }
.direction-copy h3 { position: relative; margin: 0 0 26px; font-family: var(--display); font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -.03em; }
.direction-copy p { position: relative; max-width: 32ch; margin: 0 0 35px; font-size: 17px; }
.direction-copy a { position: relative; align-self: flex-start; background: var(--ink); }
.direction figure { margin: 0; min-height: 580px; overflow: hidden; }
.direction figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease-out; }
.direction:hover figure img { transform: scale(1.015); }
.direction-broadbean { color: var(--paper-light); background: var(--olive); }
.direction-broadbean .direction-copy > span { color: rgba(248,242,231,.08); }
.direction-broadbean .direction-copy a { color: var(--ink); background: var(--gold); }
.package-run { position: relative; margin: 0; background: var(--red-dark); }
.package-run img { width: 100%; max-height: 850px; object-fit: cover; opacity: .9; }
.package-run figcaption { position: absolute; right: 3vw; bottom: 3vw; max-width: 28ch; padding: 16px 19px; color: var(--paper-light); background: var(--red-dark); font-size: 16px; }

.communication { padding: clamp(90px, 11vw, 180px) clamp(18px, 6vw, 104px); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 100px); }
.communication-title { align-self: end; }
.process-figure { margin: 0; }
.process-figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; clip-path: polygon(4% 0, 100% 5%, 96% 100%, 0 94%); }
.communication-path { grid-column: 1 / -1; margin: 35px 0 0; padding: 0; list-style: none; counter-reset: route; border-top: 1px solid var(--rule); }
.communication-path li { counter-increment: route; min-height: 106px; display: grid; grid-template-columns: 70px .7fr 1.3fr; gap: 22px; align-items: center; border-bottom: 1px solid var(--rule); }
.communication-path li::before { content: counter(route, decimal-leading-zero); color: var(--red-dark); font-variant-numeric: tabular-nums; }
.communication-path strong { font-family: var(--display); font-size: 29px; font-weight: 650; }
.communication-path span { color: var(--muted); }
.quality-figure { grid-column: 1 / -1; margin: 35px 0 0 23%; position: relative; }
.quality-figure img { width: 100%; max-height: 760px; object-fit: cover; }
.quality-figure figcaption { position: absolute; left: -23%; bottom: 11%; width: 32%; padding: 22px; color: var(--paper-light); background: var(--ink); }

.development { padding: clamp(90px, 10vw, 160px) clamp(18px, 7vw, 118px); color: var(--paper-light); background: var(--red-dark); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(35px, 7vw, 110px); }
.development-copy { align-self: center; }
.development h2 { max-width: 9ch; }
.timeline { align-self: center; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; border-top: 1px solid rgba(248,242,231,.6); border-bottom: 1px solid rgba(248,242,231,.6); }
.timeline div { padding: 40px 10px; }
.timeline time { font-family: var(--display); font-size: clamp(42px, 5vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.timeline p { margin: 13px 0 0; max-width: 15ch; }
.timeline-fold { width: 50px; height: 50px; border-top: 1px solid var(--paper-light); border-right: 1px solid var(--paper-light); transform: rotate(45deg); }
.timeline-figure { grid-column: 1 / -1; margin: 25px 0 0; }
.timeline-figure img { width: 100%; max-height: 600px; object-fit: cover; mix-blend-mode: luminosity; opacity: .86; }

.contact { padding: clamp(90px, 11vw, 180px) clamp(18px, 8vw, 138px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 130px); background: var(--gold); }
.contact-copy { align-self: start; }
.contact h2 { max-width: 10ch; }
form { border-top: 2px solid var(--ink); }
form label { display: grid; grid-template-columns: minmax(130px, .45fr) 1fr; gap: 20px; align-items: start; padding: 18px 0; border-bottom: 1px solid rgba(27,24,19,.55); font-size: 14px; }
input, textarea { width: 100%; min-height: 48px; padding: 8px 12px; color: var(--ink); background: rgba(248,242,231,.42); border: 1px solid rgba(27,24,19,.62); border-radius: 0; caret-color: var(--red-dark); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
form button { min-height: 52px; margin-top: 24px; padding: 0 22px; display: inline-flex; align-items: center; gap: 20px; color: var(--paper-light); background: var(--ink); border: 0; cursor: pointer; }
form button:hover { background: var(--red-dark); }
.form-status { min-height: 28px; margin: 14px 0 0; font-weight: 600; }
.form-status[data-state="error"] { color: #64170d; }

.site-footer { padding: 45px clamp(18px, 4vw, 68px); display: grid; grid-template-columns: 1fr auto; gap: 25px; color: var(--paper-light); background: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand p { margin: 0; font-family: var(--display); font-size: 22px; }
.site-footer nav { display: flex; align-items: center; gap: 26px; }
.site-footer a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.visual-note { grid-column: 1 / -1; margin: 10px 0 0; color: #cfc4b1; font-size: 12px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: .9fr 1.1fr; align-items: end; }
  .hero-title { padding-top: 7vh; }
  .hero-dieline { grid-column: 1 / -1; grid-row: 2; width: 82vw; margin: -3vh auto -8vh; }
  .hero-statement { grid-column: 2; grid-row: 1; padding: 0; }
  .section-intro, .company, .communication, .development, .contact { grid-template-columns: 1fr; }
  .identity-ledger, .communication-path, .quality-figure, .timeline-figure { grid-column: 1; }
  .quality-figure { margin-left: 16%; }
  .quality-figure figcaption { left: -18%; width: 35%; }
  .direction { grid-template-columns: 46% 54%; min-height: auto; }
  .direction-broadbean { grid-template-columns: 54% 46%; }
}

@media (max-width: 760px) {
  .site-header { position: absolute; min-height: 70px; padding: 12px 18px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand strong { font-size: 18px; }
  .menu-toggle { display: inline-grid; place-items: center; padding: 0; }
  .menu-toggle i, .menu-toggle i::before { display: block; width: 23px; height: 1px; background: currentColor; transition: transform 220ms ease; }
  .menu-toggle i::before { content: ""; transform: translateY(7px); }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::before { transform: rotate(-90deg); }
  .site-nav { position: absolute; top: 70px; left: 0; right: 0; display: none; padding: 15px 18px 24px; flex-direction: column; align-items: stretch; gap: 0; color: var(--paper-light); background: var(--ink); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 4px 8px; border-bottom: 1px solid rgba(248,242,231,.24); }
  .site-nav .nav-action { margin-top: 10px; justify-content: center; border: 0; }
  .hero { min-height: 100svh; padding: 105px 18px 45px; grid-template-columns: 1fr; align-content: start; }
  .hero-title, .hero-statement { grid-column: 1; grid-row: auto; }
  .hero-title { padding-top: 0; }
  .hero-title p { margin-top: 0; }
  .hero-dieline { grid-column: 1; grid-row: auto; width: 116vw; margin: 4px -13vw 0; transform: rotate(-6deg); }
  .hero-dieline h1 { left: 11%; top: 40%; width: 78%; font-size: clamp(41px, 12vw, 54px); }
  .kernel-panel { min-height: 24%; padding: 9px; }
  .kernel-panel strong { font-size: 29px; }
  .kernel-panel-peanut { left: 16%; top: 13%; }
  .kernel-panel-bean { right: 12%; bottom: 11%; }
  .tear-action { right: 10%; top: 9%; min-width: 128px; min-height: 46px; font-size: 13px; }
  .hero-dieline figcaption { max-width: 68vw; font-size: 10px; }
  .hero-statement { margin-top: -8px; padding: 0; }
  .hero-statement p { margin-bottom: 0; font-size: 27px; }
  .company, .communication, .development, .contact { padding-left: 18px; padding-right: 18px; }
  .company h2, .section-intro h2, .communication h2, .development h2, .contact h2 { font-size: clamp(43px, 12vw, 58px); }
  .company-copy p, .section-intro p, .communication-title p, .development-copy p, .contact-copy p { font-size: 16px; }
  .identity-ledger div { grid-template-columns: 92px 1fr; gap: 12px; }
  .section-intro { padding: 0 18px 55px; grid-template-columns: 1fr; }
  .direction, .direction-broadbean { grid-template-columns: 1fr; }
  .direction-broadbean .direction-copy { order: initial; }
  .direction-copy { padding: 65px 18px; }
  .direction figure { min-height: 420px; }
  .package-run img { min-height: 500px; }
  .package-run figcaption { right: 18px; bottom: 18px; }
  .communication-path li { min-height: 136px; grid-template-columns: 42px 1fr; gap: 10px; padding: 18px 0; }
  .communication-path span { grid-column: 2; }
  .quality-figure { margin: 10px 0 0; }
  .quality-figure figcaption { position: static; width: auto; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-fold { margin: -5px auto; transform: rotate(135deg); }
  .timeline div { text-align: center; }
  .timeline p { margin-left: auto; margin-right: auto; }
  form label { grid-template-columns: 1fr; gap: 8px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; gap: 12px 24px; }
  .visual-note { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-dieline { transform: rotate(-2deg) translateY(12px) scale(.985); filter: drop-shadow(10px 18px 20px rgba(27,24,19,.18)); }
}
