@import url("https://fonts.bunny.net/css?family=hind:500,600|roboto:400,600");

:root {
    --teal: #00789a;
    --teal-bar: rgba(0, 120, 154, 0.93);
    --teal-section: rgba(0, 120, 154, 0.69);
    --nav: #80819d;
    --ink: #3a3a3a;
    --panel: rgba(230, 230, 230, 0.78);
    --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: #d7e7ea url("../brand/watercolor.jpg") left top / cover no-repeat fixed;
    font-family: "Roboto", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

a { color: var(--teal); }

img { max-width: 100%; height: auto; }

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--teal);
    color: #fff;
    padding: 0.35rem 0.7rem;
}

.skip:focus { top: 0.5rem; }

.site-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.2rem 0 0.4rem;
}

.logo img {
    display: block;
    width: 112px;
    height: auto;
}

@media (min-width: 761px) {
    /* Sit the mark with the nav row, under the lang chips. */
    .logo { padding-top: 22px; }
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.5rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--teal);
    cursor: pointer;
}

.nav-toggle svg { display: block; }

.header-actions {
    display: flex;
    align-items: center;
    flex: none;
    flex-wrap: nowrap;
    gap: 8px;
}

/* B · column stack: lang chips on their own row, nav underneath. */
.header-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
    margin-left: auto;
    min-width: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem 2.2rem;
}

.site-nav a {
    color: var(--nav);
    font-family: "Hind", "Noto Sans HK", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
}

.site-nav a[aria-current="page"] { color: var(--teal); }

.site-banner {
    width: min(var(--max), calc(100% - 2rem));
    margin: 19px auto 0;
    padding: 30px 0;
    background: var(--teal-bar);
    color: #fff;
    text-align: center;
}

.site-banner h1,
.site-banner p {
    margin: 0;
    color: inherit;
    font-family: "Roboto", "Noto Sans HK", sans-serif;
    font-size: 29px;
    font-weight: 600;
    line-height: 1;
}

@media (min-width: 1200px) {
    .site-header { padding: 40px 0; }

    .logo img { width: 143px; }

    .site-banner { margin-top: 13px; }

    .site-banner h1,
    .site-banner p { font-size: 48px; }
}

.panel,
.works-wrap {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
}

.panel {
    margin-top: 0;
    padding: 1.3rem 1.4rem 1.6rem;
    background: var(--panel);
}

.panel p { margin: 0 0 1rem; }

.panel h1 {
    margin: 0 0 0.8rem;
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.35;
}

.section-bar {
    width: min(var(--max), calc(100% - 2rem));
    margin: 1.4rem auto 0;
    padding: 10px 12px;
    background: var(--teal-section);
    color: #fff;
    text-align: left;
    font-family: "Roboto", "Noto Sans HK", sans-serif;
    font-size: 29px;
    font-weight: 600;
    line-height: 1.3;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 0 2.5rem;
}

.work-card {
    position: relative;
    background: #fff;
}

.work-open {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work-shot {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #e4eef0;
}

.work-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 0.8rem 4.2rem;
    background: rgba(17, 17, 17, 0.55);
    color: #fff;
    text-align: center;
    opacity: 0;
}

.work-overlay-title {
    font-weight: 600;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    line-height: 1.3;
}

