@font-face {
  font-family: "Noto Sans HK";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("case-glyphs.woff2") format("woff2");
  unicode-range: U+4E86,U+4EA6,U+4FEF,U+5009,U+5468,U+5708,U+57D4,U+5858,U+5BDF,U+5E38,U+5E7E,U+60F3,U+65BD,U+65C1,U+6C34,U+77E5,U+7A4D,U+822A,U+8A0E,U+8AD6,U+9053,U+92EA,U+9632,U+982D;
}
#case-main {
  --case-space: clamp(64px, 6.3vw, 96px);
  color: var(--inner-ink);
}
#case-main :where(h1, h2, h3, p, dl, dd, figure):not(:where([data-case-form] *)) { margin: 0; }
#case-main :where(h1, h2, h3) { line-height: 1.25; text-wrap: balance; }
#case-main h1 { font-size: clamp(2.7rem, 5.05vw, 4.8rem); font-weight: 700; line-height: 1.2; }
#case-main h2 { font-size: clamp(1.9rem, 3.25vw, 3rem); font-weight: 700; }
#case-main h3 { font-size: clamp(1.13rem, 1.8vw, 1.55rem); font-weight: 600; }
html:lang(en) #case-main :where(h1, h2) { letter-spacing: -.025em; }
#case-main [hidden] { display: none; }
.case-hero { background: var(--inner-deep); color: #fff; }
.case-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  max-width: 1600px;
  margin-inline: auto;
}
.case-intro {
  align-self: center;
  padding: clamp(32px, 3.4vw, 56px) clamp(32px, 3.8vw, 62px) clamp(38px, 4.6vw, 72px) max(var(--inner-edge), calc((100vw - 1280px) / 2));
}
@media (min-width: 1600px) { .case-intro { padding-left: 160px; } }
.case-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  color: var(--inner-muted); font-size: .875rem; line-height: 1.5;
}
.case-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.case-crumbs svg { width: 14px; height: 14px; }
.case-intro .case-crumbs { color: #d2e0e9; margin-bottom: clamp(12px, 1.6vw, 24px); }
.case-intro h1 span { display: block; }
#case-main .case-intro p { margin-top: 20px; max-width: 43ch; color: #f3f7f9; }
.case-action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 11px 18px;
  border-radius: 4px; background: var(--inner-amber); color: var(--inner-deep);
  font-size: 1rem; line-height: 1.4; font-weight: 700; text-decoration: none;
}
.case-action:hover { background: #ffc282; }
.case-intro .case-action { margin-top: 26px; }
#case-main .case-hero a:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.case-icon { display: inline-block; width: 1.17em; height: 1.17em; flex: none; vertical-align: middle; }
.case-featured {
  position: relative; display: block; overflow: hidden; min-height: 370px;
  background: #405a67; color: white; isolation: isolate;
}
.case-featured:focus-visible { outline-offset: -6px !important; }
.case-featured > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.case-featured::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%; z-index: 0;
  background: linear-gradient(transparent, rgba(12, 31, 44, .84));
}
.case-featured-caption {
  position: absolute; z-index: 1; inset: auto clamp(20px, 2.15vw, 34px) 22px;
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  color: white; font-size: .9375rem; font-weight: 600; line-height: 1.4;
}
.case-featured-caption > span:first-child { display: flex; align-items: center; gap: 6px; }
.case-featured-caption .case-go {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border: 1px solid #fbfcfd; border-radius: 50%;
}
.case-featured:hover .case-go { background: white; color: var(--inner-brand); }
.case-index { padding-block: clamp(48px, 4.4vw, 72px) var(--case-space); }
.case-index-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.case-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.case-filters button {
  border: 1px solid var(--inner-rule); border-radius: 24px; min-height: 44px; padding: 7px 16px;
  background: transparent; color: var(--inner-brand); font-size: .9375rem; font-weight: 600;
}
.case-filters button:hover { border-color: var(--inner-brand); }
.case-filters button[aria-pressed=true] { color: #fff; background: var(--inner-brand); border-color: var(--inner-brand); }
#case-main .case-count { margin: 12px 0 18px; font-size: .9375rem; color: var(--inner-muted); }
.case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 20px; }
.case-card {
  display: flex; flex-direction: column; height: 100%; background: white; color: var(--inner-brand);
  border: 1px solid var(--inner-rule); border-radius: 6px; overflow: hidden; text-decoration: none;
}
.case-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.case-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 24px 20px; }
.case-card-place, .case-small { font-size: .875rem; color: var(--inner-muted); line-height: 1.5; }
.case-card-place { display: inline-flex; align-items: center; gap: 5px; }
#case-main .case-card h3 { margin: 7px 0 18px; }
.case-card-bottom {
  border-top: 1px solid #d8dddc; padding-top: 13px; display: flex; align-items: center; gap: 9px;
  margin-top: auto; font-size: 1rem; line-height: 1.5; color: var(--inner-ink); font-weight: 600; font-variant-numeric: tabular-nums;
}
.case-card-bottom span { white-space: nowrap; }
.case-card-bottom > .case-icon { margin-left: auto; color: var(--inner-brand); }
.case-divider { background: var(--inner-rule); height: 15px; width: 1px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .case-card { transition: transform 220ms ease, box-shadow 220ms ease; }
  .case-card:is(:hover,:focus-visible) { transform: translateY(-5px); box-shadow: 0 9px 18px rgb(25 52 74 / 11%); }
}
.case-enquire {
  --case-motion-state: paused;
  position: relative;
  isolation: isolate;
  padding-block: var(--case-space);
  color: var(--inner-brand);
  background: #f2f4f4;
  border-top: 1px solid #dbe1e3;
}
.case-enquire::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, #355c701f 1px, transparent 1px),
    linear-gradient(#355c701f 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 19% 77%, #000 5%, transparent 66%);
}
.case-enquire::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 7%; bottom: 4%; width: 50%; height: 70%;
  background: radial-gradient(ellipse at center, #fff9ee9c, transparent 68%);
}
.case-enquire-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
#case-main .case-enquire-layout > :first-child > p {
  margin-top: 14px; max-width: 52ch; color: var(--inner-muted);
}
.case-solar-visual {
  position: relative; margin-top: clamp(24px, 3vw, 46px);
}
.case-solar-model {
  position: relative; width: 100%; aspect-ratio: 2.12; pointer-events: none;
}
/* The roof and its two module banks share one axonometric projection. */
.case-solar-roof {
  position: absolute; left: 1.5%; top: 47%; width: 80%; height: 82%;
  transform: matrix(.88, -.26, .68, .52, 0, 0); transform-origin: 0 0;
  border: 1px solid #91b4bf;
  background: linear-gradient(138deg, #54798b, #304e60 62%, #77909a);
  box-shadow: -9px 18px 24px #19374730;
}
.case-solar-roof::before, .case-solar-roof::after {
  content: ""; position: absolute;
}
.case-solar-roof::before {
  top: 0; right: 100%; width: 7px; height: 100%;
  background: #2e4757; border-left: 1px solid #7592a0;
  transform: skewY(-52deg); transform-origin: right top;
}
.case-solar-roof::after {
  top: 100%; left: 0; width: 100%; height: 9px;
  background: linear-gradient(90deg, #3c6072, #74919c 72%, #a1a79b);
  border-bottom: 1px solid #91a7ac;
  transform: skewX(-38deg); transform-origin: left top;
}
.case-solar-deck {
  position: absolute; inset: 6% 3.5%; display: flex; gap: 3%; isolation: isolate;
  overflow: hidden; background: linear-gradient(0deg, #647d82, #283e4a);
}
.case-panel-bank {
  flex: 1; min-width: 0; display: grid; grid-template: repeat(2, 1fr) / repeat(4, 1fr);
  gap: 2px; padding: 1px; background: #16364b;
}
.case-panel-bank i {
  border: 1px solid #94bcc8; border-radius: 1px;
  background:
    linear-gradient(0deg, transparent 49%, #b4c8c799 49% 50.5%, transparent 50.5%),
    linear-gradient(90deg, #b5d3dd56 1px, transparent 1px) 0 0 / 16.667% 100%,
    linear-gradient(#a1c2cf4d 1px, transparent 1px) 0 0 / 100% 10%,
    linear-gradient(118deg, #1d3d55, #39677e 62%, #315469);
}
.case-solar-reflection {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 12%, #ffa35a16 31%, #ffbf7775 43%,
    #ffe5b3c2 48%, #e4f3ed54 52%, transparent 65%);
  transform: translateX(20%);
}
@keyframes case-sunlight {
  0% { transform: translateX(-52%); opacity: 0; }
  6%, 84% { opacity: 1; }
  90%, 100% { transform: translateX(54%); opacity: 0; }
}
@keyframes case-reflected-light {
  0% { transform: translateX(-12%); opacity: 0; }
  45% { opacity: 1; }
  90%, 100% { transform: translateX(18%); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .case-solar-reflection { animation: case-sunlight 3.2s linear -.6s infinite var(--case-motion-state); }
  .case-enquire::after { animation: case-reflected-light 3.2s ease-in-out -.6s infinite var(--case-motion-state); }
  #case-main:not([data-page-hidden]) .case-enquire:has(.case-solar-visual[data-in-view]):not(:has([data-case-form]:focus-within)) {
    --case-motion-state: running;
  }
}
@media (forced-colors: active) {
  .case-solar-visual, .case-enquire::before, .case-enquire::after { display: none; }
}
.case-enquire [data-case-form] { min-width: 0; }
.case-enquire .ae-sheet {
  --inner-muted: #deeaf1;
  --inner-rule: #7192aa;
  color: #fff;
  background: #245880;
  border-color: #245880;
}
.case-enquire .ae-field label, .case-enquire .ae-summary h3 { color: inherit; }
.case-enquire .ae-field [aria-invalid="true"] {
  border-color: #9a381d;
  box-shadow: inset 0 0 0 1px #9a381d;
  background-color: #fff6f2;
}
.case-enquire .ae-error { color: #ffdec8; }
.case-enquire .ae-sheet :focus-visible { outline: 2px solid #ffcf95; outline-offset: 3px; }
.case-enquire .ae-edit { color: #fff; background: transparent; border-color: #acc8da; }
.case-enquire .ae-edit:hover { color: var(--inner-brand); background: #fff; }
.case-enquire .ae-form { gap: 16px; }
.case-enquire .ae-key:first-child, .case-enquire .ae-local-note { margin: 0; }
.case-enquire .ae-local-note { color: var(--inner-muted); font-size: .875rem; line-height: 1.5; }
.case-detail-hero { padding: 18px 0 28px; }
.case-detail-hero h1 { color: var(--inner-brand); margin-block: 16px 18px !important; }
.case-section-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.case-section-links a, .case-all {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .9375rem; font-weight: 600;
}
.case-section-links a svg { width: 14px; }
.case-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.case-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.case-photo figcaption { margin-top: 10px; max-width: 80ch; }
.case-data { border-radius: 4px; padding: clamp(24px, 2.7vw, 42px); background: var(--inner-deep); color: #fff; }
#case-main .case-data h2 { font-size: clamp(1.5rem,2.1vw,2rem); }
#case-main .case-data dl { margin-top: 18px; }
.case-data dl > div { padding-block: 12px; border-top: 1px solid #557083; }
.case-data dt { color: #cfdee8; font-size: .9375rem; }
.case-data dd { font-weight: 600; font-size: 1.13rem; }
.case-data .case-quantity { font-size: clamp(1.65rem, 2.6vw, 2.5rem); line-height: 1.3; font-variant-numeric: tabular-nums; }
.case-detail-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,90px); padding-block: var(--case-space); }
#case-main .case-detail-notes h2 { font-size: clamp(1.55rem, 2.4vw, 2.25rem); margin-bottom: 12px; }
.case-detail-notes p { max-width: 62ch; }
.case-detail-notes a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-weight: 600; }
.case-related { padding-block: var(--case-space); }
.case-related-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
@media (max-width: 1000px) and (min-width: 761px) {
  .case-intro { padding-right: 24px; }
  #case-main .case-intro h1 { font-size: clamp(2.45rem,4.8vw,3rem); }
}
@media (max-width: 900px) {
  .case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-card-body { padding: 16px 20px; }
  .case-enquire-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #case-main .case-enquire-layout > :first-child > p { max-width: 64ch; }
  .case-enquire-intro { position: relative; padding-right: 42%; min-height: 130px; }
  .case-solar-visual { position: absolute; right: 0; top: 0; width: 38%; margin: 0; }
}
@media (max-width: 760px) {
  #case-main h1 { font-size: clamp(1.88rem,7.4vw,2.55rem); }
  .case-hero-layout { grid-template-columns: 1fr; }
  .case-intro { padding: 14px var(--inner-edge) 28px; }
  .case-intro .case-crumbs { margin-bottom: 8px; }
  .case-intro h1 span { display: inline; }
  #case-main .case-intro p { margin-top: 12px; }
  .case-intro .case-action { margin-top: 18px; }
  .case-featured { aspect-ratio: 2.2; min-height: 0; }
  .case-featured-caption { inset: auto var(--inner-edge) 14px; }
  .case-overview, .case-detail-notes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #case-main { --case-space: 48px; }
  .case-index { padding-top: 36px; }
  .case-index-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
  .case-card-body { padding: 16px; }
  .case-filters button { padding-inline: 13px; }
  .case-detail-hero { padding-top: 10px; }
  .case-section-links { gap: 0 12px; }
  .case-detail-notes { gap: 28px; }
  .case-enquire-intro { min-height: 0; padding-right: 0; }
  .case-solar-visual { position: relative; width: 100%; height: 78px; margin-top: 8px; }
  .case-solar-model { position: absolute; width: min(68%, 208px); right: 0; top: 50%; transform: translateY(-50%) scaleY(.83); }
  .case-enquire::after { left: 8%; bottom: auto; top: 4%; width: 78%; height: 36%; }
}
