/* =========================================================
   曾思诚 · Personal Website
   One-screen home + shared sub-page styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --paper: #faf8f4;
  --ink: #14120f;
  --ink-soft: #3a352f;
  --muted: #857f78;
  --line: #e8e4dd;
  --line-strong: #d8d3cb;
  --hl: #f0e4d1;
  --accent: #9a6a3f;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
    "Times New Roman", Georgia, serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1280px;
  --shell-home: 1560px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--hl);
  color: var(--ink);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   HOME · one screen
   ========================================================= */
body.home {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Stage */
.stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: var(--shell-home);
  margin-inline: auto;
  padding: clamp(18px, 2.8vh, 40px) clamp(34px, 9vw, 180px) clamp(16px, 2.4vh, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(28px, 4vh, 56px);
}

.stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  align-items: end;
  gap: clamp(32px, 5vw, 88px);
}

/* on tall-enough screens, drop the headline + education block slightly:
   the entry cards keep their position, the two text blocks stay bottom-aligned */
@media (min-height: 700px) {
  .stage-top { transform: translateY(clamp(10px, 2.4vh, 28px)); }
}

/* Headline */
.headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.4vw + 1.1rem, 3.4rem);
  line-height: 1.26;
  letter-spacing: 0.005em;
}

.headline-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: clamp(8px, 1.4vh, 16px);
}

.headline-line { display: block; }

.hl {
  position: relative;
  z-index: 0;
  font-style: normal;
}

.hl::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: 0.09em;
  height: 0.4em;
  background: var(--hl);
  border-radius: 3px;
  z-index: -1;
}

/* Education rail */
.edu-list {
  --edu-gap: clamp(14px, 2.4vh, 26px);
  display: flex;
  flex-direction: column;
  gap: var(--edu-gap);
}

.edu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 15px);
  padding-left: 18px;
}

.edu-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  bottom: calc(-1 * var(--edu-gap) - 10px);
  width: 1px;
  background: var(--line);
}

.edu-dot {
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--white);
}

.edu-item:nth-child(2) .edu-dot { background: var(--accent); }

.edu-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(38px, 3.4vw, 48px);
  height: clamp(38px, 3.4vw, 48px);
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.edu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edu-body { min-width: 0; }

.edu-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.6;
}

.edu-school {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.edu-detail {
  font-size: clamp(11px, 0.95vw, 12.5px);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Entry cards */
.entries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 26px);
}

.entry {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1.3vh, 15px);
  transition: transform 0.5s var(--ease);
}

.entry:hover { transform: translateY(-3px); }

/* index + hairline, sits just above the picture */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 2px;
}

.entry-no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.entry-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  transition: background-color 0.35s var(--ease);
}

.entry:hover .entry-no { color: var(--accent); }
.entry:hover .entry-rule { background: var(--accent); }

.entry-media {
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background: var(--paper);
  aspect-ratio: 1 / 1;
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.entry:hover .entry-media img { transform: scale(1.03); }

.entry-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 2px;
}