.work-overlay-summary {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.work-caption {
    display: block;
    padding: 0.45rem 0.55rem 0.6rem;
    font-weight: 600;
}

.work-more {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 0;
    margin-top: calc(100% * 10 / 16 - 3.3rem);
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    background: #6ec1e4;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.work-more:hover,
.work-more:focus-visible { color: #fff; }

.work-more:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #083744;
}

.work-overlay,
.work-more { transition: opacity 160ms ease; }

.work-more {
    opacity: 0;
    pointer-events: none;
}

.work-card:hover .work-overlay,
.work-card:focus-within .work-overlay,
.work-card:hover .work-more,
.work-card:focus-within .work-more {
    opacity: 1;
    pointer-events: auto;
}

.page-name {
    margin: 0 0 0.35rem;
    color: var(--teal);
    font-family: "Hind", "Noto Sans HK", sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
}

.tiers {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.tiers li { margin: 0.35rem 0; }

.cta { font-weight: 600; }

.disclaimer {
    color: #555;
    font-size: 0.95rem;
}

.seller { font-weight: 600; }

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0 0 0.8rem;
    font-weight: 600;
}

.field input {
    font: inherit;
    padding: 0.65rem 0.7rem;
    border: 1px solid #b9b9b9;
    background: #fff;
    width: 100%;
}

button[type="submit"] {
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--teal);
    border: 0;
    padding: 0.7rem 1.1rem;
    cursor: pointer;
}

.shot {
    display: block;
    margin: 0.6rem 0 1rem;
    background: #fff;
}

.case-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
    list-style: none;
    margin: 0.2rem 0 1rem;
    padding: 0;
}

.case-gallery li {
    margin: 0;
    min-width: 0;
    background: #e4eef0;
}

.gallery-open {
    display: block;
    cursor: zoom-in;
}

.gallery-open:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.gallery-open .shot {
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
    background: #e4eef0;
}

.form-error { color: #9d2b2b; font-weight: 600; }

.form-ok { font-weight: 600; }

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.site-footer {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.2rem 0 2rem;
    text-align: center;
    color: #3a3a3a;
}

.site-footer p { margin: 0.2rem 0; }

.lang-switch {
    display: flex;
    align-items: center;
    flex: none;
    gap: 6px;
    margin: 0;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    padding: 0 10px;
    border-radius: 3px;
    background: var(--teal);
    color: #fff;
    font-family: "Hind", "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    text-decoration: none;
}

.lang-switch a[aria-current="true"] {
    color: #fff;
    font-weight: 600;
}

.lang-switch a:hover,
.lang-switch a:focus-visible { color: #fff; }

.lang-switch a:hover { filter: brightness(1.06); }

.lang-switch a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #083744;
}

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
        width: 2.5rem;
        height: 2.1rem;
    }

    .header-tools {
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
    }

    .site-header { align-items: flex-start; }

    .lang-switch a {
        min-width: 32px;
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 7.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin: 0;
        padding: 0.8rem 1.2rem 1rem;
        background: rgba(255, 255, 255, 0.94);
    }

    .site-nav.is-open { display: flex; }

    .works-grid { grid-template-columns: 1fr; }

    .section-bar { font-size: 24px; }
}

.lightbox[hidden] { display: none !important; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
}

.lightbox-top,
.lightbox-prev,
.lightbox-next,
.lightbox-stage,
.lightbox-caption,
.lightbox-progress { position: relative; z-index: 1; }

.lightbox-top {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.7rem 0.2rem;
}

.lightbox-count {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lightbox-tools { display: flex; align-items: center; }

.lightbox-tools button,
.lightbox-prev,
.lightbox-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.lightbox-tools button:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.12); }

.lightbox-tools button:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lightbox-tools button[disabled],
.lightbox-prev[disabled],
.lightbox-next[disabled] {
    opacity: 0.35;
    cursor: default;
}

.lightbox-prev { grid-column: 1; grid-row: 2; align-self: center; }

.lightbox-next { grid-column: 3; grid-row: 2; align-self: center; }

.lightbox-stage {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

.lightbox-stage.is-zoomed { cursor: zoom-out; }

.lightbox-stage.is-zoomed .lightbox-img {
    max-width: none;
    max-height: none;
    width: 180%;
    cursor: zoom-out;
}

.lightbox-caption {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    padding: 0.35rem 1rem 0.45rem;
    text-align: center;
    font-size: 0.95rem;
}

.lightbox-progress {
    grid-column: 1 / -1;
    grid-row: 4;
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

html.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .work-overlay,
    .work-more { transition: none; }
}
