/* HY Thinking company official site
   Direction: 弥敦纸本 / Nathan Paper, with live product imagery */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #161410;
  --ink-soft: #2a261f;
  --paper: #f3eee4;
  --paper-deep: #e8e0d2;
  --rule: rgba(138, 106, 58, 0.38);
  --copper: #8a6a3a;
  --copper-deep: #6f542d;
  --muted: #5c574e;
  --text: #2c2822;
  --paper-ink: #f3eee4;
  --focus: #8a6a3a;
  --header-h: 4.25rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 72rem;
  --font-serif: "Cormorant Garamond", "Noto Serif CJK SC", "Noto Serif SC", "Noto Serif", "Songti SC", serif;
  --font-serif-cn: "Noto Serif CJK SC", "Noto Serif SC", "Noto Serif CJK", "Songti SC", "Cormorant Garamond", serif;
  --font-sans: "Source Sans 3", "Noto Sans CJK SC", "Noto Sans SC", "Noto Sans CJK", "Source Han Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(22, 20, 16, 0.035) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0.4rem; }

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

a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Language visibility */
.t-zh, .t-en { display: none; }
html[lang="zh-Hans"] .t-zh,
html[lang="en"] .t-en { display: contents; }

p.t-zh, p.t-en,
li.t-zh, li.t-en,
h1.t-zh, h1.t-en,
h2.t-zh, h2.t-en,
h3.t-zh, h3.t-en,
span.t-zh, span.t-en,
a.t-zh, a.t-en,
div.t-zh, div.t-en,
figcaption .t-zh, figcaption .t-en {
  display: none;
}
html[lang="zh-Hans"] p.t-zh,
html[lang="zh-Hans"] li.t-zh,
html[lang="zh-Hans"] h1.t-zh,
html[lang="zh-Hans"] h2.t-zh,
html[lang="zh-Hans"] h3.t-zh,
html[lang="zh-Hans"] span.t-zh,
html[lang="zh-Hans"] a.t-zh,
html[lang="zh-Hans"] div.t-zh,
html[lang="zh-Hans"] figcaption .t-zh,
html[lang="en"] p.t-en,
html[lang="en"] li.t-en,
html[lang="en"] h1.t-en,
html[lang="en"] h2.t-en,
html[lang="en"] h3.t-en,
html[lang="en"] span.t-en,
html[lang="en"] a.t-en,
html[lang="en"] div.t-en,
html[lang="en"] figcaption .t-en {
  display: block;
}
html[lang="zh-Hans"] span.t-zh,
html[lang="zh-Hans"] a.t-zh,
html[lang="zh-Hans"] figcaption .t-zh,
html[lang="en"] span.t-en,
html[lang="en"] a.t-en,
html[lang="en"] figcaption .t-en {
  display: inline;
}

