/* The brand is always first; explicitly selected projects follow it. */
:is(.home-brand-hero, .project-feature--home) {
  --home-hero-title-size: 82px;
  --home-hero-title-leading: 1.08;
  --home-hero-label-size: 24px;
  --home-hero-copy-size: 18px;
  --home-hero-tagline-size: var(--home-hero-copy-size);
  --home-hero-tagline-leading: 1.6;
  --home-hero-action-size: 16px;
}
:is(.home-brand-hero, .project-feature--home):lang(zh-TW) { --home-hero-title-leading: 1.25; }
.project-feature--home:lang(zh-TW) { --home-hero-tagline-size: 48px; --home-hero-tagline-leading: 1.25; }
.home-brand-hero { position: relative; height: min(800px, calc(100svh - 120px)); min-height: 520px; color: #fff; overflow: hidden; letter-spacing: 0; }
.home-brand-hero__image, .home-brand-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-brand-hero__image { object-fit: cover; object-position: center; }
.home-brand-hero__shade { background: rgba(14, 25, 21, .43); }
.home-brand-hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; max-width: 1200px; margin: 0 auto; padding: 116px 48px 80px; text-align: center; }
.home-brand-hero__name { margin: 0 0 28px; color: #fff; font: 400 var(--home-hero-label-size)/1.4 var(--serif); }
.home-brand-hero__title { margin: 0; color: #fff; font: 400 var(--home-hero-title-size)/var(--home-hero-title-leading) var(--serif); letter-spacing: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.home-brand-hero__title > span { display: block; }
.home-brand-hero__title:lang(zh-TW) { font-family: 'Songti TC', 'Noto Serif TC', 'PMingLiU', serif; }
.home-brand-hero__subtitle { max-width: 550px; margin: 24px 0 0; color: #fff; font: 400 var(--home-hero-copy-size)/1.6 var(--sans); text-wrap: balance; }
.home-brand-hero__cta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; margin-top: 28px; padding: 0 0 5px; border-bottom: 1px solid rgba(255, 255, 255, .8); color: #fff; font: 500 var(--home-hero-action-size)/1.5 var(--sans); text-decoration: none; }
.home-brand-hero__cta svg { width: 20px; height: 20px; }
.home-brand-hero__cta:hover { color: #e4eee6; }
.home-brand-hero__cta:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.aurea-home .project-feature--home .project-feature__title { font-size: var(--home-hero-title-size); line-height: var(--home-hero-title-leading); }
.aurea-home .project-feature--home .project-feature__eyebrow { font-size: var(--home-hero-label-size); line-height: 1.4; }
.aurea-home .project-feature--home .project-feature__tagline { font-size: var(--home-hero-tagline-size); line-height: var(--home-hero-tagline-leading); }
.aurea-home .project-feature--home .project-feature__subtitle { font-size: var(--home-hero-copy-size); line-height: 1.6; }
.aurea-home .project-feature--home .project-feature__primary { font-size: var(--home-hero-action-size); line-height: 1.5; min-height: 48px; }
.home-hero-carousel { position: relative; width: 100%; touch-action: pan-y; }
.home-hero-slide[hidden], .home-hero-controls[hidden] { display: none !important; }
.home-hero-controls { position: absolute; right: 32px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 2px 6px; background: transparent; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65)); }
.home-hero-arrow, .home-hero-dot { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; cursor: pointer; }
.home-hero-arrow svg, .home-hero-arrow i { width: 22px; height: 22px; }
.home-hero-dots { display: flex; }
.home-hero-dot::after { content: ''; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; }
.home-hero-dot[aria-current="true"]::after { background: #fff; }
.home-hero-controls button:hover { opacity: .75; }
.home-hero-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.home-hero-counter { width: 42px; flex: none; font: 400 12px/1.4 var(--sans); font-variant-numeric: tabular-nums; text-align: center; letter-spacing: 0; }
.home-hero-alternatives { display: flex; flex-wrap: wrap; gap: 20px; padding: 16px 24px; background: #173b2b; color: #fff; }
.home-hero-alternatives a { color: inherit; text-decoration: underline; }
@media (max-width: 767px) {
  :is(.home-brand-hero, .project-feature--home) { --home-hero-title-size: 38px; --home-hero-title-leading: 1.15; --home-hero-label-size: 18px; --home-hero-copy-size: 16px; --home-hero-action-size: 15px; }
  :is(.home-brand-hero, .project-feature--home):lang(zh-TW) { --home-hero-title-size: 80px; --home-hero-title-leading: 1.12; }
  .project-feature--home:lang(zh-TW) { --home-hero-tagline-size: 40px; }
  .home-brand-hero { height: min(740px, calc(100svh - 104px)); min-height: 460px; }
  .home-brand-hero__content { padding: 104px 24px 74px; }
  .home-brand-hero__name { margin-bottom: 24px; }
  .home-brand-hero__subtitle { margin-top: 22px; }
  .home-brand-hero__cta { margin-top: 24px; }
  .home-hero-controls { left: 50%; right: auto; bottom: 8px; transform: translateX(-50%); gap: 0; padding: 0 4px; }
  .home-hero-counter { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .home-hero-carousel .project-feature--home { height: auto; min-height: max(460px, min(740px, calc(100svh - 104px))); max-height: none; }
  .home-hero-carousel .project-feature--home .project-feature__inner { height: auto; min-height: inherit; grid-template-rows: minmax(min-content, 1fr); padding-bottom: 74px; }
  .home-hero-carousel .project-feature--home .project-feature__inner:has(.project-launch-banner:not([hidden])) { grid-template-rows: auto minmax(min-content, 1fr); }
}
@media (max-width: 767px) and (max-height: 700px) {
  .home-hero-carousel .project-feature--home .project-feature__inner { padding-bottom: 60px; }
  .home-hero-carousel .project-feature--home .project-feature__inner:has(.project-launch-banner:not([hidden])) { gap: 8px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  :is(.home-brand-hero, .project-feature--home) { --home-hero-title-size: 64px; }
}
@media (max-width: 374px), (max-width: 767px) and (max-height: 650px) {
  :is(.home-brand-hero, .project-feature--home) { --home-hero-title-size: 34px; --home-hero-label-size: 16px; --home-hero-copy-size: 15px; }
  :is(.home-brand-hero, .project-feature--home):lang(zh-TW) { --home-hero-title-size: 64px; }
  .project-feature--home:lang(zh-TW) { --home-hero-tagline-size: 32px; }
  .home-brand-hero__content { padding: 96px 18px 64px; }
  .home-brand-hero__name { margin-bottom: 18px; }
  .home-brand-hero__subtitle { margin-top: 16px; }
  .home-brand-hero__cta { margin-top: 18px; }
  .home-brand-hero:lang(zh-TW) .home-brand-hero__name { margin-bottom: 14px; }
  .home-brand-hero:lang(zh-TW) .home-brand-hero__subtitle { margin-top: 12px; }
  .home-brand-hero:lang(zh-TW) .home-brand-hero__cta { margin-top: 14px; }
}
