:root {
  --ink: #11110f;
  --paper: #f3efe6;
  --paper-2: #e7e1d5;
  --red: #ff4d36;
  --acid: #d7ff45;
  --blue: #5577ff;
  --line: rgba(17, 17, 15, .18);
  --muted: #6f6a61;
  --max: 1240px;
  --pad: clamp(18px, 4vw, 48px);
  --radius: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: white; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 999;
  background: var(--ink); color: white; padding: 10px 14px;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header {
  position: fixed; z-index: 90; inset: 0 0 auto 0;
  height: 72px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: white; mix-blend-mode: difference;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; width: max-content; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { font-size: 18px; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: white; }
.header-meta { display: flex; align-items: center; gap: 14px; font: 700 10px/1 monospace; letter-spacing: .08em; text-transform: uppercase; }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.menu-button { justify-self: end; width: 42px; height: 42px; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 50%; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-open .menu-button span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.menu-open .menu-button span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

.site-menu {
  position: fixed; z-index: 80; inset: 0; padding: 120px var(--pad) 110px;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 2vh;
  visibility: hidden; opacity: 0; transform: translateY(-20px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.site-menu::after { content: "YZH / 001"; position: absolute; right: var(--pad); bottom: 42px; color: #4c4b46; font: 700 11px monospace; }
.site-menu a { font-weight: 900; font-size: clamp(40px, 10vw, 92px); letter-spacing: -.06em; line-height: .98; transition: color .2s, transform .2s; }
.site-menu a:hover { color: var(--red); transform: translateX(10px); }
.menu-open .site-menu { visibility: visible; opacity: 1; transform: none; }

.section-shell { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--pad); }
.hero { padding-top: 104px; }
.hero-kicker { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 10px/1.3 monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--ink); }
.hero-title { margin: 22px 0 26px; display: flex; align-items: flex-start; font-size: clamp(84px, 24vw, 270px); line-height: .78; letter-spacing: -.105em; font-weight: 950; white-space: nowrap; }
.hero-title span { display: inline-block; }
.hero-title sup { margin: -.2em 0 0 .16em; font: 800 clamp(18px, 4vw, 42px)/1 monospace; letter-spacing: 0; color: var(--red); }
.hero-grid { display: grid; gap: 22px; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.hero-lead { margin: 0; max-width: 560px; font-size: clamp(19px, 4.6vw, 34px); line-height: 1.24; letter-spacing: -.03em; font-weight: 750; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 50px; padding: 0 20px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; }
.button:active { transform: scale(.97); }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--red); border-color: var(--red); }
.button-ghost { background: transparent; }
.button-ghost:hover { background: var(--ink); color: white; }
.hero-portrait { position: relative; margin: 0; aspect-ratio: 1 / .96; overflow: hidden; background: #20a9bb; border-radius: var(--radius); transform-style: preserve-3d; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-portrait:hover img { transform: scale(1.025); }
.hero-portrait figcaption { position: absolute; inset: auto 14px 14px; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 999px; background: rgba(17,17,15,.78); color: white; backdrop-filter: blur(14px); font: 700 10px monospace; letter-spacing: .06em; }
.portrait-stamp { position: absolute; right: 13px; top: 13px; width: 64px; height: 64px; border: 2px solid var(--red); color: var(--red); border-radius: 50%; display: grid; place-content: center; text-align: center; font: 900 15px/1.05 sans-serif; transform: rotate(12deg); background: rgba(243,239,230,.9); }
.ticker { margin-top: 28px; margin-inline: calc(var(--pad) * -1); overflow: hidden; border-block: 1px solid var(--ink); background: var(--acid); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 26px; padding: 12px 0; animation: ticker 24s linear infinite; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }

.section-index { font: 800 11px/1 monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.profile, .evidence, .metrics, .quotes { padding-top: 110px; }
.profile-layout, .metrics-layout { display: grid; gap: 28px; margin-top: 24px; }
.section-heading h2, .evidence-heading h2 { margin: 0; font-size: clamp(48px, 12vw, 104px); line-height: .92; letter-spacing: -.065em; font-weight: 950; }
.section-heading em { font-style: normal; color: var(--red); }
.profile-copy { max-width: 610px; font-size: clamp(18px, 3vw, 24px); line-height: 1.55; letter-spacing: -.025em; }
.profile-copy p { margin: 0 0 1em; }
.fact-grid { display: grid; gap: 10px; margin-top: 46px; }
.fact-card { min-height: 190px; padding: 22px; border: 1px solid var(--ink); border-radius: 22px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.18); }
.fact-card strong { font-size: clamp(34px, 9vw, 66px); letter-spacing: -.055em; line-height: .9; }
.fact-card small, .fact-label { font: 700 11px/1.4 monospace; letter-spacing: .06em; text-transform: uppercase; }
.fact-card small { color: var(--muted); }
.fact-card-accent { background: var(--red); color: white; border-color: var(--red); transform: rotate(-1.5deg); }
.fact-card-accent small { color: rgba(255,255,255,.68); }

.evidence-heading { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.evidence-heading p { margin: 0; max-width: 360px; color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 440px); gap: 14px; margin-top: 38px; padding: 0 var(--pad) 14px; margin-inline: calc((100vw - min(100vw, var(--max))) / -2 - var(--pad)); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.photo-card { position: relative; height: min(102vw, 590px); overflow: hidden; border-radius: var(--radius); background: #d8d2c7; scroll-snap-align: center; }
.photo-card:nth-child(even) { margin-top: 46px; height: min(92vw, 535px); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-card:hover img { transform: scale(1.035); }
.photo-caption { position: absolute; inset: auto 12px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(17,17,15,.82); color: white; backdrop-filter: blur(18px); }
.photo-caption span { grid-row: span 2; color: var(--acid); font: 800 12px monospace; }
.photo-caption strong { font-size: 14px; }
.photo-caption small { color: rgba(255,255,255,.62); font: 600 10px monospace; }

.metrics-layout { margin-top: 24px; }
.meter-list { display: grid; gap: 26px; align-self: end; }
.meter-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; font-size: 14px; font-weight: 800; }
.meter-top strong { font-family: monospace; }
.meter-track { height: 12px; overflow: hidden; border: 1px solid var(--ink); border-radius: 999px; }
.meter-track i { display: block; width: 0; height: 100%; background: var(--ink); transition: width 1.1s var(--ease); }
.meter:nth-child(2) .meter-track i { background: var(--blue); }
.meter:nth-child(3) .meter-track i { background: var(--red); }
.meter:nth-child(4) .meter-track i { background: var(--acid); }
.status-lab { margin-top: 54px; padding: 22px; min-height: 150px; border-radius: var(--radius); background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.status-lab > div { display: grid; gap: 12px; }
.status-label { color: #8a8982; font: 700 10px monospace; letter-spacing: .08em; }
.status-lab strong { font-size: clamp(26px, 6vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.round-button { width: 58px; height: 58px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: white; font-size: 28px; cursor: pointer; transition: transform .35s var(--ease), background .2s; }
.round-button:hover { transform: rotate(180deg); background: white; color: var(--ink); }

.quote-stack { margin-top: 24px; display: grid; gap: 12px; }
.quote-card { margin: 0; padding: 28px; min-height: 230px; border-radius: var(--radius); background: var(--acid); display: flex; flex-direction: column; justify-content: space-between; }
.quote-card p { margin: 0; font-size: clamp(32px, 8vw, 68px); line-height: 1.02; letter-spacing: -.05em; font-weight: 900; }
.quote-card footer { margin-top: 38px; font: 700 11px monospace; }
.quote-card-dark { background: var(--ink); color: white; }
.quote-card-outline { background: transparent; border: 1px solid var(--ink); }

.verdict { padding-top: 120px; padding-bottom: 92px; }
.verdict-card { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 70px); min-height: 610px; border-radius: 34px; background: var(--red); color: white; display: flex; flex-direction: column; justify-content: flex-end; }
.verdict-card::before { content: "YES"; position: absolute; right: -5%; top: -5%; font-size: min(48vw, 560px); font-weight: 950; line-height: .8; letter-spacing: -.12em; color: rgba(0,0,0,.09); }
.verdict-card .section-index { position: absolute; top: 28px; left: 28px; color: rgba(255,255,255,.65); }
.verdict-card h2 { position: relative; z-index: 1; margin: 0 0 20px; font-size: clamp(58px, 14vw, 130px); line-height: .86; letter-spacing: -.07em; }
.verdict-card p { position: relative; z-index: 1; margin: 0 0 26px; max-width: 500px; font-size: 16px; line-height: 1.5; }
.verdict-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; min-height: 52px; }
.button-light { background: white; color: var(--ink); border-color: white; }
.button-runaway { background: transparent; color: white; border-color: rgba(255,255,255,.65); }
.approval-counter { position: relative; z-index: 1; margin-top: 20px; font: 700 11px monospace; color: rgba(255,255,255,.7); }

.site-footer { padding-top: 20px; padding-bottom: 110px; border-top: 1px solid var(--line); }
.footer-logo { font-size: clamp(54px, 15vw, 160px); font-weight: 950; letter-spacing: -.07em; line-height: 1; }
.footer-meta { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font: 700 10px monospace; }

.mobile-dock { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); height: 66px; padding: 8px 8px 7px; display: grid; grid-template-columns: repeat(4,1fr); background: rgba(17,17,15,.88); color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 14px 40px rgba(0,0,0,.24); }
.mobile-dock a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 10px; font-weight: 700; }
.mobile-dock a span { font-size: 18px; line-height: 1; }
.mobile-dock a.active { color: white; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(94px + env(safe-area-inset-bottom)); transform: translate(-50%, 18px); max-width: calc(100vw - 30px); padding: 12px 16px; border-radius: 999px; background: var(--ink); color: white; font-size: 13px; font-weight: 750; opacity: 0; visibility: hidden; transition: .25s var(--ease); white-space: nowrap; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }

.certificate { width: min(92vw, 560px); border: 0; padding: 0; background: transparent; }
.certificate::backdrop { background: rgba(17,17,15,.72); backdrop-filter: blur(8px); }
.certificate-card { position: relative; margin: 0; padding: 28px; border-radius: 28px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--acid); }
.dialog-close { position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 24px; cursor: pointer; }
.certificate-kicker { font: 700 10px monospace; color: var(--muted); }
.certificate-seal { width: 82px; height: 82px; margin: 32px 0 18px; border: 3px solid var(--red); border-radius: 50%; color: var(--red); display: grid; place-content: center; transform: rotate(-12deg); font-size: 20px; font-weight: 950; }
.certificate h2 { margin: 0; font-size: clamp(44px, 12vw, 74px); line-height: .92; letter-spacing: -.06em; }
.certificate p { font-size: 15px; line-height: 1.7; }
.certificate-sign { display: grid; gap: 4px; margin: 28px 0; border-top: 1px solid var(--line); padding-top: 18px; }
.certificate-sign span { color: var(--muted); font: 700 10px monospace; }
.dialog-ok { width: 100%; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .25; } }

@media (min-width: 760px) {
  .site-header { height: 84px; }
  .hero { padding-top: 124px; }
  .hero-grid { grid-template-columns: .8fr 1.2fr; align-items: end; }
  .hero-copy { min-height: 420px; padding-bottom: 8px; }
  .hero-portrait { aspect-ratio: 1.12 / 1; }
  .fact-grid { grid-template-columns: repeat(3, 1fr); }
  .evidence-heading { flex-direction: row; justify-content: space-between; align-items: end; }
  .gallery { grid-auto-columns: min(46vw, 460px); }
  .photo-card { height: min(62vw, 650px); }
  .photo-card:nth-child(even) { height: min(54vw, 570px); }
  .quote-stack { grid-template-columns: repeat(2, 1fr); }
  .quote-card:first-child { grid-column: 1 / -1; }
  .mobile-dock { display: none; }
  .site-footer { padding-bottom: 42px; }
  .toast { bottom: 30px; }
}

@media (min-width: 980px) {
  .profile-layout, .metrics-layout { grid-template-columns: 1.15fr .85fr; gap: 80px; }
  .profile-copy { padding-top: 8px; }
  .gallery { margin-inline: calc((100vw - min(100vw, var(--max))) / -2 - var(--pad)); padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
  .quote-stack { grid-template-columns: 1.25fr .75fr .75fr; }
  .quote-card:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* v1.2 mobile compatibility and gallery expansion */
html { scroll-padding-top: 92px; }
body { min-width: 280px; overflow-x: clip; }
#home, #profile, #evidence, #metrics, #verdict { scroll-margin-top: 92px; }
.gallery-tools { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font: 800 11px/1.2 monospace; }
.gallery-tools span { color: var(--muted); letter-spacing: .08em; }
.gallery-tools b { color: var(--ink); font-size: 15px; }
.gallery-random { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.photo-card { cursor: zoom-in; }
.photo-viewer { width: min(94vw, 720px); max-height: min(90dvh, 920px); padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: #11110f; color: white; }
.photo-viewer::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(12px); }
.photo-viewer figure { margin: 0; display: grid; max-height: min(90dvh, 920px); }
.photo-viewer img { width: 100%; max-height: calc(90dvh - 68px); object-fit: contain; background: #11110f; }
.photo-viewer figcaption { min-height: 58px; padding: 17px 62px 17px 18px; font-size: 13px; font-weight: 800; }
.photo-viewer-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.58); color: white; font-size: 27px; cursor: pointer; backdrop-filter: blur(10px); }

@media (max-width: 420px) {
  :root { --pad: clamp(14px, 4.5vw, 20px); }
  .site-header { padding-inline: var(--pad); }
  .header-meta { font-size: 9px; gap: 8px; }
  .brand-mark { font-size: 25px; }
  .hero-title { font-size: clamp(72px, 25vw, 112px); }
  .hero-grid { gap: 24px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; justify-content: center; }
  .fact-card { min-height: 158px; }
  .gallery { grid-auto-columns: min(86vw, 360px); }
  .photo-card, .photo-card:nth-child(even) { height: min(118vw, 520px); margin-top: 0; }
  .photo-card:nth-child(even) { transform: translateY(20px); margin-bottom: 20px; }
  .status-lab { align-items: flex-end; }
  .status-lab strong { font-size: clamp(24px, 7.4vw, 34px); }
  .verdict-card { min-height: max(560px, 72dvh); padding-bottom: 36px; }
  .verdict-card h2 { font-size: clamp(48px, 15vw, 72px); }
  .verdict-actions { display: grid; grid-template-columns: 1fr; }
  .mobile-dock { left: 8px; right: 8px; height: 64px; border-radius: 20px; }
}

@media (max-width: 340px) {
  .header-meta { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero-title { font-size: 68px; }
  .section-heading h2, .evidence-heading h2 { font-size: 42px; }
  .mobile-dock a { font-size: 9px; }
  .mobile-dock a span { font-size: 16px; }
}

@supports not (height: 100dvh) {
  .photo-viewer, .photo-viewer figure { max-height: 90vh; }
  .photo-viewer img { max-height: calc(90vh - 68px); }
}