.lockup { display: flex; flex-direction: column; gap: 0.15em; }
.lockup .zh {
  font-family: var(--font-serif-cn);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lockup .en {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
}
html[lang="zh-Hans"] .lockup .zh { order: 0; }
html[lang="zh-Hans"] .lockup .en { order: 1; }
html[lang="en"] .lockup .en { order: 0; font-style: normal; font-weight: 500; color: inherit; }
html[lang="en"] .lockup .zh { order: 1; color: var(--muted); font-weight: 500; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.wordmark-mark {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  border: 1px solid var(--copper);
  color: var(--copper-deep);
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  top: 0.15rem;
}
.wordmark-cn {
  font-family: var(--font-serif-cn);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}
.wordmark-en {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.header-tools { display: flex; align-items: center; gap: 1.75rem; }
.nav { display: flex; gap: 1.35rem; }
.nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--copper-deep); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--rule);
  padding: 0.15rem;
  background: transparent;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  line-height: 1.2;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.wrap {
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Hero: compact identity, then three line entries visible in the first screen */
.hero { padding: 0 0 1.35rem; background: var(--paper); }
.hero-atmosphere {
  margin: 0;
  width: 100%;
  background: #2a241c;
  position: relative;
}
.hero-atmosphere img {
  width: 100%;
  height: min(7vh, 3.75rem);
  display: block;
  object-fit: cover;
  object-position: left center;
}
.hero-atmosphere .promo-credit {
  position: absolute;
  right: 0.85rem;
  top: 0.45rem;
  width: auto;
  margin: 0;
  padding: 0.22rem 0.5rem;
  color: var(--paper-ink);
  background: rgba(22, 20, 16, 0.42);
  z-index: 2;
}
.hero-copy {
  position: relative;
  margin: 0 auto;
  padding-top: clamp(1.15rem, 2.4vh, 1.75rem);
  padding-bottom: 0.35rem;
  background: transparent;
}

/* Shared atmosphere plates below the hero */
.line-atmosphere,
.about-atmosphere {
  margin: 0;
  width: 100%;
  background: #2a241c;
}
.line-atmosphere img,
.about-atmosphere img {
  width: 100%;
  height: min(54vh, 32rem);
  display: block;
  object-fit: cover;
  object-position: center;
}
.line-atmosphere { margin: 0 0 0.35rem; }
.about-atmosphere { margin: 0 0 clamp(1.75rem, 4vh, 2.75rem); }

.hero-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.15rem;
  margin: 1.15rem 0 0;
  padding: 0;
}
.hero-line {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  min-width: 0;
  transition: border-color 0.16s ease;
}
.hero-line:hover { border-color: var(--copper); }
.hero-line figure {
  margin: 0;
  background: var(--paper-deep);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.hero-line img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hero-line:nth-child(2) img { object-position: center top; }
.hero-line:nth-child(3) img { object-position: center 30%; }
.hero-line-label {
  margin: 0.7rem 0.85rem 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
html[lang="zh-Hans"] .hero-line-label { letter-spacing: 0.16em; }
.hero-line-works {
  margin: 0.2rem 0.85rem 0;
  font-family: var(--font-serif), var(--font-serif-cn);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.hero-line-works .aka {
  margin-left: 0.45rem;
  font-family: var(--font-serif-cn);
  font-size: 0.82em;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.hero-line-claim {
  margin: 0.2rem 0.85rem 0.9rem;
  font-family: var(--font-serif-cn), var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
html[lang="en"] .hero-line-claim {
  font-family: var(--font-serif);
  font-style: italic;
}

.hero-overview { margin: 0.55rem 0 0; }
.overview-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.overview-lead {
  max-width: 46rem;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.overview-line-label {
  margin: 0 0 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.overview-general {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.7rem 0.55rem;
  background: var(--paper);
}
.cascade {
  display: grid;
  grid-template-columns: minmax(9.5rem, 1fr) 5.6rem repeat(4, minmax(6.5rem, 1fr));
  gap: 0.35rem 0.45rem;
  align-items: start;
}
.ov-node { min-width: 0; }
.ov-jump {
  display: block;
  color: inherit;
  text-decoration: none;
}
.ov-node figure {
  margin: 0;
  background: var(--paper-deep);
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
}
.ov-node img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.ov-other:nth-child(1) img { object-position: center top; }
.ov-other:nth-child(2) img { object-position: center 30%; }
.ov-name {
  margin: 0.28rem 0 0;
  font-family: var(--font-serif), var(--font-serif-cn);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.ov-name .aka {
  margin-left: 0.35rem;
  font-family: var(--font-serif-cn);
  font-size: 0.78em;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.ov-claim {
  margin: 0.1rem 0 0;
  font-family: var(--font-serif-cn), var(--font-serif);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.35;
}
html[lang="en"] .ov-claim {
  font-family: var(--font-serif);
  font-style: italic;
}
.ov-url {
  display: inline-block;
  margin-top: 0.12rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--copper-deep);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.05rem;
}
.ov-url:hover { border-bottom-color: var(--copper); }
.ov-url::after { content: " ↗"; font-size: 0.85em; }
.cascade-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.4rem 0.1rem 0;
}
.cascade-arrow {
  display: block;
  width: 100%;
  height: 0;
  border-top: 1px solid var(--copper);
  position: relative;
}
.cascade-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--copper);
  border-top: 1px solid var(--copper);
  transform: rotate(45deg);
}
.cascade-caption {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 7.2rem;
}

.cascade-records {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;
}
.cascade-records li { min-width: 0; }
.ov-record .ov-name { font-size: 0.84rem; }
.overview-other {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.ov-other {
  border: 1px solid var(--rule);
  padding: 0.4rem 0.6rem 0.4rem;
  background: var(--paper);
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 0.7rem;
  align-items: start;
}
.ov-other .overview-line-label { grid-column: 1 / -1; margin-bottom: 0.3rem; }
.ov-other .ov-jump { display: contents; }
.ov-other figure {
  grid-column: 1;
  grid-row: 2 / 4;
  aspect-ratio: 16 / 10;
  max-height: 5.2rem;
  width: 100%;
}
.ov-other .ov-name,
.ov-other .ov-claim { grid-column: 2; }
.ov-other .ov-url { grid-column: 2; align-self: end; }


.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0 0 0.65rem;
}
.hero h1 { margin: 0; font-weight: 500; color: var(--ink); line-height: 1.15; }
.hero .cn-name {
  font-family: var(--font-serif-cn);
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  display: block;
}
.hero .en-name {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.5vw, 1.22rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.hero-lead {
  max-width: 52rem;
  margin-top: 0.8rem;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-plate {
  width: 100%;
  margin: 0;
  background: var(--paper);
}
.hero-plate img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #0b5c46;
}
.hero-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.35rem;
  color: var(--ink-soft);
}
.hero-credit .credit-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-credit .credit-blurb { font-size: 0.98rem; }
.hero-credit .piece-link { margin-top: 0; }

/* Work */
.work { border-top: 1px solid var(--rule); }
.work-head { padding: clamp(3.25rem, 7vh, 5rem) 0 2rem; }
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0 0 1.25rem;
}
.work-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.2;
  color: var(--ink);
}
.work-lead {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.8;
}
.work-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  margin: 1.35rem 0 0;
  padding: 0;
  max-width: 42rem;
}
.work-index a {
  font-family: var(--font-serif-cn), var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--copper-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  letter-spacing: 0.04em;
}
html[lang="en"] .work-index a {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.02em;
}
.work-index a:hover { border-bottom-color: var(--copper); }

.work-line { padding: 0; }
.work-line + .work-line {
  margin-top: clamp(2.5rem, 7vh, 5rem);
  border-top: 0;
  padding-top: 0;
}
.work-line-head { margin: 0 0 0.35rem; }
.work-line-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0 0 0.65rem;
}
html[lang="zh-Hans"] .work-line-label { letter-spacing: 0.18em; }
.work-line-claim {
  font-family: var(--font-serif-cn), var(--font-serif);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0 0 0.45rem;
  max-width: 28em;
}
html[lang="en"] .work-line-claim {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.01em;
}
.work-line-lead {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.work-piece { padding: clamp(2.25rem, 5vh, 3.75rem) 0 0; }
.work-line .work-piece:first-of-type { padding-top: clamp(1.35rem, 3vh, 2.1rem); }
.work-piece + .work-piece { margin-top: clamp(1.5rem, 4vh, 2.75rem); border-top: 1px solid var(--rule); padding-top: clamp(2.5rem, 6vh, 4rem); }

.piece-head {
  display: block;
  margin-bottom: 0.7rem;
}
.piece-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.piece-name .aka {
  display: inline;
  margin-left: 0.65rem;
  font-family: var(--font-serif-cn);
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.piece-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--copper-deep);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.08rem;
}
.piece-link:hover { border-bottom-color: var(--copper); }
.piece-link::after { content: " ↗"; font-size: 0.85em; }
.piece-intro {
  max-width: 44rem;
  margin: 0 0 1.7rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.82;
}
.piece-intro p { margin: 0; }
.piece-intro p + p { margin-top: 0.9em; }
.piece-claim {
  font-family: var(--font-serif-cn), var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0 0 1em;
  max-width: 28em;
}
html[lang="en"] .piece-claim {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.piece-intro .piece-claim + .piece-claim { margin-top: 0; }
/* only one claim visible per language; the + sibling margin is handled by lang hidden rules */

.work-plate {
  width: 100%;
  background: var(--paper-deep);
}
.work-plate img {
  width: 100%;
  height: auto;
  max-height: min(68vh, 42rem);
  object-fit: cover;
  object-position: center;
}

.record-grid {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
}
.record-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}
.record-card:hover { border-color: var(--copper); }
.record-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--paper-deep);
}
.record-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem 1rem;
}
.record-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}
.record-claim {
  font-family: var(--font-serif), var(--font-serif-cn);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  margin-top: 0.15rem;
  max-width: 36rem;
}
html[lang="zh-Hans"] span.record-claim.t-zh,
html[lang="en"] span.record-claim.t-en { display: block; }
html[lang="en"] .record-claim {
  font-style: italic;
}
.record-line {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-top: 0.25rem;
}
.record-url {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--copper-deep);
}

