/* Homepage · Drawing to Delivery + Documents (2026-09-20). Brand dark = ink #0E1733. */
@font-face {
  font-family: "YOOAN Allura";
  src: url("../fonts/allura-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.yh-dd {
  --dd-bg: #0E1733;
  --dd-bg-2: #131F42;
  --dd-text: #FBF7E9;
  --dd-soft: rgba(251, 247, 233, .72);
  --dd-mute: rgba(251, 247, 233, .5);
  --dd-line: rgba(233, 224, 190, .22);
  --dd-accent: #F5A20E;
  --dd-hand: "YOOAN Allura", "Bradley Hand", cursive;
  --dd-sign: "YOOAN Allura", "Snell Roundhand", cursive;
  --dd-gutter: clamp(20px, 4vw, 64px);
  background: var(--dd-bg);
  color: var(--dd-text);
  margin-block: 0 !important;
  max-width: none !important;
  position: relative;
}
.yh-dd * { box-sizing: border-box; }
.yh-dd__wrap { width: min(1340px, 100% - 2 * var(--dd-gutter)); margin-inline: auto; }
.yh-dd__eyebrow {
  font-family: "Geist Mono Variable", ui-monospace, monospace; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dd-accent); margin: 0 0 22px;
}
.yh-dd__title {
  font-family: "Fustat Variable", "Schibsted Grotesk Variable", sans-serif; font-weight: 300;
  font-size: clamp(34px, 3.7vw, 58px); line-height: 1.06; letter-spacing: -.02em;
  color: var(--dd-text); margin: 0 0 26px; max-width: 15ch;
}
.yh-dd__title--sm { font-size: clamp(28px, 2.6vw, 40px); max-width: 17ch; }
.yh-dd__lead { font-size: 16px; line-height: 1.65; color: var(--dd-soft); margin: 0; max-width: 46ch; }
.yh-dd__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Buttons (self-contained so the global CTA script leaves them alone) */
.dd-btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 22px; border-radius: 999px;
  font: 600 14px/1 "Schibsted Grotesk Variable", sans-serif; letter-spacing: .01em; text-decoration: none !important;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.dd-btn i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.dd-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dd-btn:hover i { transform: rotate(45deg); }
