/* ===========================================================================
   HOSUN · HERSTAR — Canton Fair kiosk, daylight skin
   The look is the approved brochure cover (Image_20261020221117_701_268.png)
   and HOSUN_spreads_v4.pdf: a peach-to-sun gradient, ghosted HOSUN letters,
   the H mark as a watermark, white spec cards ruled in sun orange.
   The Halloween layer lives in rising.css and only overrides tokens + a few
   surfaces under body.rising.
   =========================================================================== */

:root {
  --dawn: #f7e3c4;
  --peach: #f0caa6;
  --blush: #e9b496;
  --sun: #e2702f;
  --sun-ink: #b9501a;           /* orange that still reads as text on white */
  --gold: #f6b51e;
  --ink: #231815;               /* the VI manuals' logo black */
  --ink-2: #4b3b33;
  --muted: #7b6559;
  --paper: #fffaf4;
  --card: #ffffff;
  --line: rgba(35, 24, 21, .12);
  --wash: rgba(255, 250, 244, .9);
  --shadow: 0 18px 50px rgba(120, 60, 20, .14);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --cover-ground:
    radial-gradient(110% 80% at 0% 100%, rgba(224, 108, 42, .95) 0%, rgba(224, 108, 42, 0) 62%),
    linear-gradient(100deg, #f7e2c1 0%, #f1cdab 42%, #ebb898 100%);
  --ghost: rgba(226, 136, 82, .22);
  --mark: rgba(214, 98, 36, .26);
  --display: "Poppins", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --body: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior: none;
}
img { display: block; max-width: 100%; -webkit-user-drag: none; -webkit-touch-callout: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; }
.zh { font-family: var(--cjk); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.rising-only { display: none; }

/* mode switching — one body attribute decides which layer is on screen */
.boot, .reel, .site { display: none; }
body[data-mode="boot"] .boot,
body[data-mode="reel"] .reel { display: block; }
body[data-mode="explore"] .site { display: block; }
body[data-mode="boot"], body[data-mode="reel"] { overflow: hidden; height: 100svh; }
body[data-mode="reel"] { user-select: none; -webkit-user-select: none; }

/* --- buttons --------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font: 600 17px/1.15 var(--display);
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.button:active { transform: translateY(1px) scale(.98); }
.button-primary { background: var(--sun); color: #fff; box-shadow: 0 10px 28px rgba(194, 84, 27, .32); }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.button-quiet { background: var(--wash); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 20px rgba(80, 40, 10, .12); }
.button-small { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.button-large { min-height: 62px; padding: 16px 34px; font-size: 19px; }
.button .zh { font-weight: 500; opacity: .78; }
.link-button { padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: none; font-weight: 600; }

.pumpkin-switch {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: .5;
  transition: opacity .2s, transform .2s;
}
.pumpkin-switch:hover, .pumpkin-switch:focus-visible { opacity: 1; transform: rotate(-8deg); }
.pumpkin-switch svg { width: 24px; height: 24px; }

/* the pumpkin symbol: a round orange pumpkin. Its parts sit inside <use>
   copies, which selectors cannot reach, so each copy is styled through
   inherited custom properties instead. */
.pumpkin-shell, .pumpkin-rib, .pumpkin-stem { stroke-linecap: round; stroke-linejoin: round; }
.pumpkin-shell { fill: var(--pk-body, #f08a24); stroke: var(--pk-line, #c4541a); stroke-width: 1.6; }
.pumpkin-rib { fill: none; stroke: var(--pk-line, #c4541a); stroke-width: 1.4; }
.pumpkin-stem { fill: none; stroke: var(--pk-stem, #4f7a2c); stroke-width: 2.4; }
.pumpkin-face { fill: var(--pk-face, #5a2408); }

/* --- the lifting-column gauge (boot progress and the reel timer) ----------- */
.lift-gauge {
  position: relative;
  width: min(420px, 80vw);
  height: 10px;
  margin: 28px auto 14px;
  border-radius: 99px;
  background: rgba(35, 24, 21, .1);
  overflow: hidden;
}
.lift-gauge i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--sun)); transition: width .25s; }

/* ===========================================================================
   BOOT
   =========================================================================== */
.boot { position: fixed; inset: 0; background: var(--cover-ground); }
.boot-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.boot-logo { width: min(280px, 60vw); }
.boot-title { margin: 34px 0 0; font: 600 clamp(20px, 2.4vw, 28px)/1.2 var(--display); }
.boot-count { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.boot-note { max-width: 460px; margin: 18px 0 24px; color: var(--ink-2); font-size: 15px; }

/* ===========================================================================
   SHOWREEL
   =========================================================================== */
.reel { position: fixed; inset: 0; overflow: hidden; background: var(--ink); color: var(--ink); }
.reel-stage { position: absolute; inset: 0; }
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cover-ground);
  clip-path: inset(100% 0 0 0);
}
/* the signature move: each scene rises into place like a desk on its column */
.scene.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.05s cubic-bezier(.72, 0, .18, 1); }
.scene.is-out { clip-path: inset(0 0 0 0); }

.reel-top {
  position: absolute;
  z-index: 5;
  top: max(18px, env(safe-area-inset-top));
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.reel-brand { display: inline-flex; align-items: center; gap: 18px; padding: 10px 20px; border-radius: 999px; background: var(--wash); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); pointer-events: auto; }
.reel-brand .logo-hosun { height: 34px; width: auto; }
.reel-brand .logo-herstar { height: 34px; width: auto; }
.reel-chapter { margin: 0; padding: 9px 16px; border-radius: 999px; background: var(--wash); font: 600 14px/1.2 var(--display); letter-spacing: .02em; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.reel-chapter:empty { display: none; }
.reel-chapter .zh { margin-left: 8px; font-weight: 500; color: var(--sun-ink); }

.reel-column {
  position: absolute;
  z-index: 5;
  right: calc(var(--gutter) / 2 - 4px);
  top: 50%;
  width: 8px;
  height: 34vh;
  transform: translateY(-50%);
  border-radius: 99px;
  background: rgba(255, 250, 244, .45);
  box-shadow: inset 0 0 0 1px rgba(35, 24, 21, .12);
  overflow: hidden;
}
.reel-column i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: inherit; background: linear-gradient(0deg, var(--sun), var(--gold)); }

.reel-bar {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
}
.reel-bar .button-primary { margin-left: auto; }
.reel-bar .pumpkin-switch { background: var(--wash); opacity: .7; }

/* --- scene: cover ---------------------------------------------------------- */
.cover-ghost {
  position: absolute;
  top: -.17em;
  left: -.04em;
  font: 800 clamp(160px, 30vw, 460px)/1 var(--display);
  letter-spacing: -.03em;
  color: var(--ghost);
  white-space: nowrap;
  pointer-events: none;
}
.cover-mark {
  position: absolute;
  right: -9%;
  bottom: -14%;
  width: min(72vw, 92vh);
  aspect-ratio: 160 / 180;
  background: var(--mark);
  -webkit-mask: url(../logos/hosun-mark.svg) center / contain no-repeat;
          mask: url(../logos/hosun-mark.svg) center / contain no-repeat;
  pointer-events: none;
}
.cover-mark span { display: none; }
.scene-cover .cover-copy, .cover .cover-copy { position: relative; z-index: 2; }
.scene-cover { display: flex; align-items: center; padding: 90px var(--gutter) 110px; }
.cover-title { display: flex; flex-direction: column; gap: 6px; }
.cover-word { font: 800 clamp(64px, 9vw, 132px)/.9 var(--display); letter-spacing: .06em; color: var(--ink); }
.cover-zh { font: 700 clamp(56px, 8vw, 116px)/1 var(--cjk); letter-spacing: .02em; color: var(--ink); }
.cover-names { margin: 26px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--sun); display: inline-block; font: 700 clamp(17px, 1.8vw, 24px)/1.35 var(--display); letter-spacing: -.02em; color: var(--sun-ink); }
.cover-lines { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cover-lines li { display: flex; flex-direction: column-reverse; font-size: clamp(16px, 1.6vw, 21px); font-weight: 300; color: var(--ink-2); }
.cover-lines li .zh { font-size: 1.08em; font-weight: 500; color: var(--ink); }
.cover-names .zh { display: block; margin-top: 6px; font: 600 .68em/1.4 var(--cjk); letter-spacing: .02em; color: var(--ink-2); }
.cover-herstar { position: absolute; right: var(--gutter); bottom: 120px; z-index: 2; width: min(340px, 34vw); }

/* --- scene: photo chapter -------------------------------------------------- */
.scene-photo img, .scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift var(--dur, 6s) linear both;
}
@keyframes drift { from { transform: scale(1.08) translateY(1.5%); } to { transform: scale(1) translateY(0); } }
.scene-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35, 24, 21, .55), transparent 38%); pointer-events: none; }
.caption {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 120px;
  max-width: min(720px, 80vw);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.caption-theme { margin: 0 0 8px; font: 700 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.caption-text { margin: 0; font: 600 clamp(26px, 3.4vw, 46px)/1.1 var(--display); letter-spacing: -.02em; }

/* --- scene: chapter title -------------------------------------------------- */
.scene-title { display: flex; align-items: center; padding: 90px var(--gutter); }
.scene-title h2 { position: relative; z-index: 2; font: 800 clamp(48px, 7vw, 112px)/.95 var(--display); letter-spacing: -.04em; }
.scene-title h2 .zh { display: block; margin-top: 18px; font-size: .48em; font-weight: 600; letter-spacing: .04em; color: var(--sun-ink); }

/* --- scene: slogan --------------------------------------------------------- */
.scene-slogan { display: flex; align-items: flex-end; padding: 90px var(--gutter) 120px; }
.scene-slogan .scene-bg { filter: saturate(.85); }
.scene-slogan::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(247, 226, 193, .97) 0%, rgba(240, 200, 165, .9) 44%, rgba(226, 112, 47, .25) 100%); }
.slogan { position: relative; z-index: 2; max-width: min(1000px, 86vw); }
.slogan-en { margin: 0; font: 700 clamp(40px, 5.6vw, 88px)/1.02 var(--display); letter-spacing: -.035em; }
.slogan-zh { margin: 22px 0 0; font: 600 clamp(22px, 2.6vw, 38px)/1.2 var(--cjk); letter-spacing: .06em; color: var(--sun-ink); }

/* --- scene: stats ---------------------------------------------------------- */
.scene-stats { display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 120px; }
.scene-stats h2 { position: relative; z-index: 2; margin-bottom: 40px; font-size: clamp(30px, 3.4vw, 48px); }
.scene-stats h2 .zh { margin-left: 14px; font-size: .6em; color: var(--sun-ink); }
.stat-row { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 26px 24px 24px; border-top: 3px solid var(--sun); background: var(--wash); border-radius: 0 0 var(--radius) var(--radius); }
.stat-figure small { margin-left: .12em; font-size: .5em; letter-spacing: 0; }
.stat-figure { display: block; white-space: nowrap; font: 700 clamp(40px, 5vw, 78px)/1 var(--display); letter-spacing: -.04em; color: var(--sun-ink); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 12px; font-weight: 600; }
.stat-label .zh { display: block; font-weight: 400; color: var(--muted); font-size: .92em; }

/* --- scene: spotlight ------------------------------------------------------ */
.scene-spotlight { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 3vw, 48px); align-items: center; padding: 96px calc(var(--gutter) + 18px) 110px var(--gutter); }
.spot-image { position: relative; z-index: 2; height: min(64vh, 640px); border-radius: 26px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.spot-image img { width: 100%; height: 100%; object-fit: contain; padding: 4%; animation: lift-in 1.4s cubic-bezier(.16, 1, .3, 1) .35s both; }
.spot-image.is-photo img { object-fit: cover; padding: 0; }
@keyframes lift-in { from { transform: translateY(8%); opacity: 0; } to { transform: none; opacity: 1; } }
.spot-image.is-empty { display: grid; place-items: center; background: linear-gradient(160deg, #fff, #fbeee1); }
.spot-placeholder { max-width: 72%; text-align: center; }
.spot-placeholder svg { width: 120px; height: 120px; margin: 0 auto 18px; stroke: var(--sun); fill: none; stroke-width: 2.2; }
.spot-placeholder p { margin: 0; font: 600 22px/1.25 var(--display); }
.spot-copy { position: relative; z-index: 2; }
.spot-model { margin: 0 0 10px; font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-ink); }
.spot-copy h2 { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.02; letter-spacing: -.035em; }
.spot-copy h2 .zh { display: block; margin-top: 10px; font-size: .5em; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }
.spot-lede { margin: 18px 0 0; max-width: 560px; font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-2); }
.spec-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.spec-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.spec-list b { display: block; font: 600 12px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec-list b .zh { margin-left: 6px; font: 500 12px/1.2 var(--cjk); letter-spacing: 0; }
.spec-list li > span { display: block; margin-top: 3px; font-weight: 600; }
.spec-list li > span.zh { margin-top: 1px; font-weight: 500; font-size: .92em; color: var(--ink-2); }

/* --- scene: mosaic --------------------------------------------------------- */
.scene-mosaic { padding: 96px calc(var(--gutter) + 18px) 110px var(--gutter); display: flex; flex-direction: column; }
.scene-mosaic h2 { position: relative; z-index: 2; font-size: clamp(30px, 3.4vw, 48px); margin-bottom: 22px; }
.scene-mosaic h2 .zh { margin-left: 14px; font-size: .6em; color: var(--sun-ink); }
.mosaic { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.mosaic figure { margin: 0; display: flex; flex-direction: column; min-height: 0; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(120, 60, 20, .08); animation: lift-in .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 70ms + .4s); }
.mosaic img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.mosaic figcaption { margin-top: 6px; font: 600 12px/1.2 var(--display); text-align: center; }
.mosaic figcaption .zh { display: block; margin-top: 2px; font-weight: 500; color: var(--muted); }

/* --- scene: certificates, partners, timeline, cta -------------------------- */
.scene-board { display: flex; flex-direction: column; justify-content: center; padding: 96px calc(var(--gutter) + 18px) 110px var(--gutter); }
.scene-board > :not(.cover-mark) { position: relative; z-index: 2; }
.scene-board h2 { font-size: clamp(30px, 3.4vw, 48px); margin-bottom: 28px; }
.scene-board h2 .zh { margin-left: 14px; font-size: .6em; color: var(--sun-ink); }
.cert-fan { display: flex; gap: 22px; align-items: flex-end; }
.cert-fan img { height: min(46vh, 440px); width: auto; border-radius: 6px; background: #fff; box-shadow: var(--shadow); animation: lift-in 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 120ms + .4s); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge { padding: 9px 16px; border-radius: 999px; background: var(--wash); border: 1px solid rgba(185, 80, 26, .35); font: 600 15px/1.2 var(--display); }
.logo-wall { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.scene-partners .logo-tile { height: clamp(52px, 8.5vh, 84px); padding: 10px 12px; }
/* partner logos keep their own colours, on white, at one optical size */
.logo-tile { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; height: clamp(64px, 9vh, 96px); padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(120, 60, 20, .07); animation: lift-in .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 40ms + .3s); }
.logo-tile img { min-width: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-tile .logo-text { font: 700 15px/1.15 var(--cjk); color: #4b3b33; white-space: nowrap; }
.year-line { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0; border-top: 3px solid var(--sun); }
.year-line li { list-style: none; padding: 16px 12px 0 0; animation: lift-in .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 110ms + .3s); }
.year-line b { display: block; font: 700 clamp(22px, 2.4vw, 34px)/1 var(--display); color: var(--sun-ink); }
.year-line span { display: block; margin-top: 8px; font: 600 clamp(12px, 1.1vw, 15px)/1.25 var(--display); }
.year-line span.zh { margin-top: 4px; font: 600 clamp(12px, 1.1vw, 15px)/1.3 var(--cjk); color: var(--sun-ink); }
.year-line li:last-child b { color: var(--ink); }
.scene-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 96px var(--gutter) 120px; }
.scene-cta > :not(.cover-mark) { position: relative; z-index: 2; }
.scene-cta h2 { max-width: 15ch; font: 800 clamp(48px, 6.6vw, 104px)/.98 var(--display); letter-spacing: -.045em; }
.scene-cta p { margin: 22px 0 32px; max-width: 640px; font-size: clamp(18px, 1.8vw, 24px); color: var(--ink-2); }
.scene-cta .zh-line { margin: 18px 0 0; font: 600 clamp(20px, 2vw, 28px)/1.3 var(--cjk); color: var(--sun-ink); }

/* --- scene: film ----------------------------------------------------------- */
.scene-film { background: #000; }
.scene-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ===========================================================================
   EXPLORE SITE
   =========================================================================== */
.site { min-height: 100svh; }
.site-head {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 250, 244, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.site-brand img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; padding: 10px 12px; border-radius: 999px; font: 600 15px/1 var(--display); text-decoration: none; color: var(--ink-2); }
.site-nav a:hover, .site-nav a.is-current { background: rgba(226, 112, 47, .12); color: var(--sun-ink); }
.site-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.cover { position: relative; min-height: min(86svh, 900px); display: flex; align-items: center; padding: 70px var(--gutter) 90px; overflow: hidden; background: var(--cover-ground); }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* --- the browsing cover: slide 1 of the company deck ----------------------
   Sized in container units, so it keeps the slide's 16:9 proportions on a
   landscape tablet; type sizes are the slide's (66 / 48 / 16 / 14 pt on a
   960 pt-wide slide). Douyin Sans is not available to the browser, so the
   title uses the closest bold sans faces. */
.slide-cover {
  --slide-ground: #f3bd98;
  --slide-orange: #e97132;
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 64px);
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  /* background artwork from canton fair/产品/cover.pdf (same 16:9 as the slide) */
  background: var(--slide-ground) url(../img/cover/background.webp) center / cover no-repeat;
}
.slide-logos { position: absolute; top: 2.86cqw; right: 2.36cqw; display: flex; align-items: center; gap: 2.4cqw; }
.slide-logos img { height: 4.43cqw; min-height: 34px; width: auto; }
.slide-copy { position: absolute; left: 10.5cqw; top: 17.75cqw; width: min(62cqw, calc(100% - 20px)); }
.slide-title { margin: 0; display: flex; flex-direction: column; color: var(--slide-orange); }
.slide-title-zh { font: 600 max(40px, 6.875cqw)/1.15 var(--cjk); letter-spacing: .02em; }
.slide-title-en { display: inline-block; align-self: flex-start; padding: 0 5.2cqw .35cqw 0; border-bottom: max(1px, .12cqw) solid #ef8640; font: 700 max(30px, 5cqw)/1.15 var(--display); letter-spacing: -.01em; }
.slide-lines-zh, .slide-lines-en { margin: 0; display: grid; }
.slide-lines-zh { margin-top: 2.2cqw; gap: .9cqw; font: 400 max(16px, 1.667cqw)/1.35 var(--cjk); color: #1d1311; }
.slide-lines-en { margin-top: 1.9cqw; gap: .8cqw; font: 300 max(14px, 1.46cqw)/1.35 var(--body); color: #674a36; }
.slide-company { position: absolute; right: 2.1cqw; bottom: 1.4cqw; width: 32cqw; min-width: 240px; height: auto; }
/* the showreel opens on the same cover, filling the screen */
.scene.slide-cover { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; min-height: 0; width: auto; }
.scene.slide-cover .slide-copy { top: max(17.75cqw, 110px); }
.scene.slide-cover .slide-company { bottom: max(1.4cqw, 104px); }
/* the cover carries both logos itself, so the reel's own logo pill steps aside */
.reel-brand { transition: opacity .4s; }
.reel:has(.reel-stage > .scene-slide:last-child) .reel-brand { opacity: 0; pointer-events: none; }

/* --- ISO 3834-2: welding, on a row of its own (slide 8) ------------------- */
.welding { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(170px, .55fr) 2fr; gap: 22px; align-items: center; margin-top: 22px; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 26px rgba(120, 60, 20, .07); }
.welding[hidden] { display: none; }
.welding-copy h3 { font-size: 24px; color: var(--sun-ink); }
.welding-copy h3 .zh { display: inline-block; margin-left: 8px; font-size: .8em; color: var(--ink); white-space: nowrap; }
.welding-team { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.welding-team li { display: grid; grid-template-columns: 44px 1fr; align-items: center; }
.welding-team b { font: 700 30px/1 var(--display); color: var(--sun-ink); }
.welding-team span { font-weight: 600; font-size: 15px; }
.welding-team span .zh { display: block; font-weight: 500; color: var(--ink-2); }
.welding-cert, .welding-people button { padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; cursor: zoom-in; }
.welding-cert img { width: 100%; aspect-ratio: 381 / 519; object-fit: cover; }
.welding-people { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.welding-people img { width: 100%; aspect-ratio: 313 / 443; object-fit: cover; }

@media (orientation: portrait), (max-width: 760px) {
  .slide-cover { aspect-ratio: auto; max-height: none; min-height: min(86svh, 860px); }
  .slide-copy { position: relative; left: auto; top: auto; width: auto; padding: 120px var(--gutter) 140px; }
  .slide-company { width: min(70vw, 420px); }
}

.band { padding: clamp(64px, 9vw, 120px) var(--gutter); background: var(--paper); }
.band-tint { background: linear-gradient(180deg, #fbe9d5 0%, var(--paper) 70%); }
.band-dark { background: var(--ink); color: #fff; }
.band-head { margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { margin: 0 0 14px; font: 700 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--sun-ink); }
.band-head h2 { max-width: 22ch; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
.band-head h2 .zh { display: block; margin-top: 12px; font-size: .5em; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.band-dark .eyebrow { color: var(--gold); }
.band-dark .band-head h2 .zh { color: rgba(255, 255, 255, .62); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats .stat { background: #fff; box-shadow: 0 10px 30px rgba(120, 60, 20, .06); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); margin: 42px 0 0; color: var(--ink-2); }
.about p { margin: 0 0 14px; }
.about .zh { font-size: 16px; line-height: 1.8; }
.sub-head { margin: clamp(48px, 6vw, 72px) 0 22px; }
.sub-head h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; }
.sub-head h3 .zh { margin-left: 10px; font-size: .7em; color: var(--muted); }
.creeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.creed { padding: 24px 26px; border-top: 3px solid var(--sun); border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(170deg, #fff, #fdf2e6); }
.creed h3 { font-size: 22px; color: var(--sun-ink); }
.creed h3 .zh { margin-left: 8px; font-size: .86em; color: var(--ink); }
.creed p { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.creed p.zh { margin-top: 8px; color: var(--ink); line-height: 1.7; }
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.division { padding: 26px; border-left: 4px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; background: #fff; box-shadow: 0 10px 30px rgba(120, 60, 20, .06); }
.division h3 { font-size: 22px; color: var(--sun-ink); }
.division h3 .zh { margin-left: 8px; font-size: .86em; color: var(--ink); }
.division .unit { margin: 6px 0 16px; font-weight: 700; }
.division dl { margin: 0; display: grid; gap: 10px; }
.division dt { font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.division dt .zh { margin-left: 6px; letter-spacing: 0; }
.division dd { margin: 4px 0 0; font-size: 15px; }
.division dd .zh { display: block; margin-top: 2px; color: var(--ink-2); }
.division .keywords { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--sun-ink); font-weight: 600; }

.featured { display: grid; gap: 18px; }
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.feature-media { position: relative; min-height: 360px; background: linear-gradient(160deg, #fff, #fbeee1); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media.is-cutout img { object-fit: contain; padding: 18px; }
.feature-media .spot-placeholder { position: absolute; inset: 0; display: grid; place-content: center; max-width: none; padding: 30px; }
.feature-copy { padding: clamp(24px, 3vw, 40px); }
.feature-copy h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -.03em; }
.feature-copy h3 .zh { display: block; margin-top: 6px; font-size: .58em; color: var(--muted); }
.feature-copy p { color: var(--ink-2); }
.feature-copy .button { margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 600 15px/1.2 var(--display);
  color: var(--ink-2);
}
.chip .zh { margin-left: 6px; font-weight: 500; color: var(--muted); }
.chip[aria-pressed="true"], .chip:has(input:checked) { border-color: var(--sun); background: var(--sun); color: #fff; }
.chip[aria-pressed="true"] .zh, .chip:has(input:checked) .zh { color: rgba(255, 255, 255, .8); }
.chips-pick .chip { display: inline-flex; align-items: center; cursor: pointer; }
.chips-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }

.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.product-card {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  padding: 12px 12px 16px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 26px rgba(120, 60, 20, .07);
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card[hidden] { display: none; }
/* one fixed frame for every thumbnail; shots are pre-trimmed of white so they fill it evenly */
.product-card .thumb { display: block; aspect-ratio: 4 / 3; border-radius: 12px; background: #fff; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; padding: 7%; object-fit: contain; }
.product-card .thumb img.is-scene { padding: 0; object-fit: cover; }
.product-card .model .zh { margin-left: 6px; letter-spacing: .04em; }
.product-card .model { margin: 12px 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 12px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--sun-ink); }
.product-card .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font: 600 17px/1.25 var(--display); letter-spacing: -.01em; }
.product-card .name-zh { margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; color: var(--muted); }
/* each card spans four shared rows (picture, model, name, 中文), so every
   part lines up across a row of cards without clipping any name */
@supports (grid-template-rows: subgrid) {
  .product-card { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .product-card .name { display: block; -webkit-line-clamp: unset; min-height: 0; }
  .product-card .model, .product-card .name-zh { white-space: normal; }
}

.factories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.factory { border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(120, 60, 20, .07); }
.factory img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.factory div { padding: 18px 20px 22px; }
.factory .area { font: 700 30px/1 var(--display); letter-spacing: -.03em; color: var(--sun-ink); }
.factory h3 { margin-top: 8px; font-size: 18px; }
.factory h3 .zh { margin-left: 6px; font-size: .84em; color: var(--muted); }
.factory p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.factory p.zh { margin-top: 4px; color: var(--ink); }
.factory .factory-products { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--sun-ink); }
.factory .factory-products .zh { display: block; margin-top: 3px; font-weight: 500; color: var(--ink-2); }
/* a filmstrip at one height; every photo keeps its own proportions, nothing is cropped */
/* no scroll-snap: it would fight the slow drift (see driftStrip in site.js) */
.strip { display: flex; gap: 12px; margin-top: 18px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: none; margin: 0; }
.strip img { height: clamp(200px, 26vw, 300px); width: auto; max-width: none; border-radius: 14px; }
.strip figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.strip figcaption .zh { margin-left: 6px; }

.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cert { display: flex; flex-direction: column; padding: 16px; border: 0; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 26px rgba(120, 60, 20, .07); text-align: left; }
.cert img { aspect-ratio: 210 / 297; width: 100%; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); }
.cert-badge { aspect-ratio: 210 / 297; display: grid; place-content: center; gap: 10px; padding: 18px; border-radius: 6px; background: linear-gradient(160deg, #fdf3e8, #f6dcc3); text-align: center; }
.cert-badge strong { font: 700 22px/1.1 var(--display); color: var(--sun-ink); }
.cert-badge small { font-size: 13px; color: var(--ink-2); }
.cert h3 { margin-top: 14px; font-size: 18px; color: var(--sun-ink); }
.cert p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.systems { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.systems span:first-child { font-weight: 600; color: var(--muted); margin-right: 4px; }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.logos .logo-tile { height: 96px; background: #fff; box-shadow: 0 6px 20px rgba(120, 60, 20, .05); animation: none; }

.timeline { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 26px; }
.timeline li { padding: 18px 0 22px; border-top: 2px solid var(--sun); }
.timeline b { font: 700 28px/1 var(--display); color: var(--sun-ink); }
.timeline strong { display: block; margin-top: 8px; font-family: var(--display); }
.timeline .zh { display: block; margin-top: 4px; color: var(--ink-2); }
/* the two renderings side by side at equal height, each uncropped: flex-grow = aspect ratio */
.campus { display: flex; flex-wrap: wrap; gap: 14px; margin: 40px 0 0; }
.campus figure { flex: var(--ratio) 1 0; min-width: min(100%, 320px); margin: 0; }
.campus img { width: 100%; height: auto; border-radius: 18px; }
.campus-caption { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 14px; }
.campus-caption .zh { display: block; margin-top: 2px; }

.film-switch { margin: -10px 0 18px; }
.band-dark .film-switch .chip { background: transparent; border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); }
.band-dark .film-switch .chip .zh { color: rgba(255, 255, 255, .6); }
.band-dark .film-switch .chip[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #fff; }
.film-frame { border-radius: 22px; overflow: hidden; background: #000; }

/* --- slide 18: social accounts, scan to follow ---------------------------- */
.social { grid-column: 1 / -1; margin-top: clamp(28px, 4vw, 48px); }
.social h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.social h3 .zh { margin-left: 8px; font-size: .75em; color: var(--ink-2); }
.social-lede { margin: 6px 0 18px; color: var(--ink-2); font-weight: 600; }
.social-lede .zh { margin-left: 6px; font-weight: 500; }
.qr-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qr { margin: 0; padding: 16px; border-radius: var(--radius); background: #fff; text-align: center; box-shadow: 0 8px 26px rgba(120, 60, 20, .08); }
.qr img { width: 100%; max-width: 220px; aspect-ratio: 1; margin: 0 auto; object-fit: contain; image-rendering: crisp-edges; }
.qr figcaption { margin-top: 10px; font-size: 14px; }
.qr figcaption b { display: block; font-family: var(--display); }
.qr figcaption .zh { display: block; color: var(--ink-2); }
.qr figcaption em { display: block; margin-top: 4px; font-style: normal; font-weight: 600; color: var(--sun-ink); word-break: break-all; }
.film-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; }

.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: start; background: var(--cover-ground); }
.contact-copy h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 30px; }
.contact-copy h2 .zh { display: block; margin-top: 12px; font-size: .5em; color: var(--ink-2); }
.contact-list { margin: 0; padding: 26px; border-radius: 22px; background: var(--wash); display: grid; gap: 16px; }
.contact-list dt { font: 600 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 5px 0 0; font-weight: 600; font-size: 18px; }
.contact-list dd .zh { display: block; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.contact-list dt .zh { margin-left: 6px; letter-spacing: 0; }
.contact-list dd.social { font-size: 15px; }
.contact-list dd.social .zh { display: inline; }
.contact-list dd.social em { font-style: normal; color: var(--sun-ink); }
.team { grid-column: 1 / -1; margin: 0 0 clamp(28px, 4vw, 48px); }
.team img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 42%; border-radius: 22px; }
.team figcaption { margin-top: 10px; font-weight: 600; color: var(--ink-2); }
.team figcaption .zh { margin-left: 8px; font-weight: 500; }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px var(--gutter) max(26px, env(safe-area-inset-bottom)); background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 14px; }
.site-foot p { margin: 0; }
.site-foot p .zh { margin-left: 8px; }
.site-foot .beian { flex-basis: 100%; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: 13px; }
.beian a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); text-decoration: none; }
.beian a:hover { color: #fff; text-decoration: underline; }
.beian img { width: 16px; height: 16px; }

/* ===========================================================================
   DIALOGS — product sheet, certificate, lead form, staff, idle
   =========================================================================== */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(35, 24, 21, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .35);
}
.sheet-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 24, 21, .08);
  font-size: 28px;
  line-height: 1;
}
[dir="rtl"] .sheet-close { right: auto; left: 14px; }
.sheet[open] { overflow: hidden; }
.sheet-body { display: grid; grid-template-columns: 1.1fr .9fr; max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.gallery { padding: 20px; background: #fff; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; max-height: calc(100svh - 150px); margin: 0 auto; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; border-radius: 10px; background: rgba(35, 24, 21, .72); color: #fff; font-size: 15px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 76px; height: 60px; padding: 4px; border: 2px solid transparent; border-radius: 10px; background: #f6efe7; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--sun); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.sheet-info { padding: 34px 34px 30px; }
.gallery { position: sticky; top: 0; align-self: start; }
.gallery-main figcaption .zh { margin-left: 8px; }
.sheet-info .spot-lede .zh, .sheet-info .spot-lede.zh { display: block; color: var(--ink-2); }
.sheet-info h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; padding-right: 50px; }
.sheet-info h2 .zh { display: block; margin-top: 8px; font-size: .55em; color: var(--muted); }
.sheet-info .spec-list { grid-template-columns: 1fr; }
.sheet-info .button { margin-top: 24px; }
/* the certificate viewer hugs the scan: the window is exactly the picture, scaled up to
   90% of the screen height (or 92% of the width, whichever runs out first) using the
   scan's own proportions, which site.js passes in as --ratio */
.sheet-cert { width: fit-content; max-width: 92vw; max-height: 90svh; overflow: hidden; border-radius: 10px; background: #fff; }
.sheet-cert img { display: block; width: min(92vw, calc(90svh * var(--ratio, .707))); height: auto; }

/* --- lead form ------------------------------------------------------------- */
.lead {
  width: min(1240px, calc(100vw - 24px));
  height: calc(100svh - 24px);
  max-height: none;
  border-radius: 28px;
  background: var(--paper);
  overflow: hidden;
}
.lead[open] { display: flex; flex-direction: column; }
.lead-form[hidden] { display: none; }
.lead-form { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.lead-head { position: relative; display: flex; gap: 20px; justify-content: space-between; padding: 30px 34px 20px; background: var(--cover-ground); }
.lead-head h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.035em; }
.lead-head h2 .zh { margin-left: 10px; font-size: .62em; font-weight: 600; color: var(--ink-2); }
.lead-lede .zh { display: block; margin-top: 2px; }
.lead-lede { margin: 8px 0 0; max-width: 640px; color: var(--ink-2); }
.lead-head .sheet-close { position: static; flex: none; background: rgba(255, 255, 255, .6); }
.lead-langs { margin: 0; padding: 14px 34px; border: 0; border-bottom: 1px solid var(--line); }
.lead-langs .chip { min-height: 40px; padding: 7px 14px; }
.lead-error { margin: 16px 34px 0; padding: 12px 16px; border-radius: 12px; background: #fde5da; color: #8a2d07; font-weight: 600; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; padding: 10px 34px 0; }
.lead-col { min-width: 0; margin: 0; padding: 0; border: 0; }
.lead-col legend { padding: 18px 0 6px; font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--sun-ink); }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field > span { font: 600 15px/1.2 var(--display); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field small { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid rgba(35, 24, 21, .22);
  border-radius: 12px;
  background: #fff;
  font-size: 17px;       /* 16px+ keeps iPad Safari from zooming on focus */
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(226, 112, 47, .22); }
.field [aria-invalid="true"] { border-color: #c2380f; background: #fff6f2; }
.field .field-msg { color: #a3300c; font-weight: 600; }
.phone-row { display: grid; grid-template-columns: minmax(120px, .45fr) 1fr; gap: 8px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips-pick { gap: 6px; }
.chips-pick .chip { min-height: 42px; padding: 8px 14px; font-size: 14px; position: relative; }
.card-row { display: flex; align-items: center; gap: 14px; }
.card-take { cursor: pointer; }
.card-preview { width: 120px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.consent { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin: 22px 0 6px; padding: 14px; border-radius: 12px; background: #fff; font-size: 14px; color: var(--ink-2); }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--sun); }
.consent.is-invalid { box-shadow: 0 0 0 2px #c2380f; }
.lead-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; margin-top: auto; padding: 16px 34px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--paper) 70%, rgba(255, 250, 244, 0)); }
.lead-thanks { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px; text-align: center; background: var(--cover-ground); }
.lead-thanks[hidden] { display: none; }
.lead-thanks h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.04em; }
.lead-thanks p { max-width: 520px; margin: 4px 0 26px; font-size: 20px; color: var(--ink-2); }
.thanks-mark { width: 92px; height: 92px; fill: none; stroke: var(--sun-ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks-mark path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: tick .7s .2s ease-out forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* --- staff ----------------------------------------------------------------- */
.staff { width: min(980px, calc(100vw - 24px)); max-height: calc(100svh - 24px); border-radius: 22px; background: #fff; }
.staff-lock { position: relative; padding: 34px; text-align: center; }
.staff-lock form { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.staff-lock input { width: 160px; min-height: 52px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 24px; text-align: center; letter-spacing: .3em; }
.staff-msg { min-height: 1.4em; color: #a3300c; font-weight: 600; }
.staff-panel { padding: 26px 28px 30px; overflow-y: auto; max-height: calc(100svh - 24px); }
.staff-panel h2 { font-size: 26px; }
.staff-panel h3 { margin: 26px 0 10px; font-size: 17px; color: var(--sun-ink); }
.staff-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.staff-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.staff-table th, .staff-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.staff-grid label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.staff-grid input, .staff-grid select { min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 400; }
.status-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #c2380f; }
.status-dot.ok { background: #2e9d57; }
.staff-note { color: var(--muted); font-size: 14px; }

/* --- idle ------------------------------------------------------------------ */
.idle { background: transparent; }
.idle-card { padding: 30px 34px; border-radius: 22px; background: var(--paper); text-align: center; box-shadow: var(--shadow); }
.idle-card p { margin: 0; font: 600 20px/1.3 var(--display); }
.idle-card .zh { margin: 6px 0 20px; font-size: 16px; color: var(--muted); }

/* --- the wandering pumpkin (Halloween door, see rising.js) ----------------- */
.wild-pumpkin {
  position: fixed;
  z-index: 60;
  width: 46px;
  height: 46px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 244, .7);
  box-shadow: 0 4px 16px rgba(160, 70, 20, .25);
  transform: translateY(140%) scale(.6);
  opacity: 0;
  transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .5s;
}
.wild-pumpkin[hidden] { display: none; }
.wild-pumpkin.is-peeking { transform: none; opacity: 1; animation: wobble 2.6s ease-in-out .9s infinite; }
.wild-pumpkin svg { width: 100%; height: 100%; }

@keyframes wobble { 0%, 100% { rotate: 0deg; } 20% { rotate: -9deg; } 40% { rotate: 7deg; } 60% { rotate: -4deg; } 80% { rotate: 2deg; } }
/* a 46 px button would be hard to aim at with a finger; the hit area is larger than it looks */
.wild-pumpkin::before { content: ""; position: absolute; inset: -14px; }

.curtain { position: fixed; z-index: 95; inset: 0; display: none; place-items: center; background: #050308; pointer-events: none; }
.curtain.is-on { display: grid; }

/* ===========================================================================
   ENGLISH + CHINESE — every line carries its Chinese; these place the 中文
   consistently: beside short labels, beneath anything longer.
   =========================================================================== */
.eyebrow .zh { margin-left: 8px; letter-spacing: .1em; }
.site-nav a .zh { margin-left: 5px; font-weight: 500; opacity: .75; }
.boot-title .zh, .boot-count .zh, .boot-note .zh { display: block; margin-top: 4px; font-size: .86em; font-weight: 500; }
.caption-theme .zh { margin-left: 8px; letter-spacing: .08em; }
.caption-text .zh { display: block; margin-top: 8px; font: 600 .62em/1.3 var(--cjk); letter-spacing: .04em; }
.spot-model .zh { margin-left: 8px; letter-spacing: .04em; }
.spot-lede .zh { display: block; margin-top: 6px; color: var(--ink-2); }
.feature-copy p.zh { margin-top: -6px; color: var(--ink); }
.feature-media { padding: 0; border: 0; cursor: zoom-in; }
.cert p .zh, .cert-badge small .zh { display: block; margin-top: 2px; }
.cert-badge ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; text-align: left; }
.cert-badge li { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.cert-badge li b { display: inline-block; min-width: 26px; font: 700 20px/1 var(--display); color: var(--sun-ink); }
.cert-badge li .zh { display: block; padding-left: 30px; }
.scene-cta .cta-body .zh { display: block; margin-top: 6px; font-size: .9em; }
.scene-stats h2 .zh, .scene-board h2 .zh, .scene-mosaic h2 .zh { white-space: nowrap; }
.stat-label .zh { margin-top: 2px; }
.idle-card .button .zh { margin-left: 6px; }
/* a heading that must read as one line (it wraps only on a phone) */
.band-head h2.one-line { max-width: none; white-space: nowrap; font-size: clamp(26px, 4vw, 60px); }

/* ===========================================================================
   RESPONSIVE — tablet portrait, phone
   =========================================================================== */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-head { justify-content: space-between; }
  .stat-row, .stats { grid-template-columns: repeat(2, 1fr); }
  .factories { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .logo-wall { grid-template-columns: repeat(5, 1fr); }
  .year-line { grid-template-columns: repeat(5, 1fr); row-gap: 18px; }
}

@media (max-width: 900px), (orientation: portrait) {
  .scene-spotlight { grid-template-columns: 1fr; align-content: center; padding-top: 100px; }
  .spot-image { height: 40vh; }
  .spec-list li:nth-child(n + 7) { display: none; }
  .about, .divisions, .creeds { grid-template-columns: 1fr; }
  .welding { grid-template-columns: 1fr 1fr; }
  .qr-row { grid-template-columns: repeat(2, 1fr); }
  .welding-people { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 280px; }
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-info { max-height: none; }
  .sheet { overflow-y: auto; }
  .lead-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .cert-fan img { height: 30vh; }
  .cover-mark { width: 110vw; right: -30%; bottom: -8%; }
}

/* short landscape screens: keep the spotlight copy clear of the button bar */
@media (max-height: 780px) and (orientation: landscape) {
  .spec-list li:nth-child(n + 7) { display: none; }
  .spot-lede { font-size: 16px; }
  .scene-spotlight { padding-top: 84px; padding-bottom: 96px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .band-head h2.one-line { white-space: normal; }
  .team img { aspect-ratio: 4 / 3; }
  .site-nav a .zh { display: none; }
  body { font-size: 16px; }
  .site-brand .logo-herstar { display: none; }
  .site-actions .button-quiet { display: none; }
  .reel-brand { gap: 10px; padding: 8px 14px; }
  .reel-brand img { height: 24px !important; }
  .reel-chapter { display: none; }
  .reel-bar .button { min-height: 46px; padding: 10px 16px; font-size: 15px; }
  .reel-bar .button .zh { display: none; }
  .stat-row, .stats, .factories, .timeline, .field-pair { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic figcaption { display: none; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .year-line { grid-template-columns: repeat(3, 1fr); }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list li:nth-child(n + 3) { display: none; }
  .scene-spotlight { gap: 14px; align-content: start; padding: 84px 16px 96px; }
  .spot-image { height: 30vh; }
  .spot-copy h2 { font-size: 30px; }
  .spot-lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
  .reel-bar { gap: 8px; }
  .reel-bar .button { white-space: nowrap; }
  .sheet-info .spec-list li { display: block; }
  .lead { width: 100vw; height: 100svh; border-radius: 0; }
  .lead-head, .lead-langs, .lead-grid, .lead-foot { padding-left: 16px; padding-right: 16px; }
  .lead-error { margin-left: 16px; margin-right: 16px; }
  .lead-foot .button { width: 100%; }
  .phone-row { grid-template-columns: 1fr 1.4fr; }
  .cover-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene.is-in { transition: none; }
}
