/* DANGO · ABTI site. Tokens follow the design handoff's tokens.json. */
:root {
  --ink: #1C1C1C;
  --muted: #6E6E73;
  --cream: #FBF6EE;
  --money: #15803D;
  --tile: #F6F6F6;
  --tile-hover: #EFEFF1;
  --line: #ECE5DA;
  --row: #F0F0F1;
  --green: #16A34A;
  --green-text: #15803D;
  --spark: #2F7BF5;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 32px; }

/* ---------- header: sticky, white, one hairline ---------- */
.gnav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.gnav-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 5px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand svg { width: 14px; height: 14px; flex: none; }
.kind { font-size: 14px; color: var(--muted); margin-left: -12px; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14.5px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current] { font-weight: 600; }
.lang { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lang [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- buttons: an ink pill, like the 团子 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #FFFFFF; text-decoration: none;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer;
}
.btn:hover { background: #000000; }
.btn-lg { font-size: 17px; padding: 15px 28px; }
.btn-sm { font-size: 13.5px; padding: 7px 14px; }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: #ECECEE; }
.btn .apple { width: 15px; height: 17px; margin-top: -2px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections ---------- */
.sec { padding: 52px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.sec-head .note { margin-left: auto; font-size: 14px; color: var(--muted); }
.sec-foot { margin-top: 18px; font-size: 15px; }
.fine { font-size: 13.5px; color: var(--muted); }

.page-head { padding: 28px 0 28px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.page-head .sub { margin-top: 10px; font-size: 16.5px; color: var(--muted); max-width: 44em; }
.page-head .sub b { color: var(--ink); font-weight: 600; }
.legend { margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- shared by the other pages ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.meta { font-size: 13.5px; color: var(--muted); }
.sec { padding: 72px 0; }
.sec .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
.sec .sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.sec .sec-head .note { margin-left: 0; max-width: 40em; font-size: 17px; line-height: 1.5; }

/* ---------- home: dimensions ---------- */
.dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dim { background: var(--tile); border-radius: 20px; padding: 20px 22px; }
.dim-pair { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 18px; font-weight: 650; }
.dim-pair .mono { font-size: 20px; font-weight: 600; margin-right: 4px; }
.dim-pair .sep { color: var(--muted); font-weight: 400; }
.dim p { margin-top: 8px; font-size: 15px; line-height: 1.6; }

/* ---------- home: 16-type grid ---------- */
.grid16 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: var(--tile); border-radius: 18px; padding: 14px 10px 16px; text-decoration: none; }
.mini:hover { background: var(--tile-hover); }
.mini img { width: 92px; margin-bottom: 6px; }
.mini .code { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; }
.mini .name { font-size: 15px; font-weight: 600; line-height: 1.3; }

/* ---------- home: privacy ---------- */
.privacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.priv { background: var(--tile); border-radius: 20px; padding: 20px 22px; }
.priv h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; }
.priv h3 svg { width: 18px; height: 18px; flex: none; }
.priv p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- dark call-to-action ---------- */
.cta-dark { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; background: var(--ink); color: #FFFFFF; border-radius: 20px; padding: 26px 26px 26px 30px; }
.cta-dark .t { font-size: 22px; font-weight: 650; line-height: 1.3; }
.cta-dark .s { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.68); }
.cta-dark .btn { margin-left: auto; }
.cta-wrap { padding: 8px 0 56px; }

/* ---------- types page ---------- */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.col-head { font-family: var(--mono); font-size: 13.5px; font-weight: 600; padding: 0 2px 8px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.type-tile { display: flex; align-items: center; gap: 14px; background: var(--tile); border-radius: 20px; padding: 16px 18px 16px 12px; text-decoration: none; }
.type-tile:hover { background: var(--tile-hover); }
.type-tile img { width: 96px; flex: none; }
.tt-text { display: flex; flex-direction: column; min-width: 0; }
.tt-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.tt-head .code { font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; }
.tt-head .name { font-size: 18px; font-weight: 650; line-height: 1.3; }
.tt-text .roast-s { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.pairs-note { margin: 18px 0 28px; font-size: 14px; color: var(--muted); }

/* ---------- type page ---------- */
.back { display: inline-block; margin: 4px 0 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.type-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; padding: 0 0 48px; }
.type-art img { width: 100%; max-width: 480px; margin: 0 auto; }
.type-id h1 { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.type-id .code { font-family: var(--mono); font-size: clamp(48px, 7vw, 68px); font-weight: 600; letter-spacing: 0.04em; line-height: 1; }
.type-id .name { font-size: clamp(30px, 4.4vw, 42px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.roast { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: 20px; font-weight: 500; line-height: 1.45; }
.roast .q { flex: none; font: 700 46px/0.9 Georgia, "Times New Roman", serif; color: #D4D4D8; }
.portrait { margin-top: 12px; font-size: 16px; color: var(--muted); }
.type-id .cta-row { margin-top: 26px; }

.letters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.letter-row { display: flex; gap: 16px; align-items: flex-start; background: var(--tile); border-radius: 20px; padding: 18px 20px; }
.letter-box { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #FFFFFF; font-family: var(--mono); font-size: 23px; font-weight: 600; line-height: 46px; text-align: center; }
.lr-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.lr-head b { font-size: 18px; font-weight: 650; }
.lr-head .other { font-size: 13px; color: var(--muted); }
.letter-row p { margin-top: 4px; font-size: 15px; line-height: 1.6; }

.match { display: flex; align-items: center; gap: 16px; background: var(--tile); border-radius: 16px; padding: 12px 20px 12px 12px; text-decoration: none; }
.match:hover { background: var(--tile-hover); }
.match img { width: 104px; flex: none; }
.match-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.match .m1 { font-size: 18px; font-weight: 650; }
.match .m1 .mono { margin-right: 6px; letter-spacing: 0.04em; }
.match .m2 { font-size: 15px; color: var(--muted); }
.match .arrow { margin-left: auto; padding-left: 8px; font-size: 22px; color: var(--muted); }
.match-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- how page ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { background: var(--tile); border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; }
.toc a:hover { background: var(--tile-hover); }

.rules { border-top: 1px solid var(--row); }
.rule { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--row); }
.rule-name { font-size: 17px; font-weight: 650; }
.rule-name .mono { font-weight: 600; margin-right: 4px; }
.rule-name .sep { color: var(--muted); font-weight: 400; margin: 0 6px; }
.rule p { font-size: 15.5px; line-height: 1.65; }
.notes { margin: 16px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.notes li + li { margin-top: 6px; }

.tiers { border-top: 1px solid var(--row); }
.tier { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--row); }
.bars { display: flex; align-items: flex-end; gap: 3px; width: 40px; height: 24px; flex: none; }
.bars span { width: 6px; border-radius: 2px; background: #E3E3E6; }
.bars span.on { background: var(--ink); }
.tier-text { flex: 1; min-width: 0; }
.tier-text b { display: block; font-size: 17px; font-weight: 650; }
.tier-text span { display: block; font-size: 14.5px; color: var(--muted); }
.tier .range { flex: none; font-size: 15px; font-weight: 600; white-space: nowrap; }

.mrows { border-top: 1px solid var(--row); }
.mrow { display: grid; grid-template-columns: 96px 170px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--row); }
.mrow .range { font-size: 15px; font-weight: 600; white-space: nowrap; }
.mrow b { font-size: 17px; font-weight: 650; }
.mrow span.l { font-size: 14.5px; color: var(--muted); }
.formula { font-family: var(--mono); font-size: 14px; color: var(--muted); }

.intro { margin-bottom: 16px; font-size: 15.5px; color: var(--muted); max-width: 46em; }
.roles { border-top: 1px solid var(--row); }
.role { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--row); }
.role > img { width: 68px; flex: none; }
.role-text { flex: 1; min-width: 0; }
.role-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; }
.swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.role-text span.c { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.alts { display: flex; gap: 4px; flex: none; }
.alts img { width: 38px; }

.hidden { margin-top: 18px; background: var(--tile); border-radius: 20px; padding: 18px 20px 16px; }
.hidden-head { font-size: 14.5px; color: var(--muted); }
.hidden-head b { color: var(--ink); font-weight: 650; font-size: 16px; margin-right: 8px; }
.hidden-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hidden-grid li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; text-align: center; }
/* Same box for every hat, bottom-aligned, so the names line up. */
.hidden-grid img { width: 64px; height: 69px; object-fit: contain; object-position: 50% 100%; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 26px 24px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.foot .brand { font-size: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
main.wrap { padding-top: 24px; padding-bottom: 72px; }

/* ---------- narrow screens ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .type-hero { grid-template-columns: minmax(0, 1fr); }
  .br { display: none; }
  .sec { padding: 56px 0; }
  .privacy { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .type-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .type-tile img { width: 80px; }
}
@media (max-width: 640px) {
  .gnav-in { padding: 0 16px; gap: 14px; height: 48px; }
  .brand { font-size: 19px; }
  .kind { display: none; }
  .nav { gap: 14px; }
  .sec { padding: 40px 0; }
  .sec-head .note { margin-left: 0; width: 100%; }
  .dims, .letters { grid-template-columns: minmax(0, 1fr); }
  .grid16 { gap: 8px; }
  .mini { padding: 10px 4px 12px; border-radius: 14px; }
  .mini img { width: 62px; margin-bottom: 4px; }
  .mini .code { font-size: 11px; }
  .mini .name { font-size: 12.5px; }
  .cta-dark { padding: 22px; }
  .cta-dark .btn { margin-left: 0; width: 100%; }
  .roast { font-size: 18px; }
  .match { gap: 12px; padding: 10px 14px 10px 10px; }
  .match img { width: 76px; }
  .match .m1 { font-size: 16px; }
  .match .m2 { font-size: 14px; }
  .mrow { grid-template-columns: 76px minmax(0, 1fr); }
  .mrow span.l { grid-column: 2; }
  .tier { gap: 14px; }
  .role { gap: 12px; }
  .role > img { width: 56px; }
  .alts img { width: 30px; }
  .hidden-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .foot nav { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- home (home.py): clean and quiet, in DANGO's own look — ink
   black like the 团子, the office picture's warm cream, money in green,
   hairline cards like the app's panel, and numbered mono chapter labels in
   the launch film's order (2026-11-08: Apple's simplicity, but the user
   said 「而不是完全抄」). Scoped to main.home. ---------- */
.home .w { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.home .center { text-align: center; }
.home .band { padding: 112px 0; }
.home .band.cream { background: var(--cream); }

.home .eyebrow { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.home .hl { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
html:lang(zh-CN) .home .hl { letter-spacing: -0.01em; line-height: 1.22; }
.home .lead { margin-top: 20px; max-width: 640px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); }
.home .lead b { color: var(--ink); font-weight: 600; }
.home .center .lead { margin-left: auto; margin-right: auto; }
.home .money { color: var(--money); }

.home .tile { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 32px 30px; }

/* hero */
.home .h-hero { padding: 88px 0 112px; text-align: center; }
.home .h-kicker { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.02em; color: var(--muted); }
.home .h-title { margin-top: 20px; font-size: clamp(44px, 7.6vw, 86px); font-weight: 750; line-height: 1.03; letter-spacing: -0.04em; }
html:lang(zh-CN) .home .h-title { letter-spacing: -0.01em; line-height: 1.12; }
.home .h-sub { margin: 22px auto 0; max-width: 34em; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); }
.home .h-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
.home .h-meta { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.home .h-office { margin: 56px auto 0; max-width: 1080px; padding: 0 24px; }
.home .h-office img { width: 100%; border-radius: 28px; box-shadow: 0 30px 80px -36px rgba(28, 28, 28, 0.35), 0 0 0 1px rgba(28, 28, 28, 0.05); }
.play-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.play-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.play-link svg { width: 22px; height: 22px; }

/* the bill and the worth */
.home .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; text-align: left; }
.home .stat-cap { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); }
.home .stat-num { margin-top: 14px; font-size: clamp(40px, 4.8vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.home .stat-num.was { color: #A1A1A6; text-decoration: line-through; text-decoration-thickness: 2px; }
.home .stat-note { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.home .fine { margin-top: 24px; font-size: 13.5px; color: var(--muted); }

/* who would you hire */
.home .bento { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 16px; }
.home .bento.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home .step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 30px; }
.home .step-task { font-size: 18px; font-weight: 600; line-height: 1.35; min-height: 2.7em; display: flex; align-items: center; }
.home .step-arrow { margin: 8px 0 6px; color: #B8B8BD; }
.home .step img { width: 120px; height: 110px; object-fit: contain; object-position: 50% 100%; }
.home .step-job { margin-top: 16px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.home .step-math { margin-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* twenty jobs */
.home .jobs { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home .job { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 22px 8px 18px; text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.home .job:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(28, 28, 28, 0.35); }
/* Hats make some taller: same box, bottom-aligned, so bodies and names line up. */
.home .job img { width: 84px; height: 91px; object-fit: contain; object-position: 50% 100%; }
.home .job .jn { margin-top: 6px; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.home .job .jr { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--money); }
.home .job .jr small { font-size: 11px; font-weight: 400; color: var(--muted); }

/* the corner of your screen: a dark panel set into the page, like a screen */
.home .night { background: #17171A; color: #F5F5F7; border-radius: 32px; padding: 80px 56px 64px; }
.home .night .eyebrow { color: #8E8E93; }
.home .night .lead { color: #A1A1A6; }
.home .night .lead b { color: #F5F5F7; }
.home .desk-art { position: relative; margin: 64px auto 0; max-width: 900px; aspect-ratio: 1 / 0.72; text-align: left; }
.home .screen { position: absolute; inset: 7% 22% 7% 0; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #CFE3FF 0%, #E9D9FF 45%, #FFE3D1 100%); }
.home .screen-bar { display: flex; gap: 7px; padding: 14px 16px; background: rgba(255, 255, 255, 0.55); }
.home .screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(28, 28, 28, 0.18); }
/* Left of the open panel, so the panel never covers it. */
.home .screen .pet { position: absolute; left: 9%; bottom: 9%; width: 40%; max-width: 280px; animation: bob 3s ease-in-out infinite; }
.home .panel-shot { position: absolute; right: 0; top: 0; width: 36%; border-radius: 24px; overflow: hidden; background: #FFFFFF; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.home .panel-shot img { width: 100%; }
.home .states { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.home .state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 7px 15px; }
.home .state i { width: 8px; height: 8px; border-radius: 50%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* four agents */
.home .tool-row { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home .tool { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 30px 12px; font-family: var(--mono); font-size: clamp(15px, 1.7vw, 19px); font-weight: 600; }

/* boss type */
.home .boss-bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 56px; }
.home .card-tile { margin: 0; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.home .card-tile img { width: 100%; max-width: 360px; border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35); }
.home .dims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.home .dim { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; }
.home .dim-pair { font-size: 17px; font-weight: 700; }
.home .dim p + p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.home .grid16 { margin-top: 16px; padding: 22px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.home .mini { background: transparent; border-radius: 14px; padding: 10px 4px 12px; }
.home .mini:hover { background: var(--cream); }
.home .mini img { width: 64px; margin-bottom: 4px; }
.home .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; margin-top: 32px; font-size: 16px; font-weight: 600; }
.home .links a { color: var(--ink); text-decoration: none; }
.home .links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* share */
.home .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.home .split .hl { font-size: clamp(32px, 4vw, 48px); }
.home .share-shot { margin: 0; }
.home .share-shot img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.35); transform: rotate(2deg); }

/* privacy */
.home .privacy { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home .priv { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; }
.home .priv h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.home .priv h3 svg { width: 18px; height: 18px; flex: none; }
.home .priv p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* finale */
.home .finale { background: var(--cream); padding: 112px 0 120px; }
.home .finale-dango { width: 160px; margin: 0 auto 24px; animation: bob 3s ease-in-out infinite; }
.home .finale h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 750; line-height: 1.08; letter-spacing: -0.035em; }
html:lang(zh-CN) .home .finale h2 { letter-spacing: -0.01em; line-height: 1.2; }
.home .finale .soft { color: var(--muted); }

/* the film */
.film-modal { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.film-modal[open] { display: grid; place-items: center; }
.film-modal::backdrop { background: rgba(10, 10, 12, 0.9); }
.film-modal video { display: block; width: min(1200px, 92vw, 150vh); height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #000000; }
.film-close { position: fixed; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; font-size: 24px; line-height: 40px; cursor: pointer; }
.film-close:hover { background: rgba(255, 255, 255, 0.26); }

/* Shown as they scroll in (home.py's script adds .anim, then .in). */
.anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .home .screen .pet, .home .finale-dango { animation: none; }
  .home .job { transition: none; }
}

@media (max-width: 1068px) {
  .home .jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .home .stats, .home .bento.three, .home .privacy, .home .boss-bento, .home .split { grid-template-columns: minmax(0, 1fr); }
  .home .tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .grid16 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home .step-task { min-height: 0; }
}
@media (max-width: 734px) {
  .home .w { padding: 0 16px; }
  .home .band, .home .finale { padding: 72px 0; }
  .home .h-hero { padding: 44px 0 72px; }
  .home .h-office { margin-top: 40px; padding: 0 12px; }
  .home .h-office img { border-radius: 18px; }
  .home .hl, .home .split .hl, .home .finale h2 { font-size: 32px; }
  /* 11 characters to a line at 30 px on a 375 px phone. */
  html:lang(zh-CN) .home .hl, html:lang(zh-CN) .home .split .hl, html:lang(zh-CN) .home .finale h2 { font-size: 30px; }
  .home .lead { margin-top: 16px; }
  .home .tile { border-radius: 18px; padding: 26px 22px; }
  .home .stats, .home .bento, .home .jobs, .home .boss-bento, .home .privacy { margin-top: 36px; }
  .home .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home .job { border-radius: 16px; padding: 16px 6px 14px; }
  .home .job img { width: 64px; height: 69px; }
  .home .job .jn { font-size: 13.5px; }
  .home .job .jr { font-size: 13.5px; }
  .home .night { border-radius: 22px; padding: 48px 16px 36px; }
  .home .desk-art { margin-top: 40px; aspect-ratio: 1 / 1.1; }
  .home .screen { inset: 10% 30% 10% 0; border-radius: 14px; }
  .home .screen .pet { left: 6%; width: 56%; }
  .home .panel-shot { width: 48%; border-radius: 14px; }
  .home .states { margin-top: 32px; }
  .home .tool { padding: 24px 8px; border-radius: 16px; }
  .home .dims { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home .grid16 { padding: 14px; }
  .home .mini img { width: 58px; }
  .home .share-shot img { max-width: 330px; }
  .film-modal video { width: 100vw; border-radius: 0; }
}