.dd-btn--primary { background: var(--dd-accent); color: #0E1733 !important; }
.dd-btn--primary i { background: #0E1733; color: var(--dd-accent); }
.dd-btn--primary:hover { background: #FBF7E9; }
.dd-btn--ghost { border: 1px solid rgba(251,247,233,.4); color: var(--dd-text) !important; }
.dd-btn--ghost i { background: var(--dd-text); color: #0E1733; }
.dd-btn--ghost:hover { border-color: var(--dd-text); }

/* Media frame + placeholder */
.dd-media { margin: 0; position: relative; aspect-ratio: var(--dd-ratio, 4/5); overflow: hidden; background: var(--dd-bg-2); }
.dd-media__inner { position: absolute; inset: -9% 0; will-change: transform; }
.dd-media__inner img, .dd-media__inner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dd-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  padding: 24px; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(233,224,190,.05) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #1B2A55 0%, #111B3A 100%);
}
.dd-media:has(.dd-ph)::after { content: ''; position: absolute; inset: 12px; border: 1px dashed rgba(233,224,190,.28); pointer-events: none; }
.dd-ph__tag { font: 500 11px/1 "Geist Mono Variable", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--dd-accent); }
.dd-ph__hint { font-size: 13px; line-height: 1.45; color: var(--dd-mute); max-width: 26ch; }

/* Hand-drawn annotation */
.dd-note { position: absolute; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; }
.dd-note__text {
  font-family: var(--dd-hand); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.05; letter-spacing: .04em;
  text-transform: uppercase; color: var(--dd-text); opacity: 0; transform: translateY(8px);
  transition: opacity .8s ease .55s, transform .8s ease .55s; white-space: nowrap;
}
.dd-arrow { width: clamp(90px, 9vw, 150px); height: auto; overflow: visible; flex: none; margin-bottom: 14px; }
.dd-arrow path { fill: none; stroke: var(--dd-text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dd-arrow__line { transition: stroke-dashoffset 1s cubic-bezier(.6,0,.2,1); }
.dd-arrow__head { transition: stroke-dashoffset .35s ease 1s; }
.dd-note.is-drawn .dd-note__text { opacity: 1; transform: none; }
.dd-note.is-drawn path { stroke-dashoffset: 0; }

/* Generic reveal */
[data-dd-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s ease var(--dd-delay, 0ms), transform 1.1s cubic-bezier(.2,.8,.2,1) var(--dd-delay, 0ms); }
[data-dd-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Section A · Manufacturing ---------- */
.yh-dd-mfg { padding-block: clamp(96px, 11vw, 170px) clamp(80px, 9vw, 140px); overflow: clip; }
.yh-dd-mfg__stage {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
}
.yh-dd-mfg__a { grid-column: 1 / span 4; grid-row: 1 / span 2; position: relative; align-self: start; will-change: transform; }
.yh-dd-mfg__copy { grid-column: 7 / span 6; grid-row: 1; padding-top: clamp(0px, 1vw, 12px); }
.yh-dd-mfg__b { grid-column: 6 / span 4; grid-row: 2; margin-top: clamp(64px, 8vw, 130px); will-change: transform; }
.dd-signature {
  position: absolute; right: -18%; bottom: 7%; margin: 0; font-family: var(--dd-sign); font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1; color: var(--dd-text); white-space: nowrap; text-shadow: 0 2px 18px rgba(0,0,0,.35); transform: rotate(-4deg);
}
.dd-signature.is-in { transform: rotate(-4deg); }
.yh-dd-mfg__note { grid-row: 2; grid-column: 2 / span 4; justify-self: end; align-self: end; position: relative; margin-bottom: 24%; margin-right: -2vw; }
.yh-dd-steps {
  list-style: none; margin: clamp(90px, 10vw, 150px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px);
}
.yh-dd-step { border-top: 1px solid var(--dd-line); padding-top: 22px; }
.yh-dd-step__no { font: 500 12px/1 "Geist Mono Variable", monospace; color: var(--dd-accent); letter-spacing: .1em; }
.yh-dd-step h3 { font-family: "Fustat Variable", sans-serif; font-weight: 400; font-size: clamp(20px, 1.6vw, 25px); color: var(--dd-text); margin: 22px 0 12px; }
.yh-dd-step p { font-size: 14.5px; line-height: 1.6; color: var(--dd-soft); margin: 0; }

/* ---------- Section B · Documents (pinned horizontal) ---------- */
.yh-dd-docs { border-top: 1px solid rgba(233,224,190,.08); }
.yh-dd-docs__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.yh-dd-docs__track {
  display: flex; align-items: center; gap: clamp(40px, 5vw, 96px); padding-inline: var(--dd-gutter) 0;
  will-change: transform; height: 100%;
}
.yh-dd-docs__intro { flex: none; position: relative; width: clamp(560px, 66vw, 1040px); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.dd-bigword {
  margin: 0 0 clamp(20px, 3vh, 40px); overflow: hidden; line-height: .86; padding-bottom: .04em;
  font-family: "Fustat Variable", sans-serif; font-weight: 200; text-transform: uppercase; letter-spacing: -.045em;
  font-size: clamp(80px, 11vw, 200px); color: var(--dd-text); white-space: nowrap;
}
.dd-bigword span { display: inline-block; transform: translateY(var(--dd-rise, 100%)); will-change: transform; }
.yh-dd-docs__copy { max-width: 520px; padding-left: .4vw; }
.dd-card { flex: none; position: relative; will-change: transform; }
.dd-card--1 { width: clamp(260px, 22vw, 360px); align-self: flex-start; margin-top: 11vh; margin-left: clamp(-240px, -12vw, -90px); z-index: 2; }
.dd-card--2 { width: clamp(250px, 20vw, 330px); align-self: flex-end; margin-bottom: 9vh; }
.dd-card--3 { width: clamp(260px, 21vw, 340px); align-self: flex-start; margin-top: 14vh; }
.dd-card--4 { width: clamp(300px, 26vw, 420px); align-self: flex-end; margin-bottom: 12vh; }
.dd-card .dd-media { box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.dd-card__body { padding-top: 18px; max-width: 34ch; }
.dd-card__status { font: 500 11px/1 "Geist Mono Variable", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dd-accent); }
.dd-card h3 { font-family: "Fustat Variable", sans-serif; font-weight: 400; font-size: clamp(19px, 1.45vw, 23px); color: var(--dd-text); margin: 12px 0 8px; }
.dd-card p { font-size: 14px; line-height: 1.55; color: var(--dd-soft); margin: 0 0 12px; }
.dd-card__link { font-size: 14px; color: var(--dd-text) !important; text-decoration: none; border-bottom: 1px solid rgba(251,247,233,.35); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.dd-card__link:hover { color: var(--dd-accent) !important; border-color: var(--dd-accent); }
.dd-card__note { right: 100%; top: 8%; margin-right: 10px; flex-direction: column; align-items: flex-end; z-index: 3; }
.dd-card__note .dd-arrow { transform: scaleY(-1) rotate(8deg); margin: 4px 0 0; }
.yh-dd-docs__end { flex: none; width: 12vw; height: 1px; }

/* ---------- Tablet / mobile: no pin, natural flow ---------- */
@media (max-width: 960px) {
  .yh-dd-mfg__stage { display: block; }
  .yh-dd-mfg__a { width: 72%; margin-bottom: 48px; }
  .dd-signature { right: -30%; }
  .yh-dd-mfg__b { width: 70%; margin: 56px 0 0 auto; }
  .yh-dd-mfg__note { position: relative; margin: 28px 0 0; justify-content: flex-start; }
  .yh-dd-steps { grid-template-columns: 1fr 1fr; margin-top: 72px; }
  .yh-dd-docs__pin { position: static; height: auto; overflow: visible; display: block; padding-block: 90px; }
  .yh-dd-docs__track { flex-direction: column; align-items: stretch; transform: none !important; padding-inline: var(--dd-gutter); height: auto; gap: 56px; }
  .yh-dd-docs__intro { width: auto; height: auto; }
  .dd-bigword { font-size: 19vw; }
  .dd-card { width: 78% !important; margin: 0 !important; transform: none !important; }
  .dd-card:nth-of-type(even) { align-self: flex-end; }
  .dd-card__note { display: none; }
  .yh-dd-docs__end { display: none; }
}
@media (max-width: 600px) { .yh-dd-steps { grid-template-columns: 1fr; } .yh-dd-mfg__a, .yh-dd-mfg__b, .dd-card { width: 100% !important; } .dd-signature { right: 6%; } }

@media (prefers-reduced-motion: reduce) {
  [data-dd-reveal], .dd-note__text { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dd-arrow path { stroke-dashoffset: 0 !important; transition: none !important; }
  .dd-bigword span { transform: none !important; }
}

/* Remove WP block-gap strips between adjacent dark sections */
.yh-dd + * , * + .yh-dd { margin-block-start: 0 !important; }

/* 2026-10-15 手写体批注改为与 About Us 一致:不再全大写(手写体全大写几乎认不出),字距归零、放大、品牌橙 */
.dd-note__text { font-family: "YOOAN Allura", "Snell Roundhand", "Brush Script MT", cursive; font-size: clamp(26px, 2.1vw, 34px); line-height: 1.1; letter-spacing: 0; text-transform: none; color: #F5A20E; }
.dd-arrow path { stroke: #F5A20E; }

/* Keep the horizontal story; move the complete row as one, without per-card drift. */
html body #technical-resources .yh-dd-docs__pin {
  position: sticky; top: 0; height: 100svh; display: flex; overflow: hidden;
  align-items: center; padding-block: 0 !important;
}
html body #technical-resources .yh-dd-docs__track {
  display: flex !important; align-items: flex-start; gap: clamp(32px, 4vw, 64px) !important;
  width: max-content; height: auto; margin: 0;
  padding-inline: var(--dd-gutter) !important; overflow: visible;
  will-change: transform; scroll-snap-type: none;
}
html body #technical-resources .yh-dd-docs__intro {
  position: relative; width: clamp(560px, 62vw, 940px) !important; height: auto;
  align-self: center; padding-right: 40px;
}
html body #technical-resources .yh-dd-docs__copy { max-width: 520px; padding: 0; }
html body #technical-resources .dd-card {
  width: clamp(280px, 25vw, 420px) !important; min-width: 0; margin: 0 !important; align-self: flex-start;
  transform: none !important; will-change: auto;
}
html body #technical-resources .dd-card .dd-media { aspect-ratio: auto !important; height: clamp(180px, 38svh, 440px); }
html body #technical-resources .dd-media__inner {
  position: absolute; inset: 0 !important; transform: none !important; will-change: auto;
}
html body #technical-resources .dd-media img {
  display: block; width: 100% !important; height: 100% !important;
  object-fit: contain !important; object-position: center; transform: none !important;
}
html body #technical-resources .dd-card__body { max-width: none; }
html body #technical-resources .dd-card__body p { display: block; }
html body #technical-resources .dd-card__annotation { height: 84px; }
html body #technical-resources .dd-card__note {
  position: static; display: flex; flex-direction: row; align-items: center;
  justify-content: space-between; margin: 0; max-width: 100%; height: 84px;
}
html body #technical-resources .dd-note__text { white-space: normal; font-size: clamp(24px, 1.9vw, 28px); opacity: 1; transform: none; }
html body #technical-resources .dd-card__note .dd-arrow { display: block; width: 64px; margin: 0; transform: none; }
html body #technical-resources .dd-card__note .dd-arrow path { stroke-dashoffset: 0; }
html body #technical-resources .yh-dd-docs__end { display: block; width: 5vw; }
@media (max-width: 960px) {
  html body #technical-resources .yh-dd-docs__pin { position: static; height: auto; display: block; padding-block: 56px !important; }
  html body #technical-resources .yh-dd-docs__track {
    display: grid !important; grid-template-columns: repeat(3, min(82vw, 420px)) !important;
    width: 100%; gap: 24px !important; overflow-x: auto;
    transform: none !important; scroll-snap-type: x proximity; scroll-padding-inline: var(--dd-gutter);
    padding-bottom: 12px; will-change: auto;
  }
  html body #technical-resources .yh-dd-docs__intro {
    grid-column: 1 / -1; position: sticky; left: 0; width: calc(100vw - 2 * var(--dd-gutter)) !important;
    padding: 0;
  }
  html body #technical-resources .dd-card { width: 100% !important; scroll-snap-align: start; }
  html body #technical-resources .dd-card .dd-media { height: auto; aspect-ratio: 4 / 5 !important; }
  html body #technical-resources .yh-dd-docs__end { display: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 961px) {
  html body #technical-resources .yh-dd-docs__pin { position: static; height: auto; padding-block: 64px !important; }
  html body #technical-resources .yh-dd-docs__track { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; transform: none !important; }
  html body #technical-resources .yh-dd-docs__intro { grid-column: 1 / -1; width: auto !important; }
  html body #technical-resources .dd-card { width: 100% !important; }
  html body #technical-resources .yh-dd-docs__end { display: none; }
}
