.hkd-main.hkd-case-wall {
    --wall-bg: #faf7f3;
    --wall-line: #e8ded5;
    --wall-ink: var(--hkd-deep, #1d1d1f);
    --wall-muted: #5f5652;
    --wall-accent: #a94c08;
    margin-block-start: 0;
    color: var(--wall-ink);
    background: var(--wall-bg);
}

.hkd-case-wall .hkd-wall-wrap { width: min(1500px, calc(100% - 2 * clamp(16px, 4.3vw, 76px))); margin-inline: auto; }
.hkd-case-wall .hkd-wall-intro { padding-block: clamp(23px, 2.1vw, 34px) clamp(23px, 2.1vw, 34px); text-align: center; }
.hkd-case-wall .hkd-wall-eyebrow { display: flex; gap: clamp(12px, 1.6vw, 22px); justify-content: center; align-items: center; color: var(--wall-accent); font-size: .91rem; font-weight: 730; letter-spacing: .1em; margin: 0 0 12px; }
.hkd-wall-eyebrow::before, .hkd-wall-eyebrow::after { content: ''; width: clamp(23px, 4vw, 53px); height: 1px; background: var(--hkd-orange, #e78324); }
.hkd-case-wall h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); letter-spacing: -.04em; }
.hkd-case-wall .hkd-wall-promise { margin: 10px 0 0; line-height: 1.5; font-weight: 700; font-size: clamp(1.18rem, 2vw, 1.65rem); }
.hkd-case-wall .hkd-wall-lead { margin: 6px 0 0; color: var(--wall-muted); font-size: clamp(.93rem, 1.25vw, 1.08rem); }
.hkd-case-wall .hkd-wall-records { margin-block-start: 0; }
.hkd-wall-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.hkd-wall-heading h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.16rem, 2vw, 1.65rem); }
.hkd-wall-heading h2::before { content: ''; width: 4px; height: 1em; border-radius: 3px; background: #c76112; }
.hkd-wall-updating { display: inline-flex; align-items: center; gap: 8px; color: var(--wall-muted); font-size: .875rem; white-space: nowrap; }
.hkd-wall-updating::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c76112; }