.entry-name {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.entry-arrow {
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.45s var(--ease), color 0.35s var(--ease);
}

.entry:hover .entry-arrow {
  transform: translate(3px, -3px);
  color: var(--ink);
}

/* Home entrance */
.headline,
.edu-list,
.entry {
  animation: rise 0.9s var(--ease) both;
}

.headline { animation-delay: 0.05s; }
.edu-list { animation-delay: 0.16s; }
.entry:nth-child(1) { animation-delay: 0.22s; }
.entry:nth-child(2) { animation-delay: 0.28s; }
.entry:nth-child(3) { animation-delay: 0.34s; }
.entry:nth-child(4) { animation-delay: 0.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   SUB PAGES
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding-block: 6px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.site-nav a span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.page {
  min-height: 78vh;
  padding-top: clamp(140px, 20vh, 200px);
  padding-bottom: clamp(80px, 12vh, 140px);
}

.page-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5.6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.sec-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.page-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.page-desc {
  max-width: 42ch;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 2;
  margin-bottom: 52px;
}

.page-rule {
  height: 1px;
  background: var(--line);
  margin-bottom: 30px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 11px 22px 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-top: 38px;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.page-back:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper);
}

.page-note {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding-block: clamp(52px, 8vh, 84px) 32px;
  margin-top: 40px;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: 0.08em;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.footer-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-top {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.footer-top:hover { color: var(--accent); }

/* Sub-page reveal (only when JS is on) */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.has-js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .stage-top {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 3vh, 32px);
  }

  .edu-list {
    flex-direction: row;
    gap: clamp(16px, 4vw, 40px);
  }

  .edu-item {
    flex: 1 1 0;
    padding-left: 16px;
  }

  .edu-item:not(:last-child)::after { display: none; }

  .edu-dot { top: 7px; }

  /* keep the four entries on one row so the page stays one screen high */
  .entries { gap: clamp(12px, 2vw, 20px); }
}

@media (max-width: 599px) {
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-name { letter-spacing: 0.12em; }
}

@media (max-width: 480px) {
  /* narrow phones: stack the two schools so the text keeps one line each */
  .edu-list {
    flex-direction: column;
    gap: 12px;
  }

  .edu-item {
    flex: none;
    padding-left: 16px;
  }

  .edu-item:not(:last-child)::after {
    display: block;
    left: 3px;
    top: 16px;
    bottom: calc(-1 * 12px - 10px);
  }

  .edu-dot { top: 9px; }
}

@media (max-width: 420px) {
  .stage { gap: 18px; }
  .edu-detail { font-size: 11px; }
  .edu-list { gap: 14px; }
  .edu-logo {
    width: 34px;
    height: 34px;
    padding: 4px;
  }
  .edu-item { gap: 9px; padding-left: 14px; }
  .edu-dot { width: 6px; height: 6px; }
}

/* Short screens: keep everything on one page but tighten the rhythm */
@media (max-height: 820px) and (min-width: 600px) {
  .stage { gap: clamp(22px, 4.2vh, 44px); }
  .headline { font-size: clamp(1.7rem, 2.1vw + 1rem, 3rem); }
}

@media (max-height: 700px) and (min-width: 600px) {
  .stage { gap: clamp(18px, 3.4vh, 34px); }
  .edu-date { font-size: 10px; }
}

@media (max-height: 720px) and (max-width: 599px) {
  .stage { gap: 12px; padding-block: 24px 20px; }
  .headline-eyebrow { margin-bottom: 6px; }
  .edu-list { --edu-gap: 10px; }
  .edu-date { font-size: 10px; }
  .edu-school { font-size: 15px; }
  .entries { gap: 10px; }
  .entry { gap: 6px; }
}

/* Very short screens: allow scrolling instead of clipping content */
@media (max-height: 560px) {
  body.home {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }
  .stage { justify-content: flex-start; padding-block: 16px 24px; }
}

/* =========================================================
   Motion / focus
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* =========================================================
   INTERN · hanging badges
   ========================================================= */
body.intern-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* back home */
.back-home {
  position: fixed;
  top: clamp(16px, 2.6vh, 28px);
  left: clamp(16px, 1.5vw, 24px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 11px;
  border: 1px solid rgba(120, 100, 70, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.back-home:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.back-icon {
  flex: none;
  transition: transform 0.35s var(--ease);
}

.back-home:hover .back-icon { transform: translateX(-3px); }

/* stage: the straps come straight down from the top of the page */
.intern-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(24px, 4vh, 40px);
  display: flex;
  min-height: 0;
}

.board {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 64px);
  align-items: stretch;
}

.intern-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hang {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  /* clip only above the hook line: the strap keeps pouring in from outside the page,
     while the card's shadow can still spill below and to the sides */
  clip-path: inset(0 -200px -260px -200px);
}

.pendulum {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  /* how far the strap material runs above the hook, so a swinging strap
     never leaves a wedge of background at the top edge */
  --cord-over: 150px;
  transform-origin: 0 0;
  will-change: transform;
}

/* ---------- printed lanyard ---------- */
.cord {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--cord-over, 150px));
  width: 26px;
  height: calc(var(--len, 200px) - 54px + var(--cord-over, 150px));
  transform: translateX(-50%);
  overflow: hidden;
  background-color: #ded2bd;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 0 1px,
      rgba(255, 255, 255, 0) 1px 4px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(120, 100, 70, 0.035) 0 1px,
      rgba(120, 100, 70, 0) 1px 6px
    ),
    linear-gradient(180deg, #ded2bd 0%, #c9bba2 100%);
  background-size: auto, auto, 100% calc(100% - var(--cord-over, 150px));
  background-position: left top, left top, left bottom;
  background-repeat: repeat, repeat, no-repeat;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 0 rgba(95, 78, 52, 0.16), 2px 2px 4px rgba(80, 62, 38, 0.12);
}

