/* Hallmark · redesign · system: design.md “法迪奥：明亮引流型展厅”
 * pre-emit critique: P4 H4 E4 S5 R4 V4
 */
.home-hero { height: calc(100svh - var(--header-offset)); display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: .75rem; }
.hero-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; padding-bottom: 1rem; }
.hero-copy .eyebrow { margin-bottom: .25rem; }
.hero-copy h1 { margin-bottom: 0; font-size: clamp(1.75rem, 2.3vw, 2.75rem); font-weight: 500; letter-spacing: -.055em; }
.hero-copy h1 span { display: inline; }
.hero-summary { justify-self: end; max-width: 24rem; }
.hero-summary p { margin-bottom: 0; font-size: 1rem; line-height: 1.6; }
.hero-carousel { position: relative; display: grid; min-height: 0; }
.hero-photo { grid-area: 1 / 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; height: 100%; margin: 0 auto; width: min(calc(100% - 3rem), 90rem); }
.hero-photo ~ .hero-photo { display: none; }
.js [data-carousel-slide] { display: grid; }
.js [data-carousel-slide][hidden] { display: none; }
.home-hero-image { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 75%; }
.hero-caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding-block: .5rem; color: var(--color-muted); font-size: .875rem; background: var(--color-background); }
.hero-carousel-controls { position: absolute; z-index: 3; right: max(1.5rem, calc((100% - 90rem) / 2)); bottom: 4rem; width: auto; display: flex; gap: .5rem; opacity: 0; pointer-events: none; }
.hero-carousel-controls:focus-within { opacity: 1; pointer-events: auto; }
.hero-carousel-controls button { min-width: 44px; min-height: 44px; border: var(--line); background: var(--color-background); }
.hero-carousel-controls button:last-child { padding-inline: .8rem; }
.home-gateways { padding-block: 2.5rem 0; }
.gateway-grid { display: grid; grid-template-columns: 1fr 1fr; border-block: var(--line); }
.gateway { min-height: 14rem; padding: 2.5rem 3rem 2.5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; text-decoration: none; }
.gateway + .gateway { padding-left: 3rem; border-left: var(--line); }
.gateway small { display: block; margin-bottom: .75rem; color: var(--copper-400); font-size: .875rem; }
.gateway h2 { margin-bottom: .75rem; font-size: var(--step-2); }
.gateway p { margin: 0; color: var(--color-muted); }
.gateway-arrow { color: var(--copper-400); font-size: 2rem; transition: transform 200ms var(--ease); }
.gateway:hover .gateway-arrow { transform: translate(3px,-3px); }
.home-entry-paths { padding-block: 1.5rem; border-bottom: var(--line); }
.entry-paths-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.entry-paths-grid a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .5rem; border-left: var(--line); color: var(--color-muted); text-align: center; text-decoration: none; }
.entry-paths-grid a:last-child { border-right: var(--line); }
.entry-paths-grid a:hover { color: var(--copper-400); }
.works-layout { display: grid; grid-template-columns: 1.45fr .55fr; align-items: center; gap: 4rem; }
.featured-work { display: block; text-decoration: none; }
.featured-work > img { width: 100%; height: auto; }
.work-copy { display: flex; justify-content: space-between; align-items: start; gap: 2rem; padding-top: 1.25rem; }
.work-copy h3 { margin: 0; }
.work-copy span { flex-shrink: 0; color: var(--copper-400); }
.work-index { border-top: var(--line); }
.work-index a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; border-bottom: var(--line); text-decoration: none; }
.work-index a::after { content: "↗"; color: var(--copper-400); }
.work-index a:hover { color: var(--copper-400); }
.work-index strong { font-size: 1.125rem; font-weight: 500; }
.case-feature { display: grid; grid-template-columns: .45fr 1fr; align-items: center; gap: 4rem; }
.case-feature-copy h3 { font-size: var(--step-2); }
.case-feature-copy p { color: var(--color-muted); }
.case-feature > a { display: block; }
.case-feature img { width: 100%; height: auto; }
.material-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 6rem; }
.material-intro h2 { max-width: 9em; }
.material-list { margin: 0; }
.material-list > div { padding-block: 1.75rem; border-top: var(--line); }
.material-list > div:last-child { border-bottom: var(--line); }
.material-list dt { font-size: var(--step-1); margin-bottom: .5rem; }
.material-list dd { color: var(--color-muted); margin-bottom: 0; }
.material-actions { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2rem; }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.service-layout > div { padding-top: 1.75rem; border-top: var(--line-strong); }
.service-layout h2 { font-size: var(--step-2); }
.service-layout p { color: var(--color-muted); }
.service-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.journal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 4rem; }
.journal-item { display: grid; grid-template-columns: 8rem 1fr; align-items: center; gap: 1.5rem; padding-block: 1.5rem; border-top: var(--line); text-decoration: none; }
.journal-item:first-child { grid-row: span 3; grid-template-columns: 1fr; align-content: start; padding-top: 0; border: 0; }
.journal-item img { width: 100%; height: auto; }
.journal-item h3 { margin: .5rem 0 0; }
.journal-item:first-child h3 { font-size: var(--step-2); }
.home-contact-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 4rem; padding-top: 2rem; border-top: var(--line); }
.home-contact-line p { margin: 0; }
.partner-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
@media (max-width: 68rem) {
  .works-layout { gap: 2rem; grid-template-columns: 1.3fr .7fr; }
  .material-layout, .service-layout { gap: 3rem; }
  .journal-grid { gap: 0 2rem; }
  .entry-paths-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .home-hero { height: calc(100svh - var(--header-offset) - 3.5rem - max(1rem, env(safe-area-inset-bottom))); }
  .hero-layout, .works-layout, .case-feature, .material-layout, .service-layout, .journal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-summary { justify-self: start; max-width: 36rem; }
  .hero-layout { gap: .5rem; padding-bottom: .75rem; }
  .hero-copy h1 { font-size: clamp(1.75rem, 4.6vw, 2.25rem); }
  .hero-copy h1 span { display: inline; }
  .hero-photo { width: 100%; }
  .hero-caption { flex-wrap: wrap; gap: .25rem; }
  .gateway-grid { grid-template-columns: 1fr; }
  .gateway, .gateway + .gateway { min-height: 12rem; padding: 2rem 0; border-left: 0; }
  .gateway + .gateway { border-top: var(--line); }
  .entry-paths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-paths-grid a:nth-child(odd) { border-left: 0; }
  .entry-paths-grid a:nth-child(n + 3) { border-top: var(--line); }
  .entry-paths-grid a:last-child { border-right: 0; }
  .work-copy { flex-wrap: wrap; gap: .5rem; }
  .work-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .case-feature-copy { order: 2; }
  .journal-item:first-child { grid-row: auto; }
}
@media (max-height: 32rem) {
  .home-hero { padding-top: .25rem; }
  .hero-layout { grid-template-columns: 1.2fr 1fr; gap: 1rem; padding-bottom: .5rem; }
  .hero-copy h1 { font-size: 1.25rem; }
  .hero-copy .eyebrow { font-size: .75rem; }
  .hero-summary p { font-size: .875rem; line-height: 1.4; }
  .hero-caption { min-height: 2.5rem; padding-block: .25rem; }
}
