/* Homepage extension: inherit the existing forest, gold and Chinese type. */
.home-page .home-section { padding-block: 96px; }
.home-page section[id] { scroll-margin-top: calc(var(--header) + 24px); }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.home-section-head h2 { font-family: var(--font-serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.35; font-weight: 500; }
.home-eyebrow { display: block; color: var(--gold-bright); font-size: 12px; letter-spacing: .14em; margin-bottom: 14px; }
.home-more { display: inline-flex; align-items: center; gap: 24px; color: var(--gold-bright); font-size: 14px; min-height: 44px; flex-shrink: 0; }
.home-more:hover { color: var(--ink); }
.home-more span { font-size: 21px; }
.home-section-intro { color: var(--muted); margin: -12px 0 36px; max-width: 46em; }
.home-page .hero-copy { padding-bottom: 150px; }
.home-page .hero-copy .home-eyebrow { margin-bottom: 24px; }
.hero-bottom { position: absolute; bottom: 36px; left: var(--pad); right: var(--pad); z-index: 4; display: flex; align-items: center; gap: 28px; max-width: 800px; }
.home-page .hero-nav { position: static; flex-direction: row; gap: 16px; flex: 1; }
.home-page .hero-nav button { width: auto; height: auto; border: 0; border-top: 1px solid rgba(231,238,233,.4); border-radius: 0; opacity: 1; background: transparent; flex: 1; padding: 14px 0 8px; text-align: left; font-size: 13px; color: var(--ink); min-height: 48px; }
.home-page .hero-nav button.is-on { border-color: var(--gold-bright); background: transparent; color: var(--gold-bright); }
.hero-nav button span { font-family: var(--font-mono); margin-right: 12px; font-size: 12px; }
.home-page .hero-scroll-cue { bottom: 42px; }
.home-jump-nav { border-block: 1px solid var(--border); background: var(--forest); }
.home-jump-nav .wrap { display: flex; justify-content: space-between; }
.home-jump-nav a { text-align: center; padding: 23px 12px; font-size: 14px; color: var(--muted); }
.home-jump-nav a:hover { color: var(--gold-bright); }
.home-introduction { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 44px; }
.home-introduction h3 { font-family: var(--font-serif); font-size: clamp(27px, 2.8vw, 38px); line-height: 1.65; font-weight: 400; }
.home-introduction p { color: var(--muted); line-height: 2; max-width: 36em; }
.home-company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.company-card { min-width: 0; background: var(--forest); border: 1px solid var(--border); display: flex; flex-direction: column; }
.company-card-image { overflow: hidden; aspect-ratio: 1.65; }
.company-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.company-card:hover img { transform: scale(1.025); }
.company-card-copy { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.company-card-copy small { color: var(--gold-bright); font-size: 12px; margin-bottom: 10px; }
.company-card h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; margin-bottom: 12px; }
.company-card p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.company-card .company-full-name { color: var(--ink); font-size: 12px; margin-bottom: 14px; }
.company-card-link { display: flex; justify-content: space-between; color: var(--gold-bright); font-size: 13px; padding-top: 26px; margin-top: auto; }
.home-business-link { display: flex; align-items: center; gap: 24px; margin-top: 28px; padding: 20px 0 0; font-size: 14px; border-top: 1px solid var(--border); }
.home-business-link > span:first-child { color: var(--muted); flex: 1; }
.home-business-link > span:last-child { color: var(--gold-bright); }
.home-history { background: var(--paper); color: var(--ink-dark); }
.home-history .home-eyebrow, .home-history .home-more { color: var(--forest); }
.home-history .home-section-intro { color: #4b6057; }
.home-timeline { list-style: none; display: grid; grid-template-columns: repeat(var(--milestones, 4), minmax(0, 1fr)); row-gap: 36px; margin-top: 46px; }
.home-timeline li { position: relative; padding: 0 30px 0 0; min-width: 0; }
.home-timeline time { display: block; font-family: var(--font-display); font-size: clamp(32px, 3vw, 44px); line-height: 1.2; padding-bottom: 24px; }
.home-timeline p { border-top: 1px solid #a5b5ac; padding-top: 30px; position: relative; color: #344e41; font-size: 14px; line-height: 1.9; }
.home-timeline p::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 5px var(--paper); }
.home-timeline li:last-child { padding-right: 0; }
.home-timeline li:last-child time { color: var(--forest); }
.home-page .home-products { background: var(--forest); }
.home-carousel-track { --columns: 3; --gap: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns)); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 5px; margin: -5px; }
.home-carousel-track::-webkit-scrollbar { display: none; }
.home-carousel-track { scroll-padding-inline: 5px; }
.home-carousel-track > * { min-width: 0; scroll-snap-align: start; }
.showcase-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); text-align: left; }
.showcase-card img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: contain; padding: 24px; background: #fff; }
.showcase-copy { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.showcase-copy small { color: var(--gold-bright); font-size: 12px; }
.showcase-copy h3 { font-family: var(--font-serif); font-size: 26px; font-weight: 500; line-height: 1.5; margin: 10px 0; }
.showcase-copy p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.showcase-link { margin-top: auto; padding-top: 22px; color: var(--ink); font-size: 13px; display: flex; justify-content: space-between; }
.showcase-link span { color: var(--gold-bright); }
.home-carousel-controls { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; gap: 20px; }
.home-carousel-controls > div { display: flex; align-items: center; gap: 12px; }
.home-carousel-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--border); color: var(--ink); }
.home-carousel-controls button:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.carousel-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.home-honors { border-bottom: 1px solid var(--border); }
.home-certificate { width: 100%; }
.home-certificate img { background: #f2f1ec; aspect-ratio: 1.28; }
.certificate-title { display: block; font-family: var(--font-serif); font-size: 20px; font-weight: 500; line-height: 1.6; margin: 10px 0; }
.home-certificate .certificate-owner { padding-top: 12px; margin-top: auto; color: var(--gold-bright); font-size: 12px; }
.certificate-dialog { margin: auto; max-width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); width: 900px; padding: 24px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); overflow: auto; }
.certificate-dialog::backdrop { background: rgba(0,0,0,.85); }
.certificate-dialog form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.certificate-dialog button { min-width: 64px; min-height: 44px; border: 1px solid var(--border); }
.certificate-dialog img { max-height: 65dvh; max-width: 100%; width: auto; margin: auto; object-fit: contain; }
.certificate-dialog h2 { font-size: 18px; margin: 20px 0 10px; line-height: 1.6; }
.certificate-dialog p { color: var(--muted); font-size: 14px; }
.home-load-state { padding: 30px; border: 1px solid var(--border); grid-column: 1/-1; }
.home-load-state a { display: inline-block; margin-top: 12px; text-decoration: underline; }
.home-page .home-news .news-lead img { aspect-ratio: 1.8; object-fit: cover; }
.home-page .top-btn { position: static; display: flex; width: auto; min-height: 44px; align-items: center; gap: 10px; padding: 8px 16px; margin: 24px var(--pad) 0 auto; font-size: 13px; }
@media (min-width: 1600px) { .hero-bottom { left: max(var(--pad), calc((100vw - 1280px) / 2)); } }
@media (max-width: 1024px) {
  .home-page .home-section { padding-block: 72px; }
  .home-introduction { gap: 32px; }
  .home-company-grid { gap: 16px; }
  .company-card-copy { padding: 20px; }
  .home-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-carousel-track { --columns: 2; --gap: 20px; }
  .hero-bottom { max-width: calc(100% - 150px); }
  .hero-nav button span { margin-right: 8px; }
}
@media (max-width: 767px) {
  .home-page .home-section { padding-block: 56px; }
  .home-section-head { align-items: flex-start; margin-bottom: 28px; gap: 16px; }
  .home-section-head .home-more { font-size: 12px; gap: 8px; align-self: flex-end; }
  .home-section-head h2 { font-size: 30px; }
  .home-eyebrow { font-size: 10px; letter-spacing: .1em; }
  .home-page .hero-copy { padding-bottom: 150px; }
  .home-page .hero-copy .home-eyebrow { font-size: 11px; }
  .hero-bottom { left: 20px; right: 20px; bottom: 30px; max-width: none; gap: 8px; flex-wrap: wrap; }
  .home-page .hero-nav { flex-basis: 100%; gap: 12px; }
  .home-page .hero-nav button { font-size: 11px; padding: 12px 0; }
  .hero-nav button span { margin-right: 5px; font-size: 10px; }
  .home-page .hero-scroll-cue { bottom: 32px; right: 20px; min-height: 44px; flex-direction: row; }
  .home-page .hero-scroll-cue i { height: 24px; }
  .home-jump-nav .wrap { width: 100%; }
  .home-jump-nav a { padding: 18px 2px; flex: 1; font-size: 11px; }
  .home-introduction { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .home-introduction h3 { font-size: 28px; }
  .home-introduction p { font-size: 14px; }
  .home-company-grid { grid-template-columns: 1fr; gap: 24px; }
  .company-card-image { aspect-ratio: 1.9; }
  .company-card-copy { padding: 24px; }
  .company-card h3 { font-size: 26px; }
  .home-business-link { flex-wrap: wrap; gap: 8px 16px; }
  .home-business-link > span:first-child { order: 2; flex-basis: 100%; font-size: 12px; }
  .home-business-link > span:last-child { margin-left: auto; }
  .home-timeline { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .home-timeline li { border-left: 1px solid #a5b5ac; padding: 0 0 30px 24px; }
  .home-timeline time { font-size: 38px; padding-bottom: 8px; }
  .home-timeline time::before { content: ''; position: absolute; left: -5px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--forest); }
  .home-timeline p { border: 0; padding: 0; }
  .home-timeline p::before { display: none; }
  .home-timeline li:last-child { padding-bottom: 0; }
  .home-section-intro { font-size: 14px; margin-bottom: 28px; }
  .home-carousel-track { --columns: 1; --gap: 16px; }
  .showcase-copy { padding: 24px; }
  .home-carousel-controls { padding-top: 22px; gap: 8px; }
  .home-carousel-controls > div { gap: 8px; }
  .certificate-dialog { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) { scroll-behavior: auto; }
  .home-page .company-card img { transition: none; }
  .home-page .hero-scroll-cue i::after { animation: none; }
}