.cord-mark {
  position: absolute;
  left: 50%;
  height: 19px;
  width: auto;
  max-width: 20px;
  transform: translateX(-50%);
  object-fit: contain;
  opacity: 0.95;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* strap end: metal crimp */
.crimp {
  position: absolute;
  left: 0;
  top: calc(var(--len, 200px) - 56px);
  z-index: 2;
  width: 26px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: repeating-linear-gradient(
      90deg,
      rgba(85, 70, 50, 0.12) 0 1px,
      rgba(255, 255, 255, 0) 1px 3px
    ),
    linear-gradient(
      180deg,
      #f8f4ec 0%,
      #d8d0c1 34%,
      #a99f8e 56%,
      #ece5d9 76%,
      #b0a694 100%
    );
  box-shadow: 0 1px 2px rgba(40, 30, 18, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* swivel ring */
.ring {
  position: absolute;
  left: 0;
  top: calc(var(--len, 200px) - 44px);
  z-index: 2;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border: 2.5px solid #a99d8a;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

/* badge clip */
.clip {
  position: absolute;
  left: 0;
  top: calc(var(--len, 200px) - 32px);
  z-index: 3;
  width: 30px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 3px 3px 4px 4px;
  background: linear-gradient(
    180deg,
    #fbf8f2 0%,
    #dfd7c8 16%,
    #b2a795 38%,
    #eae3d7 54%,
    #c4baa8 74%,
    #9c9282 100%
  );
  box-shadow: 0 2px 4px rgba(30, 24, 16, 0.22),
    0 4px 10px rgba(30, 24, 16, 0.12),
    inset 0 -3px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.clip::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 26px;
  height: 2px;
  border-radius: 1px;
  background: rgba(58, 48, 35, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.clip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #7e7566;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.55);
}

/* ---------- ID card ---------- */
.badge {
  position: absolute;
  left: 0;
  top: calc(var(--len, 200px) - 2px);
  z-index: 2;
  width: clamp(146px, 21vh, 200px);
  aspect-ratio: 5 / 7;
  transform: translateX(-50%);
  transform-origin: top center;
  border: 1px solid #d9d0c0;
  border-radius: 13px;
  background: radial-gradient(
      120% 70% at 18% 0%,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(158deg, #ffffff 0%, #fbf7f0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 3px 0 #e6ddcd,
    0 6px 12px rgba(70, 52, 28, 0.15), 0 16px 26px -10px rgba(70, 52, 28, 0.2),
    0 34px 54px -18px rgba(70, 52, 28, 0.36);
  cursor: grab;
  touch-action: none;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.badge:active { cursor: grabbing; }

.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0) 38%
  );
  pointer-events: none;
}

.badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 16px 20px -18px rgba(70, 52, 28, 0.45);
  pointer-events: none;
}

.badge-logo {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 66%;
  max-height: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ---------- caption ---------- */
.intern-info {
  flex: none;
  padding-top: clamp(16px, 2.4vh, 24px);
  text-align: center;
}

.intern-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  border: 1px solid rgba(120, 100, 70, 0.35);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.intern-company {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.intern-role {
  max-width: 252px;
  margin: 7px auto 0;
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.intern-time {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.intern-time::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin: 0 auto 10px;
  background: rgba(120, 100, 70, 0.35);
}

.intern-info { animation: rise 0.9s var(--ease) both; animation-delay: 0.25s; }

@media (max-width: 900px) {
  .board { gap: clamp(12px, 3vw, 28px); }
  .intern-role { max-width: 220px; font-size: 12px; }
}

@media (max-width: 760px) {
  .intern-main { display: block; padding-bottom: 28px; }

  .board {
    display: block;
    max-width: 440px;
    margin: 0 auto;
  }

  .intern-cell { border-top: 1px solid rgba(120, 100, 70, 0.16); }

  .intern-cell:first-child { border-top: 0; }

  .intern-cell + .intern-cell { margin-top: 40px; }

  .hang { height: 440px; min-height: 0; }

  .badge { width: 158px; }

  .intern-role { max-width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  .intern-info { animation: none; }
}

/* =========================================================
   RESEARCH · two panels, one screen
   ========================================================= */
body.research-page {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.paper-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1480px;
  height: 100vh;
  margin: 0 auto;
}

.paper-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.paper-panel--main {
  padding: clamp(70px, 9vh, 100px) clamp(26px, 3vw, 54px) clamp(22px, 3.4vh, 36px)
    var(--gutter);
}

.paper-panel--pending {
  padding: clamp(70px, 9vh, 100px) var(--gutter) clamp(22px, 3.4vh, 36px)
    clamp(26px, 3vw, 54px);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

/* eyebrow */
.panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(12px, 2.2vh, 20px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.panel-no {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 8.5px;
  letter-spacing: 0;
  color: var(--accent);
}

/* title & meta */
.paper-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 1.75vw + 0.5vh, 32px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

.paper-authors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: clamp(10px, 1.6vh, 16px);
  font-family: var(--font-serif);
  font-size: clamp(13px, 0.95vw, 15px);
  letter-spacing: 0.04em;
}

.paper-authors sup {
  margin-left: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}

.author-tag {
  margin-left: 7px;
  padding: 2px 7px 1px;
  border: 1px solid rgba(154, 106, 63, 0.3);
  border-radius: 999px;
  background: rgba(154, 106, 63, 0.05);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.author-sep {
  width: 14px;
  height: 1px;
  background: var(--line-strong);
}

.paper-affil {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: clamp(10px, 1.8vh, 16px);
}

.paper-meta li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--ink-soft);
}

.paper-meta li:first-child {
  border-color: rgba(154, 106, 63, 0.28);
  background: rgba(154, 106, 63, 0.045);
  color: var(--accent);
}

/* abstract */
.paper-intro {
  margin-top: clamp(12px, 1.9vh, 18px);
  font-family: var(--font-serif);
  font-size: clamp(11.5px, 0.9vw, 13.5px);
  line-height: 1.95;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* figure */
.paper-figure {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: clamp(12px, 2vh, 20px);
}

.figure-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1vw, 14px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}

.figure-frame:hover { border-color: var(--line-strong); }

.figure-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.figure-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
}

.figure-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* citation */
.paper-cite {
  flex: none;
  margin-top: clamp(10px, 1.8vh, 18px);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.cite-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.cite-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.pdf-link:hover { color: var(--accent); }

.copy-btn {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.copy-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.copy-btn.is-copied {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cite-text {
  font-size: 9.5px;
  line-height: 1.85;
  color: var(--muted);
  word-break: break-word;
}

.cite-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* pending panel */
.pending {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.2vh, 32px);
  min-height: 0;
}

.pending-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: clamp(168px, 15vw, 232px);
  aspect-ratio: 1;
  border: 1px dashed rgba(154, 106, 63, 0.42);
  border-radius: 50%;
  color: var(--accent);
}

.pending-status {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.pending-en {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.pending-title {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.pending-ghost {
  position: absolute;
  right: -4%;
  bottom: -8%;
  z-index: 0;
  font-family: var(--font-serif);
  font-size: clamp(140px, 17vw, 250px);
  line-height: 1;
  color: rgba(70, 52, 28, 0.045);
  pointer-events: none;
  user-select: none;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(18, 16, 13, 0.94);
}

.lightbox.is-open { display: grid; }

.lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  border-radius: 4px;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  body.research-page {
    height: auto;
    overflow: visible;
  }

  .paper-stage {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    max-width: none;
  }

  .paper-panel--main {
    padding: 84px var(--gutter) 44px;
  }

  .paper-panel--pending {
    min-height: 420px;
    padding: 52px var(--gutter) 64px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .paper-figure {
    flex: none;
    margin-top: 18px;
  }

  .figure-frame {
    flex: none;
    display: block;
    padding: 10px;
  }

  .figure-frame img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .paper-title { font-size: clamp(24px, 5vw, 34px); }

  .paper-intro {
    font-size: 13px;
    line-height: 2;
  }

  .cite-text { font-size: 11px; }

  .pending-ghost { display: none; }

  .pending-stamp { width: 180px; }
}

@media (max-width: 600px) {
  .paper-panel--main { padding-top: 76px; }

  .cite-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .cite-actions { width: 100%; justify-content: space-between; }

  .paper-meta li { font-size: 8.5px; }
}

/* =========================================================
   PRODUCT · overview
   ========================================================= */
body.plist-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plist {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 7.4vh, 84px) var(--gutter) clamp(22px, 3vh, 34px);
  gap: clamp(18px, 3vh, 34px);
}

.plist-head { flex: none; }

.plist-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.plist-no {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 8.5px;
  letter-spacing: 0;
  color: var(--accent);
}

.plist-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.pgrid {
  flex: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.pcard { display: block; }

.pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #16283c;
  box-shadow: 0 20px 36px -30px rgba(20, 34, 52, 0.6),
    inset 0 0 0 1px rgba(20, 34, 52, 0.07);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.pcard:hover .pcard-media,
.pcard:focus-visible .pcard-media {
  transform: translateY(-4px);
  box-shadow: 0 34px 54px -32px rgba(20, 34, 52, 0.55),
    inset 0 0 0 1px rgba(20, 34, 52, 0.09);
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.pcard:hover .pcard-media img { transform: scale(1.035); }

.pcard-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(14px, 1.5vw, 20px);
  background: linear-gradient(180deg, rgba(11, 23, 37, 0) 34%, rgba(11, 23, 37, 0.74) 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.pcard:hover .pcard-veil,
.pcard:focus-visible .pcard-veil { opacity: 1; }

.pcard-words {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  transform: translateY(9px);
  transition: transform 0.5s var(--ease);
}

.pcard:hover .pcard-words { transform: none; }

.pcard-words span {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #fff;
}

.pcard-foot {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: clamp(10px, 1.5vh, 15px);
}

.pcard-idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pcard-name {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pcard-arrow {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.45s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.pcard:hover .pcard-arrow {
  transform: translate(2px, -2px);
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.pcard-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.pcard--soon .pcard-media {
  display: grid;
  place-items: center;
  border: 1px solid #efebe2;
  background: #fdfcf9;
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px #f6f3ec;
}

.pcard--soon:hover .pcard-media { transform: none; box-shadow: none; }

.pcard-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e6e1d6;
  border-radius: 50%;
  color: #cfc8ba;
}

.pcard--soon .pcard-name { color: var(--muted); }

@media (hover: none) {
  .pcard-veil { opacity: 1; }
  .pcard-words { transform: none; }
}

/* =========================================================
   PRODUCT · InterviewACE (one screen)
   ========================================================= */
body.iac-page {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  --navy: #24456b;
  --navy-2: #35618f;
}

.iac {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(52px, 6.6vh, 78px) var(--gutter) clamp(14px, 2vh, 24px);
}

/* ---------- top ---------- */
.iac-top {
  flex: none;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(20px, 2.4vw, 36px);
}

/* 左侧文字列与右侧视频等高：文字压顶，按钮贴底 */
.iac-head {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.iac-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.iac-no {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 8.5px;
  letter-spacing: 0;
  color: var(--navy-2);
}

.iac-title {
  margin-top: clamp(10px, 1.7vh, 15px);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.iac-title-accent {
  display: inline-block;
  margin-left: -0.05em;
  letter-spacing: -0.01em;
  color: var(--navy);
  font-style: italic;
  font-weight: 600;
}

.iac-sub {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.iac-desc {
  max-width: 44ch;
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.iac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: clamp(14px, 2vh, 20px);
}

.iac-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.iac-btn:hover { transform: translateY(-1px); }

.iac-btn em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

.iac-btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.iac-btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.iac-btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* banner */
.iac-banner {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #16283c;
  box-shadow: 0 26px 46px -38px rgba(22, 38, 58, 0.55);
  cursor: pointer;
}

.iac-banner img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.1s var(--ease);
}

.iac-banner:hover img { transform: scale(1.02); }

.iac-banner:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.iac-banner-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 20, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.iac-banner:hover .iac-banner-chip,
.iac-banner:focus-visible .iac-banner-chip {
  opacity: 1;
  transform: none;
}

/* ---------- features ---------- */
.iac-feats {
  flex: none;
  margin-top: clamp(24px, 4.2vh, 48px);
}

.blk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(10px, 1.6vh, 16px);
}

.blk-no {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--navy-2);
}

.blk-title {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.blk-rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 16px;
  background: var(--line);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}

.feat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: clamp(132px, 17.5vh, 168px);
  padding: clamp(14px, 1.8vh, 20px) clamp(14px, 1.3vw, 19px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.feat:hover,
.feat:focus-visible {
  border-color: rgba(36, 69, 107, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -26px rgba(22, 38, 58, 0.55);
}

.feat-idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--navy-2);
}

.feat-body { display: block; }

.feat-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.24vw, 17.5px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.4;
}

.feat-line {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.feat-go {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.feat:hover .feat-go,
.feat:focus-visible .feat-go {
  opacity: 1;
  transform: none;
  border-color: var(--navy);
  color: var(--navy);
}

/* =========================================================
   PRODUCT · sheet & video overlays
   ========================================================= */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(16px, 3.4vh, 42px) clamp(16px, 3.4vw, 44px);
  background: rgba(18, 22, 28, 0.55);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.sheet.is-open { display: grid; }

.sheet-close,
.vid-close {
  position: absolute;
  top: clamp(14px, 3vh, 26px);
  right: clamp(14px, 3vw, 30px);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.sheet-close {
  border-color: rgba(20, 30, 44, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: #1b2a3a;
  box-shadow: 0 8px 20px -10px rgba(20, 30, 44, 0.4);
}

.sheet-close:hover { background: #fff; }

.sheet-close:focus-visible,
.vid-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sheet-close:hover,
.vid-close:hover { transform: rotate(90deg); }

.sheet-panel:focus,
.sheet-panel:focus-visible { outline: none; }

.sheet-panel {
  --shot-h: clamp(300px, calc(90vh - 208px), 620px);
  width: min(calc(3 * var(--shot-h) * 0.4618 + 112px), 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(24px, 2.8vw, 38px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
  -webkit-overflow-scrolling: touch;
}

.sheet-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.feat-panel { display: none; }

.feat-panel.is-active { display: block; }

.panel-kicker {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--navy-2);
}

.panel-title {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.panel-text {
  max-width: 72ch;
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.panel-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
  align-items: start;
  justify-items: center;
  margin-top: clamp(16px, 2.6vh, 26px);
}

.panel-shots img {
  width: auto;
  max-width: 100%;
  height: var(--shot-h);
  object-fit: contain;
  border: 1px solid #e6e1d8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 34px -26px rgba(22, 38, 58, 0.55);
  cursor: zoom-in;
}

/* video layer */
.vid {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  place-items: center;
  padding: 5vh 5vw;
  background: rgba(9, 12, 17, 0.96);
}

.vid.is-open { display: grid; }

.vid video {
  width: min(1080px, 92vw);
  max-height: 86vh;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

body.is-locked { overflow: hidden; }

/* =========================================================
   PRODUCT · responsive
   ========================================================= */
@media (max-width: 1080px) {
  body.iac-page {
    height: auto;
    overflow: visible;
  }

  .iac { padding-top: 86px; padding-bottom: 30px; }

  .iac-top {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 3vh, 26px);
  }

  .iac-banner { max-width: 620px; }

  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .feat { min-height: 120px; }
}

@media (max-width: 720px) {
  .iac { padding-top: 76px; }

  .iac-banner { max-width: none; }

  .feat { min-height: 108px; }

  .feat-go { opacity: 1; transform: none; }

  .sheet { padding: 12px; }

  .sheet-panel {
    max-height: 92vh;
    padding: 22px 18px 26px;
    border-radius: 10px;
  }

  .panel-shots {
    display: flex;
    gap: 12px;
    margin-inline: -18px;
    padding: 0 18px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .panel-shots img {
    flex: 0 0 64%;
    width: auto;
    height: auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 460px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .feat { min-height: 96px; }
}

@media (max-height: 830px) and (min-width: 1081px) {
  .iac-title { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }

  .feat { min-height: clamp(120px, 17vh, 158px); }

  .feat-name { font-size: clamp(14px, 1.15vw, 16.5px); }
}

/* =========================================================
   ABOUT · 工作之外 (one screen)
   ========================================================= */
body.about-page {
  min-height: 100vh;
  background: #fff;
}

/* page mark, top right */
.about-topmark {
  position: fixed;
  top: clamp(20px, 2.9vh, 30px);
  right: clamp(18px, 1.6vw, 28px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.about-topmark-no {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 8.5px;
  letter-spacing: 0;
  color: var(--accent);
}

.about-topmark-line {
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.about {
  /* 左栏定宽（一行放下联系方式所需），右栏由收藏行宽决定，中间是设计好的栏间距；
     容器宽度 = 三者之和 + 两侧留白，所以留白不会随着屏幕变高变胖 */
  --about-left: 512px;
  --about-gap: clamp(88px, 7.4vw, 128px);
  --shelf-gap: clamp(6px, 0.7vw, 10px);
  --shelf-unit: clamp(100px, min(21vh, 13vw), 195px);
  --shelf-row-w: calc(var(--shelf-unit) * 2.8 + var(--shelf-gap) * 3);
  width: 100%;
  max-width: calc(
    var(--about-left) + var(--about-gap) + var(--shelf-row-w) + var(--gutter) * 2
  );
  margin-inline: auto;
  padding: clamp(70px, 9.6vh, 104px) var(--gutter) clamp(20px, 3.4vh, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--about-gap);
  align-items: stretch;
}

/* the page is a single screen from laptop size up */
@media (min-width: 981px) and (min-height: 621px) {
  body.about-page {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }

  .about { height: 100%; }
}

/* ---------- left: identity, print, contact ---------- */
.about-id {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.about-head { flex: none; }

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.about-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.about-title {
  margin-top: clamp(10px, 1.6vh, 16px);
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.06em;
}

.about-sub {
  margin-top: clamp(7px, 1.2vh, 12px);
  font-family: var(--font-serif);
  font-size: clamp(12.5px, 1.02vw, 15px);
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

/* framed illustration */
.about-print {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.about-print-frame {
  display: block;
  /* 略小于原先，按列宽与视口高度取最小值，始终贴齐左栏 */
  width: min(100%, 56vh);
  aspect-ratio: 1 / 1;
  padding: clamp(6px, 0.8vh, 9px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(70, 52, 28, 0.05),
    0 22px 44px -34px rgba(70, 52, 28, 0.55);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.about-print:hover .about-print-frame {
  transform: translateY(-3px);
  box-shadow: 0 2px 3px rgba(70, 52, 28, 0.06),
    0 30px 54px -34px rgba(70, 52, 28, 0.5);
}

.about-print-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-print figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 56vh);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* contact */
.about-contact {
  flex: none;
  border-top: 1px solid var(--line);
  padding-top: clamp(9px, 1.5vh, 15px);
}

.contact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.contact-en {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* 两端对齐：右侧复制按钮与上方 CONTACT 标签右缘对齐 */
  justify-content: space-between;
  gap: 6px clamp(16px, 2.2vw, 30px);
  padding-bottom: 1px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.contact-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.contact-value {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 11.8px);
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.35s var(--ease), text-decoration-color 0.35s var(--ease);
}

.contact-value:hover { text-decoration-color: currentColor; }

.contact-copy {
  flex: none;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.contact-copy:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.contact-copy.is-copied,
.contact-copy.is-copied:hover {
  border-color: rgba(154, 106, 63, 0.55);
  background: var(--hl);
  color: var(--accent);
}

/* ---------- right: three shelves ---------- */
.about-shelves {
  /* 行宽 = 4 张封面 + 3 个间隔，三排收藏共用同一列宽 */
  width: var(--shelf-row-w);
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 0;
}

.shelf {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.3vh, 13px);
  width: 100%;
  min-height: 0;
  padding: clamp(9px, 1.5vh, 16px) 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.shelf:last-child { border-bottom: 1px solid var(--line); }

.shelf-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-inline: 1px;
}

.shelf-no {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.shelf-name {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.35vw, 18.5px);
  font-weight: 600;
  letter-spacing: 0.18em;
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}

.shelf-en {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
  transform: translateY(1px);
}

.shelf-rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 14px;
  background: var(--line);
}

.shelf-go {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    color 0.35s var(--ease), transform 0.45s var(--ease);
}

.shelf:hover .shelf-go,
.shelf:focus-visible .shelf-go {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translate(2px, -2px);
}

.shelf:hover .shelf-name { color: var(--accent); }

.shelf-items {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: var(--shelf-gap);
  min-width: 0;
  padding-bottom: clamp(5px, 0.9vh, 9px);
  border-bottom: 1px solid #f1eee7;
}

.shelf {
  --frame-h: var(--shelf-unit);
}

.shelf-frame {
  position: relative;
  flex: none;
  height: var(--frame-h);
  padding: clamp(3px, 0.5vh, 5px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 22px -20px rgba(70, 52, 28, 0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.35s var(--ease);
}

.shelf-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf--games {
  /* 4 张 2:3 封面要铺满与历史排同样的行宽，行高比基准高 5% */
  --frame-h: calc(var(--shelf-unit) * 1.05);
}

.shelf--games .shelf-frame {
  width: calc(var(--frame-h) * 2 / 3);
}

.shelf--history {
  --frame-h: var(--shelf-unit);
}

.shelf--history .shelf-frame {
  width: calc(var(--frame-h) * 0.7);
}

.shelf--football .shelf-frame {
  width: calc(var(--frame-h) * 16 / 9);
}

.shelf:hover .shelf-frame {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -22px rgba(70, 52, 28, 0.6);
}

.shelf-frame::after {
  content: attr(data-cap);
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(18, 16, 13, 0.74);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

.shelf-frame:hover::after {
  opacity: 1;
  transform: none;
}

/* 大屏单屏版式：三排收藏共用同一列宽，两端对齐 */
@media (min-width: 981px) {
  .shelf-items {
    justify-content: space-between;
  }

  /* 横图按行宽自适应，左右两端与上下两排图片对齐 */
  .shelf--football .shelf-frame {
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }
}

/* entrance */
.about-head,
.about-print,
.about-contact {
  animation: rise 0.9s var(--ease) both;
}

.about-print { animation-delay: 0.08s; }
.about-contact { animation-delay: 0.16s; }

.shelf { animation: rise 0.9s var(--ease) both; }
.shelf:nth-child(1) { animation-delay: 0.16s; }
.shelf:nth-child(2) { animation-delay: 0.23s; }
.shelf:nth-child(3) { animation-delay: 0.3s; }

/* =========================================================
   ABOUT · hobby sheet
   ========================================================= */
.hobby-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  padding: clamp(14px, 3.2vh, 40px) clamp(14px, 3.2vw, 40px);
  background: rgba(20, 17, 13, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hobby-sheet.is-open { display: grid; }

.hobby-panel {
  position: relative;
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(24px, 3.4vw, 46px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 50px 90px -40px rgba(20, 17, 13, 0.62);
  outline: none;
  -webkit-overflow-scrolling: touch;
}

.hobby-panel:focus-visible { outline: none; }

.hobby-sheet.is-open .hobby-panel {
  animation: sheetIn 0.45s var(--ease) both;
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(16px) scale(0.986); }
  to { opacity: 1; transform: none; }
}

.hobby-close {
  position: absolute;
  top: clamp(14px, 2.2vw, 24px);
  right: clamp(14px, 2.2vw, 24px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hobby-close:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: rotate(90deg);
}

.hobby-close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 50%;
}

.hobby-view { display: none; }

.hobby-view.is-active { display: block; }

.hobby-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hobby-no {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 8.5px;
  letter-spacing: 0;
  color: var(--accent);
}

.hobby-title {
  margin-top: clamp(8px, 1.4vh, 13px);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
}

.hobby-line {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hobby-rail {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.2vw, 15px);
  margin-top: clamp(18px, 3vh, 30px);
  padding-bottom: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.hobby-rail::-webkit-scrollbar { height: 4px; }
.hobby-rail::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 2px;
}

.hobby-shot {
  flex: none;
  height: var(--shot-h);
  margin: 0;
  padding: clamp(3px, 0.6vh, 6px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 22px 36px -30px rgba(70, 52, 28, 0.55);
  scroll-snap-align: start;
}

.hobby-shot img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: cover;
}

.hobby-shot--crop { width: clamp(220px, 24vw, 390px); }

.hobby-shot--crop img { width: 100%; object-position: 42% center; }

.hobby-view--games { --shot-h: clamp(200px, 34vh, 340px); }
.hobby-view--football { --shot-h: clamp(160px, 31vh, 280px); }
.hobby-view--history { --shot-h: clamp(160px, 29vh, 290px); }

.hobby-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: clamp(18px, 3vh, 28px);
  padding-top: clamp(12px, 2vh, 17px);
  border-top: 1px solid var(--line);
}

.hobby-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hobby-tags li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hobby-tags li:first-child {
  border-color: rgba(154, 106, 63, 0.3);
  background: rgba(154, 106, 63, 0.05);
  color: var(--accent);
}

body.is-locked { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .about {
    --about-left: 460px;
    --about-gap: clamp(56px, 6vw, 88px);
  }
}

@media (max-width: 980px) {
  body.about-page {
    height: auto;
    overflow: visible;
  }

  .about {
    max-width: var(--shell);
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(26px, 4vh, 38px);
    padding-top: 88px;
    padding-bottom: 48px;
  }

  .about-id { gap: 4px; }

  .about-print { flex: none; padding-block: 6px 12px; }

  .about-print-frame,
  .about-print figcaption { width: clamp(220px, 54vw, 420px); }

  .about-contact { margin-top: 10px; }

  .about-shelves {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .shelf {
    padding-block: 18px;
    gap: 12px;
    --frame-h: clamp(110px, 22.5vw, 210px);
  }

  .shelf--games { --frame-h: clamp(120px, 28vw, 270px); }

  .shelf--history { --frame-h: clamp(110px, 24vw, 235px); }

  .shelf--football { --frame-h: clamp(110px, 25vw, 210px); }

  .about-topmark { display: none; }
}

@media (max-width: 620px) {
  .about { padding-top: 80px; }

  .about-title { font-size: clamp(2rem, 10vw, 2.9rem); }

  .about-print-frame,
  .about-print figcaption { width: min(100%, 330px); }

  .shelf-head { gap: 7px; }

  .shelf-items {
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
  }

  .shelf-items::-webkit-scrollbar { display: none; }

  .shelf { --frame-h: 124px; }

  .shelf--games { --frame-h: 136px; }

  .shelf--history { --frame-h: 132px; }

  .shelf-frame { padding: 3px; scroll-snap-align: start; }

  .contact-value { font-size: 10.5px; }

  .hobby-sheet { padding: 0; }

  .hobby-rail { scrollbar-width: none; }

  .hobby-rail::-webkit-scrollbar { display: none; }

  .hobby-panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    padding: 26px 20px 34px;
    border-radius: 0;
  }

  .hobby-view--games { --shot-h: 210px; }
  .hobby-view--football { --shot-h: 180px; }
  .hobby-view--history { --shot-h: 170px; }
}

/* short laptops */
@media (min-width: 981px) and (max-height: 760px) {
  .about { padding-top: 78px; }

  .about-title { font-size: clamp(2rem, 3.8vw, 3rem); }

  .about-print-frame,
  .about-print figcaption { width: min(100%, 46vh); }

  .about { --shelf-unit: clamp(92px, 19vh, 160px); }

  .shelf {
    padding-block: 8px;
    gap: 7px;
  }
}

@media (max-width: 980px) {
  .about-print { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .about-head,
  .about-print,
  .about-contact,
  .shelf,
  .hobby-sheet.is-open .hobby-panel { animation: none; }
}

/* ---------- Site legal footer (ICP) ----------
   整站是一屏式布局，页脚必须足够薄，否则会挤掉工牌/卡片的空间 */
.site-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  justify-content: center;
  padding: 14px var(--gutter) 16px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.site-legal a {
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-legal a:hover { color: var(--ink); border-color: var(--ink); }

/* 首页底部不需要额外留白 */
body.home .site-legal { margin-top: 8px; border-top: 0; }

@media (max-width: 640px) {
  .site-legal { margin-top: 16px; padding-bottom: 18px; }
}