.slide-grid {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
}
.slide-grid figure {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}
.slide-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  padding-bottom: clamp(1.25rem, 4vh, 2.5rem);
}
.shot-grid .phone-frame {
  width: auto;
  max-width: none;
}

.art-pair {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: end;
  padding-top: 1.25rem;
  padding-bottom: clamp(1rem, 3vh, 2rem);
}
.story-still {
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  overflow: hidden;
}
.story-still img { width: 100%; height: auto; object-fit: cover; }

.phone-row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  align-items: flex-end;
}
.phone-frame {
  margin: 0;
  width: min(15rem, 48%);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  overflow: hidden;
  background: #111;
  box-shadow: 0 18px 40px rgba(22, 20, 16, 0.12);
}
.phone-frame img { width: 100%; height: auto; }

.peekta-stage {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem 2rem;
  align-items: end;
  padding-bottom: clamp(1.25rem, 4vh, 2.5rem);
}
.peekta-player { max-width: 28rem; }
.peekta-phones {
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}
.peekta-phones .phone-frame {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  max-width: 13rem;
}

/* About & contact */
.section {
  padding: clamp(3.5rem, 8vh, 6rem) 0;
  border-top: 1px solid var(--rule);
}
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(20rem, 1.3fr);
  gap: 3rem 4rem;
  align-items: start;
}
.about-title,
.contact-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  color: var(--ink);
}
.about-copy,
.contact-body {
  max-width: 42rem;
  color: var(--ink-soft);
}
.about-copy p { margin-bottom: 1.15em; }

