/* CARTISTORY: a quiet typographic sequence, then a readable, still page. */
:root {
  --accent: #e48162;
  --yellow: #e48162;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-fast: 180ms;
  --motion-reveal: 600ms;
  --motion-distance: 16px;
}
.language-tools { position: relative; flex-shrink: 0; }
#language { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 10px 0 10px 20px; font: 12px var(--mono); white-space: nowrap; }
#language span { display: inline; color: var(--muted); }
#language .language-divider { color: #62645c; }
html:lang(en) #language .language-en, html:lang(zh) #language .language-zh { color: var(--ink); }
html:lang(en) #language .language-zh { color: var(--accent); }
.language-hint { position: absolute; z-index: 20; right: 0; top: calc(100% + 12px); width: max-content; max-width: calc(100vw - 36px); display: flex; gap: 16px; align-items: center; padding: 13px 16px; background: #1c1e1b; color: var(--ink); border: 1px solid #55574e; font: 13px/1.6 Arial,"PingFang SC",sans-serif; text-align: left; animation: hint-in 260ms var(--motion-ease) both; }
.language-hint[hidden] { display: none; }
.language-hint::before { content: ''; position: absolute; right: 16px; top: -5px; width: 8px; height: 8px; border-top: 1px solid #55574e; border-left: 1px solid #55574e; background: #1c1e1b; transform: rotate(45deg); }
.language-hint > span:last-child { color: var(--accent); }
@keyframes hint-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.hero .brand-title { min-width: 0; gap: 18px; margin-block: 26px 30px; }
.hero-intro { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); row-gap: 12px; padding-bottom: 28px; }
.hero .brand-title { grid-column: 1; grid-row: 1; margin-block: 12px 14px; }
.hero-intro > .eyebrow { grid-column: 1; grid-row: 2; align-self: center; }
.hero-intro > .hero-bottom { display: none; }
.brand-latin { --brand-step: 900; --brand-settle: 500; display: inline-flex; align-items: baseline; font-size: clamp(48px, 7.8vw, 125px); line-height: 1.08; letter-spacing: -.065em; }
.brand-part { display: inline-block; opacity: 1; transform: none; transition: opacity 420ms var(--motion-ease), transform 420ms var(--motion-ease); }
.brand-period { color: var(--accent); }
.motion-boot .brand-latin .brand-part, .brand-latin.is-playing .brand-part { opacity: 0; transform: translateY(.09em); }
.brand-latin[data-phase="car"] :is([data-part="c"], [data-part="ar"]),
.brand-latin[data-phase="artist"] :is([data-part="ar"], [data-part="ti"], [data-part="st"]),
.brand-latin[data-phase="story"] :is([data-part="st"], [data-part="ory"]),
.brand-latin[data-phase="full"] .brand-part { opacity: 1; transform: none; }
.hero-description { grid-column: 2; grid-row: 1; align-self: center; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.75; padding-bottom: 0; }
.hero-intro .primary-link { grid-column: 2; grid-row: 2; width: min(100%, 240px); font-size: 13px; }
.primary-link { transition: border-color var(--motion-fast), color var(--motion-fast); }
.primary-link:hover { width: 210px; color: var(--accent); border-color: var(--accent); }
.daily-feature .primary-link:hover { width: 210px; }
.hero-intro .primary-link:hover { width: min(100%, 240px); }
.primary-link > span:last-child { transition: transform var(--motion-fast) var(--motion-ease); }
.primary-link:is(:hover, :focus-visible) > span:last-child { transform: translate(3px, 3px); }
.work > .section-heading h2 { font-size: clamp(44px, 5.5vw, 84px); line-height: 1.08; letter-spacing: -.05em; }
html:lang(zh) :is(h2, .about-copy h2, .work > .section-heading h2, .archive-callout h2, .contact h2) { letter-spacing: -.02em; }
.small-count { font-size: 13px; margin-top: 10px; }
.work > .section-heading { border-bottom-width: 1px; }
.archive-strip { border-top-color: var(--line); font-size: 11px; line-height: 1.6; }
.feature-heading, .spec-sheet { font-size: 11px; }
.project-info p, .hero-bottom, .hero-slide .art-caption { font-size: 12px; }
.about-copy > p { font-size: 14px; }
.detail-copy > p { font-size: 14px; }
.detail-feature { border-top-width: 1px; border-bottom-color: var(--line); }
.detail-copy h3 { letter-spacing: -.055em; }
.detail-line { display: block; }
.detail-keyword { display: inline-block; }
.motion-target:not(.detail-feature) { opacity: 0; transform: translateY(var(--motion-distance)); transition: opacity var(--motion-reveal) var(--motion-ease), transform var(--motion-reveal) var(--motion-ease); }
.motion-target.is-revealed:not(.detail-feature) { opacity: 1; transform: none; }
.detail-feature.motion-target .detail-line, .detail-feature.motion-target .detail-keyword { opacity: 0; transform: translateY(var(--motion-distance)); transition: opacity var(--motion-reveal) var(--motion-ease), transform var(--motion-reveal) var(--motion-ease); }
.detail-feature.motion-target .detail-line:nth-child(2) { transition-delay: 80ms; }
.detail-feature.motion-target .detail-keyword { transition-delay: 200ms; }
.detail-feature.is-revealed .detail-line, .detail-feature.is-revealed .detail-keyword { opacity: 1; transform: none; }
.contact-arrow { transition: transform 220ms var(--motion-ease), color 220ms, border-color 220ms, background 220ms; }
.contact-arrow:is(:hover, :focus-visible) { transform: translate(4px, -4px); }
.archive-entries .all-archive { color: var(--accent); }
.topbar .active { border-color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline-color: var(--accent); }
.home-header { border-bottom-width: 1px; }
.edition-line { display: none; }
.hero { padding-top: 30px; }
.index-line { display: none; }
.project-info h3 { font-weight: 600; }
.about-grid { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.25fr); gap: 10%; }
.about-copy .about-lead { max-width: 570px; line-height: 1.65; }
.about-copy > p { max-width: 570px; line-height: 1.9; }
.project-experience > div > span { font-size: 12px; }
.about-left > p { font-size: 11px; line-height: 1.7; }
.topbar { min-height: 88px; }
.topbar .logo b { font-size: 32px; }
.cover-heading { padding-block: 44px; }
.cover h1 { font-size: clamp(46px, 5.8vw, 86px); line-height: 1.06; }
.cover h1 span { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.filter-heading { border-bottom-width: 1px; }
.filter-heading h2 { font-size: 26px; }
.filter-toggle { display: none; }
#filter-options[hidden] { display: none; }
.styles .chip { border-radius: 0; }
.styles .chip[aria-pressed=true] { background: var(--accent); border-color: var(--accent); }
.card-top { border-color: var(--line); font-size: 11px; letter-spacing: .03em; }
.card-copy p { font-size: 12px; }
.archive-note { font-size: 12px; }

@media (max-width: 1050px) {
  .hero .brand-title { gap: 12px; }
  .hero-bottom { gap: 12px; font-size: 11px; }
}
@media (max-width: 700px) {
  .home-header { gap: 12px; }
  .home-header nav { gap: 18px; }
  #language { padding-left: 12px; gap: 6px; font-size: 11px; }
  .brand-latin { font-size: clamp(30px, 9.8vw, 66px); letter-spacing: -.055em; }
  .hero .brand-title { gap: 12px; margin-block: 26px; }
  .hero .brand-title .brand-han { font-size: clamp(13px, 3.4vw, 20px); }
  .hero-description { padding: 0; margin-bottom: 22px; }
  .hero-intro .primary-link, .hero-intro .primary-link:hover { width: 220px; }
  .work > .section-heading h2 { font-size: clamp(38px, 10.5vw, 60px); }
  .work > .section-heading { gap: 18px; }
  .small-count { margin-left: 12px; }
  .archive-strip { font-size: 10px; }
  .detail-copy h3 { font-size: clamp(42px, 11.5vw, 64px); }
  .contact h2 { font-size: clamp(34px, 9vw, 50px); }
  .contact-head { gap: 14px; }
  .contact-arrow { width: 60px; height: 60px; font-size: 40px; }
  .edition-line { font-size: 8px; letter-spacing: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-copy > p { font-size: 14px; }
  .project-experience > div > span { font-size: 11px; }
}
@media (max-width: 760px) {
  .topbar { min-height: 80px; }
  .cover-heading { padding-block: 28px; }
  .cover h1 { font-size: clamp(38px, 11vw, 56px); max-width: 12ch; }
  .cover-note { margin-top: 22px; }
  .cover-note p { line-height: 1.75; }
  .cover-arrow { font-size: 30px; }
  .cover-bottom { font-size: 9px; }
  .compact-filters .filter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; text-align: left; }
  .filter-toggle-state { color: var(--accent); font-size: 24px; }
  .results-bar { margin-top: 24px; }
  .card-top { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-part, .brand-latin.is-playing .brand-part,
  .motion-target:not(.detail-feature), .detail-feature.motion-target .detail-line,
  .detail-feature.motion-target .detail-keyword { opacity: 1 !important; transform: none !important; transition: none !important; }
  .language-hint { animation: none; }
  .contact-arrow:is(:hover, :focus-visible), .primary-link:is(:hover, :focus-visible) > span:last-child { transform: none; }
}