.hkd-case-wall .hkd-wall-grid {
    position: relative;
    aspect-ratio: 100 / var(--wall-depth4);
    padding: 0;
    margin: 0;
    list-style: none;
}
.hkd-case-wall .hkd-wall-grid + .hkd-wall-grid { margin-block-start: clamp(10px, 1.05vw, 18px); }
.hkd-wall-tile {
    position: absolute;
    left: var(--case-x4);
    top: var(--case-y4);
    width: var(--case-w4);
    height: var(--case-h4);
}
@media (max-width: 1180px) {
    .hkd-case-wall .hkd-wall-grid { aspect-ratio: 100 / var(--wall-depth3); }
    .hkd-wall-tile { left: var(--case-x3); top: var(--case-y3); width: var(--case-w3); height: var(--case-h3); }
}
@media (max-width: 900px) {
    .hkd-case-wall .hkd-wall-grid { aspect-ratio: 100 / var(--wall-depth2); }
    .hkd-wall-tile { left: var(--case-x2); top: var(--case-y2); width: var(--case-w2); height: var(--case-h2); }
}
.hkd-case-wall .hkd-wall-photo {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--wall-line);
    border-radius: 11px;
    background: #eeebe6;
    box-shadow: 0 1px 4px #3520110d;
    text-decoration: none;
    transition: border-color 100ms ease, box-shadow 100ms ease;
    cursor: zoom-in;
}
.hkd-wall-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.hkd-wall-unavailable {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--wall-muted);
    font-size: .88rem;
    text-align: center;
}
.hkd-wall-unavailable[hidden], .hkd-wall-tile[hidden] { display: none; }
.hkd-wall-photo[data-unavailable] :is(img, .hkd-wall-zoom, .hkd-wall-long-label) { visibility: hidden; }
.hkd-wall-zoom, .hkd-wall-long-label { position: absolute; right: 9px; bottom: 9px; background: #fffaf5; border: 1px solid #eddfd2; color: var(--wall-accent); }
.hkd-wall-zoom { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; opacity: .94; }
.hkd-wall-zoom svg { width: 17px; height: 17px; }
.hkd-wall-long-label { left: 9px; right: auto; border-radius: 999px; font-size: .79rem; padding: 4px 9px; font-weight: 650; }
.hkd-case-wall .hkd-wall-photo:focus-visible { outline: 2px solid var(--wall-accent); outline-offset: 3px; border-color: var(--hkd-orange); }
@media (hover: hover) {
    .hkd-wall-zoom { opacity: 0; transition: opacity 100ms ease; }
    .hkd-wall-photo:is(:hover,:focus-visible) .hkd-wall-zoom { opacity: 1; }
    .hkd-case-wall .hkd-wall-photo:hover { border-color: var(--hkd-orange); box-shadow: 0 2px 8px #3520111c; }
}
.hkd-wall-photo:active { border-color: var(--wall-accent); }

.hkd-wall-load { margin-top: clamp(20px, 2.2vw, 34px); text-align: center; overflow-anchor: none; }
.hkd-case-wall .hkd-wall-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 6px 26px;
    border: 1px solid #d17129;
    border-radius: 999px;
    color: var(--wall-accent);
    background: #fffaf6;
    font-weight: 650;
    text-decoration: none;
}
.hkd-case-wall .hkd-wall-more[hidden] { display: none; }
.hkd-case-wall .hkd-wall-more:hover { background: #faecdf; }
.hkd-wall-more[aria-busy="true"] { cursor: progress; }
.hkd-wall-status { color: var(--wall-accent); font-size: .86rem; margin: 7px 0 0; }
.hkd-wall-status:empty { display: none; }
.hkd-wall-empty { margin: 0; padding: 30px 16px; border: 1px solid var(--wall-line); border-radius: 12px; text-align: center; background: #fffdfa; color: var(--wall-muted); }
.hkd-wall-notice { color: var(--wall-muted); text-align: center; margin: 14px auto clamp(24px, 2.7vw, 42px); font-size: .86rem; line-height: 1.7; }
.hkd-wall-contact {
    padding: clamp(25px, 2.9vw, 42px) 0;
    text-align: center;
    background:
        radial-gradient(ellipse 42% 138px at 3% 125%, #f6dfcc 39%, transparent 100%),
        radial-gradient(ellipse 40% 142px at 96% 122%, #f5e5d7 22%, transparent 100%), #f9f1e9;
}
.hkd-wall-contact h2 { font-size: clamp(1.32rem, 2.4vw, 2rem); }
.hkd-wall-contact p { margin: 9px 0 0; color: var(--wall-muted); }
.hkd-wall-consult { display: inline-grid; position: relative; align-items: center; margin-top: 15px; }
.hkd-wall-consult .hkd-contact-trigger { background: #ac4d08; color: #fff; border-radius: 999px; padding: 10px 41px 10px 22px; font-weight: 650; text-decoration: none; }
.hkd-wall-consult .hkd-contact-trigger:hover { background: #914006; color: #fff; }
.hkd-wall-consult .hkd-icon { color: white; position: absolute; right: 15px; width: 17px; height: 17px; pointer-events: none; }

html { scrollbar-gutter: stable; }
html.hkd-wall-page { overflow-anchor: none; }
html.hkd-wall-viewing { overflow: hidden; scrollbar-gutter: stable; }
.hkd-wall-viewer {
    inset: 0;
    width: 100%; max-width: none;
    height: 100%; max-height: none;
    margin: 0; padding: 0;
    border: 0;
    color: #fff;
    background: #241f1ddd;
}
.hkd-wall-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.hkd-wall-viewer::backdrop { background: transparent; }
.hkd-wall-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px clamp(10px, 3vw, 40px); }
.hkd-wall-count { padding-inline: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hkd-wall-controls { display: flex; align-items: center; gap: 6px; }
.hkd-wall-viewer button {
    min-width: 38px; height: 38px;
    padding: 0 9px;
    border: 1px solid #ffffff38; border-radius: 8px;
    background: #303135; color: white;
    cursor: pointer; font: inherit; font-size: .9rem;
}
.hkd-wall-viewer button:hover { background: #3f4046; }
.hkd-wall-viewer button:disabled { opacity: .44; cursor: default; }
.hkd-wall-viewer button:focus-visible, .hkd-wall-view-error:focus-visible { outline: 2px solid #ffb374; outline-offset: 2px; }
.hkd-wall-viewer button[data-view="close"] { font-size: 1.5rem; }
.hkd-wall-viewer button:is([data-view="prev"],[data-view="next"]) { position: absolute; top: 50%; translate: 0 -50%; height: 45px; font-size: 1.6rem; }
.hkd-wall-viewer button[data-view="prev"] { left: 10px; }
.hkd-wall-viewer button[data-view="next"] { right: 10px; }
.hkd-wall-stage { display: grid; place-items: center; position: relative; overflow: hidden; min-width: 0; touch-action: none; user-select: none; }
.hkd-wall-stage.is-zoomed { cursor: grab; }
.hkd-wall-stage.is-zoomed:active { cursor: grabbing; }
.hkd-wall-stage .hkd-wall-full { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: block; max-width: none; max-height: none; object-fit: contain; pointer-events: none; }
.hkd-wall-full:not([src]) { visibility: hidden; }
.hkd-wall-view-error { grid-area: 1 / 1; z-index: 1; color: #fff; background: #303135; padding: 9px 16px; border-radius: 8px; text-decoration: underline; }
.hkd-wall-viewer-caption { min-height: 17px; text-align: center; padding: 5px 16px max(10px, env(safe-area-inset-bottom)); color: #eee; font-size: .88rem; }

@media (max-width: 680px) {
    .hkd-case-wall .hkd-wall-photo { border-radius: 8px; }
    .hkd-wall-long-label { font-size: .7rem; padding: 2px 6px; }
    .hkd-wall-heading { margin-bottom: 12px; }
    .hkd-wall-updating { font-size: .79rem; }
    .hkd-wall-notice { font-size: .8rem; }
    .hkd-wall-viewer button:is([data-view="prev"],[data-view="next"]) { top: auto; bottom: max(34px, env(safe-area-inset-bottom)); translate: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hkd-wall-photo, .hkd-wall-zoom { transition: none; }
}

.hkd-wall-stage .hkd-wall-full[hidden] { display: none; }