#contact { min-height: calc(100vh - var(--header-h) - 14rem); }

.contact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.contact-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.contact-k {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.contact-list a:hover { border-bottom-color: var(--copper); color: var(--copper-deep); }
.address { font-style: normal; margin: 0; line-height: 1.65; }

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3.25rem 0 2.5rem;
}
.site-footer a { color: var(--paper); }
.footer-legal { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 2rem; }
.footer-legal .cn {
  font-family: var(--font-serif-cn);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.footer-legal .en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.88;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(243, 238, 228, 0.16);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(243, 238, 228, 0.72);
  letter-spacing: 0.03em;
}
.footer-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 238, 228, 0.28);
}
.footer-meta a:hover { color: var(--paper); border-bottom-color: var(--paper); }

.nobr { white-space: nowrap; }

html[lang="zh-Hans"] .hero-lead,
html[lang="zh-Hans"] .overview-lead,
html[lang="zh-Hans"] .cascade-caption,
html[lang="zh-Hans"] .ov-claim,
html[lang="zh-Hans"] .work-lead,
html[lang="zh-Hans"] .work-line-claim,
html[lang="zh-Hans"] .work-line-lead,
html[lang="zh-Hans"] .work-index,
html[lang="zh-Hans"] .hero-line-claim,
html[lang="zh-Hans"] .hero-lead,
html[lang="zh-Hans"] .overview-lead,
html[lang="zh-Hans"] .cascade-caption,
html[lang="zh-Hans"] .ov-claim,
html[lang="zh-Hans"] .piece-intro,
html[lang="zh-Hans"] .piece-claim,
html[lang="zh-Hans"] .record-claim,
html[lang="zh-Hans"] .record-line,
html[lang="zh-Hans"] .about-copy,
html[lang="zh-Hans"] .contact-body {
  line-break: strict;
}

#work, #line-general, #line-entertainment, #line-education, #wholescroll, #records, #helleat, #peekta, #about, #contact, .section, .work-piece, .work-line {
  scroll-margin-top: calc(var(--header-h) + 0.9rem);
}


@media (max-width: 860px) {
  .hero-atmosphere img { height: min(12vh, 5.5rem); object-position: center; }
  .hero-lines { grid-template-columns: 1fr; gap: 0.85rem; }
  .hero-line figure { aspect-ratio: 16 / 9; }
  .cascade {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .cascade-join { flex-direction: row; justify-content: flex-start; text-align: left; padding: 0.15rem 0; }
  .cascade-arrow { width: 2.2rem; flex: 0 0 2.2rem; transform: rotate(90deg); }
  .cascade-caption { max-width: none; }
  .cascade-records {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .overview-other { grid-template-columns: 1fr; }
 
.ov-other { grid-template-columns: 6.5rem 1fr; }
  .line-atmosphere img,
  .about-atmosphere img { height: min(32vh, 16rem); }
}

@media (max-width: 900px) {
  .piece-head,
  .art-pair,
  .peekta-stage,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .record-grid,
  .slide-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .peekta-player { max-width: 22rem; }
}

@media (max-width: 860px) {
  .wordmark-en { display: none; }
  .header-tools { gap: 0.85rem; }
  .nav { gap: 0.75rem; }
  .nav a { letter-spacing: 0.06em; font-size: 0.72rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.3rem; }
  #contact { min-height: calc(100vh - 7.25rem - 16rem); }
  .hero-plate img,
  .work-plate img { max-height: none; }
}

@media (max-width: 520px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    row-gap: 0.55rem;
  }
  .header-tools { width: 100%; justify-content: space-between; }
  .phone-frame { border-radius: 0.75rem; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
