@font-face {
  font-family: "Instrument Sans";
  src: url("./instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Dreamax Chinese Display";
  src: url("./noto-serif-sc-display.woff2?v=apps") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f7f2;
  --ink: #24231e;
  --muted: #56544d;
  --rule: #cbc7bd;
  --verm: #9d3725;
  --edge: clamp(22px, 5.6vw, 92px);
  --max: 1408px;
  --bar: 76px;
  --ease: cubic-bezier(.2,.75,.25,1);
  --serif: "Instrument Serif", "Dreamax Chinese Display", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
h1, h2, p, ul, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { color: #fff; background: #8a3325; }
.frame { width: min(calc(100% - 2 * var(--edge)), var(--max)); margin-inline: auto; }
#company, #services, #contact { scroll-margin-top: calc(var(--bar) + 10px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; z-index: 5; left: var(--edge); top: 8px; padding: 8px 16px;
  transform: translateY(-180%); background: var(--ink); color: #fff;
}
.skip:focus { transform: none; }

.masthead { position: sticky; z-index: 4; top: 0; background: var(--paper); }
.bar {
  min-height: var(--bar); display: flex; align-items: center; justify-content: space-between;
  gap: 20px; border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 2.05rem; font-weight: 620; letter-spacing: -.073em; line-height: 1;
}
.navigation { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.navigation a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; font-size: .94rem; line-height: 1.3;
}
.navigation a::after {
  content: ""; position: absolute; right: 0; bottom: 8px; left: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
}
.navigation a:is(:hover,:focus-visible)::after { transform: scaleX(1); }
.navigation .language { margin-left: 6px; min-width: 30px; }
.language::before {
  content: ""; position: absolute; left: -17px; top: 50%; width: 1px; height: 14px;
  transform: translateY(-50%); background: var(--rule);
}

.hero { position: relative; isolation: isolate; background: var(--paper); overflow: hidden; }
.hero-inner {
  min-height: clamp(465px, 39.5vw, 650px); display: flex; align-items: center;
  position: relative; z-index: 1; pointer-events: none;
}
.hero-copy {
  width: 42%; padding-block: clamp(48px, 6vw, 100px);
  pointer-events: auto;
}
h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(4.4rem, 6.85vw, 7.6rem);
  line-height: .99; letter-spacing: -.045em;
}
html[lang="zh-CN"] h1 {
  font-family: "Dreamax Chinese Display", "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 500; font-size: clamp(3.5rem, 5.52vw, 6.45rem);
  line-height: 1.14; letter-spacing: -.055em;
}
h1 .line { display: block; overflow: hidden; margin-block: -.07em; padding-block: .07em; }
h1 .line > span { display: inline-block; white-space: nowrap; }
h1 em { font: italic 400 1em/1 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; color: var(--verm); }
html[lang="zh-CN"] h1 em { font-size: 1.14em; }
.hero-copy p {
  max-width: 27rem; margin-top: clamp(24px, 2.7vw, 45px); color: var(--muted);
  font-size: clamp(1rem, 1.19vw, 1.13rem); line-height: 1.7; text-wrap: pretty;
}
.artwork {
  position: absolute; inset: 0 0 0 37%; overflow: hidden;
  background: #ebddc8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
.art-plane {
  position: absolute; left: 57%; top: 50%; height: 100%; width: auto; aspect-ratio: 3 / 1;
  transform: translate(-59%, -50%);
}
.art-plane img { display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.art-poster, .art-paper, .layers { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-poster, .art-paper { object-fit: fill; }
.layers { opacity: 0; }
.artwork.is-layered .layers { opacity: 1; }
.artwork.is-layered .art-poster { opacity: 0; }
.bird-track { position: absolute; left: 42.9%; top: 5.5%; width: 32%; height: 88.5%; }
.bird-flight, .paper-bird { width: 100%; height: 100%; }
.bird-flight { transform-origin: 61% 47%; }
.paper-bird { object-fit: contain; filter: drop-shadow(12px 17px 9px rgb(72 48 26 / 28%)); }
.replay {
  position: absolute; right: clamp(15px, 2.1vw, 35px); bottom: clamp(13px, 1.6vw, 26px);
  z-index: 2; display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgb(59 47 34 / 42%); border-radius: 50%; color: #352e25;
  background: rgb(249 245 235 / 75%); cursor: pointer;
}
.replay span {
  margin-left: 2px; width: 0; height: 0; border-left: 8px solid currentColor;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.replay:is(:hover,:focus-visible) { color: var(--verm); border-color: currentColor; background: var(--paper); }
.replay[aria-disabled="true"] { opacity: .65; }

.products {
  display: grid; grid-template-columns: minmax(104px, .45fr) minmax(0, 3fr);
  align-items: start; gap: clamp(24px, 3vw, 52px);
  padding-block: clamp(59px, 6.8vw, 110px);
}
.products h2 { margin-top: 8px; font: 400 clamp(2rem, 2.6vw, 2.95rem)/1.1 var(--serif); letter-spacing: -.035em; }
html[lang="zh-CN"] .products h2 { font: 500 clamp(1.6rem, 2.1vw, 2.3rem)/1.25 "Dreamax Chinese Display", "Songti SC", serif; }
.product-list {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(18px, 2.4vw, 40px); padding: 0; list-style: none;
}
.product {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 6px 8px; padding-block: clamp(19px, 2vw, 32px) 11px;
  border-top: 1px solid var(--rule);
}
.product::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: var(--verm); transform: scaleX(0); transform-origin: left;
}
.product:is(:hover,:focus-visible)::before { transform: scaleX(1); }
.product-name { font-size: clamp(2.2rem,3.3vw,3.8rem); line-height: 1.02; font-weight: 490; letter-spacing: -.065em; }
.product-detail { grid-column: 1 / -1; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.product:is(:hover,:focus-visible) .product-name { color: var(--verm); }
.sheets, .colornote-icon, .signals { grid-row: 1; grid-column: 2; justify-self: end; }
.sheets, .signals { width: 52px; height: 48px; position: relative; color: #6d6c61; }
.colornote-icon { display: block; border-radius: 12px; }
.sheets i {
  position: absolute; top: 6px; left: 12px; width: 26px; height: 32px;
  border: 1px solid currentColor; background: var(--paper); transform-origin: 50% 85%;
}
.sheets i:nth-child(1) { transform: translateX(-4px) rotate(-18deg); }
.sheets i:nth-child(2) { transform: translateX(-1px) rotate(-4deg); }
.sheets i:nth-child(3) { transform: translateX(3px) rotate(10deg); border-color: var(--verm); }
.signals i {
  position: absolute; left: 4px; top: 23px; width: 43px; height: 1px; background: currentColor;
  transform-origin: 88% 50%;
}
.signals i::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
}
.signals i:first-child { transform: rotate(17deg); }
.signals i:nth-child(2) { color: var(--verm); }
.signals i:last-child { transform: rotate(-17deg); }

.colophon { color: #f7f4eb; background: #24241f; }
.colophon .frame { padding-block: clamp(44px, 5.2vw, 80px) 23px; }
.mail {
  display: inline-block; position: relative; font: 400 clamp(2.4rem, 4.7vw, 5.8rem)/1.17 var(--serif);
  letter-spacing: -.035em; overflow-wrap: anywhere;
}
.mail::after {
  content: ""; height: 1px; position: absolute; inset: auto 0 0; background: currentColor;
  transform: scaleX(0); transform-origin: left;
}
.mail:is(:hover,:focus-visible)::after { transform: scaleX(1); }
.legal {
  display: flex; justify-content: space-between; gap: 6px 25px; flex-wrap: wrap;
  border-top: 1px solid #55554d; padding-top: 18px; margin-top: clamp(35px, 4vw, 72px);
  color: #d1d0c5; font-size: .875rem;
}

@media (min-width: 1900px) {
  .artwork { inset-inline-end: max(0px, calc((100vw - 1750px) / 2)); }
}
@media (max-width: 900px) {
  :root { --bar: 68px; }
  .hero-inner { min-height: clamp(345px, 47.5vw, 430px); }
  .hero-copy { width: 47%; }
  .hero-copy p { max-width: 21rem; }
  .artwork { left: 40.5%; --travel: 20px; --lift: 12px; }
  .art-plane { left: 49%; }
  h1 { font-size: clamp(3.65rem, 7.8vw, 4.75rem); }
  html[lang="zh-CN"] h1 { font-size: clamp(3rem, 6.15vw, 3.7rem); }
  .products { grid-template-columns: 1fr; gap: 24px; }
  .products h2 { margin: 0; }
}
@media (max-width: 760px) {
  .product-list { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  :root { --bar: 64px; }
  .bar { gap: 14px; }
  .wordmark { font-size: 1.75rem; }
  .navigation { gap: 16px; }
  .navigation a { min-width: 32px; font-size: .9rem; }
  .navigation .language { margin-left: 0; }
  .language::before { left: -7px; }
  .hero-inner { min-height: 0; }
  .hero-copy { width: 100%; padding-block: 41px 28px; }
  h1 { font-size: clamp(3.7rem, 12vw, 5.1rem); }
  html[lang="zh-CN"] h1 { font-size: clamp(2.8rem, 10vw, 4.4rem); }
  .hero-copy p { max-width: 27rem; font-size: 1rem; line-height: 1.6; margin-top: 20px; }
  .artwork {
    position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1.5;
    --travel: 17px; --lift: 9px;
    -webkit-mask-image: none; mask-image: none;
  }
  .art-plane { left: 0; transform: translate(-30.2026%, -50%); }
  .art-poster { left: 30.2026%; width: 50%; }
  .products { padding-block: 41px; gap: 20px; }
  .product { padding-block: 16px 14px; row-gap: 4px; }
  .product-name { font-size: 2.45rem; }
  .legal { display: grid; margin-top: 33px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .line > span { animation: typeset .9s var(--ease) both; }
  .line:nth-child(2) > span { animation-delay: .09s; }
  .hero-copy p { animation: appear .8s .15s var(--ease) both; }
  .art-poster, .layers { transition: opacity .28s ease-out; }
  .artwork.is-layered .bird-track {
    transform: translate3d(calc(var(--mx, 0) * 17px + var(--flight, 0) * var(--travel, 34px)),
      calc(var(--my, 0) * 12px - var(--flight, 0) * var(--lift, 18px)), 0)
      rotate(calc(var(--mx, 0) * 1.9deg - var(--flight, 0) * 2.1deg));
    transition: transform .5s var(--ease);
  }
  .artwork.is-layered .art-paper {
    transform: translate3d(calc(var(--mx, 0) * -3px), calc(var(--my, 0) * -3px), 0) scale(1.014);
    transition: transform .65s var(--ease);
  }
  .artwork.is-layered .replay { display: grid; transition: color .25s, background .25s, opacity .25s; }
  .artwork.playing .bird-flight { animation: flight 2.25s cubic-bezier(.38,.02,.31,1) both; }
  .artwork.playing .paper-bird { animation: lift-shadow 2.25s ease-in-out both; }
  [data-reveal] { transition: opacity .65s var(--ease), transform .8s var(--ease); }
  [data-reveal].awaiting:not(:focus-within) { opacity: 0; transform: translateY(20px); }
  .product-list li:nth-child(2) { transition-delay: .08s; }
  .product-list li:nth-child(3) { transition-delay: .16s; }
  .product::before, .mail::after, .navigation a::after { transition: transform .45s var(--ease); }
  .product-name, .sheets i, .colornote-icon, .signals i, .signals i::before { transition: color .25s, transform .5s var(--ease); }
  .product:is(:hover,:focus-visible) .colornote-icon { transform: rotate(-7deg) scale(1.08); }
  .product:is(:hover,:focus-visible) .sheets i:first-child { transform: translateX(-9px) rotate(-31deg); }
  .product:is(:hover,:focus-visible) .sheets i:last-child { transform: translateX(8px) rotate(21deg); }
  .product:is(:hover,:focus-visible) .signals i:first-child { transform: rotate(24deg); }
  .product:is(:hover,:focus-visible) .signals i:last-child { transform: rotate(-24deg); }
  .product:is(:hover,:focus-visible) .signals i::before { transform: translateX(31px); }
}
@keyframes typeset {
  from { transform: translateY(.9em) rotate(1.5deg); opacity: .2; }
  to { transform: none; opacity: 1; }
}
@keyframes appear {
  from { transform: translateY(9px); opacity: .25; }
  to { transform: none; opacity: 1; }
}
@keyframes flight {
  0%, 100% { transform: perspective(1100px) translate3d(0,0,0) rotateX(0) rotateY(0) rotateZ(0); }
  28% { transform: perspective(1100px) translate3d(-6%,3%,0) rotateX(-14deg) rotateY(13deg) rotateZ(4deg) scale(.96); }
  68% { transform: perspective(1100px) translate3d(3%,-2%,0) rotateX(9deg) rotateY(-8deg) rotateZ(-3deg) scale(1.015); }
}
@keyframes lift-shadow {
  0%, 100% { filter: drop-shadow(12px 17px 9px rgb(72 48 26 / 28%)); }
  28% { filter: drop-shadow(5px 8px 4px rgb(72 48 26 / 33%)); }
  68% { filter: drop-shadow(17px 25px 13px rgb(72 48 26 / 22%)); }
}
