:root {
    --black: #111214;
    --ink: #1f2227;
    --soft-black: #22262c;
    --red: #e20512;
    --red-dark: rgb(109, 12, 25);
    --paper: #f5f5f4;
    --white: #ffffff;
    --muted: #74777d;
    --line: #dedee0;
    --shadow: 0 16px 38px rgba(10, 12, 16, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
button, a { font: inherit; }
a { color: inherit; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 5px; }
.hero {
    min-height: 195px;
    padding: 32px clamp(24px, 5vw, 56px);
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    color: var(--white);
    background: var(--black);
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -125px;
    width: 340px;
    height: 340px;
    background: var(--red);
    border-radius: 50%;
    opacity: .9;
}
.hero > * { position: relative; z-index: 1; }
.brand-lockup { display: flex; gap: 20px; align-items: center; }
.brand-mark {
    width: 66px;
    height: 76px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.07em;
    background: var(--red);
    clip-path: polygon(50% 0, 96% 16%, 87% 78%, 50% 100%, 13% 78%, 4% 16%);
}
.brand-mark img { max-width: 82%; max-height: 72%; object-fit: contain; }
.eyebrow { margin: 0 0 4px; color: var(--red); font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; }
.hero .eyebrow { color: #ff798c; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 3px; font-size: clamp(1.72rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -.045em; }
.intro { margin: 0; color: #d5d6d8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.photo-count { color: #d5d6d8; white-space: nowrap; }
.photo-count strong { color: var(--white); font-size: 1.15rem; }
.button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
}
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover, .button-primary:focus-visible { background: var(--red-dark); }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quick-nav { display: flex; gap: 10px; overflow-x: auto; padding: 28px 1px 4px; }
.quick-nav a {
    flex: 1 0 154px;
    min-height: 66px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
    font-weight: 720;
}
.quick-nav a:hover, .quick-nav a:focus-visible { border-color: var(--red); }
.quick-nav b { min-width: 28px; padding: 3px 8px; color: var(--red); background: #fff0f2; border-radius: 999px; text-align: center; font-size: .85rem; }
.gallery-section { padding-top: 52px; scroll-margin-top: 10px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; }
.section-heading h2 { margin: 0; color: var(--black); font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.04em; }
.section-heading > p { max-width: 280px; margin: 0; color: var(--muted); text-align: right; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-card { overflow: hidden; border-radius: 14px; background: var(--white); box-shadow: 0 2px 0 var(--line); }
.image-button { width: 100%; padding: 0; border: 0; display: block; position: relative; color: var(--white); background: var(--soft-black); cursor: zoom-in; overflow: hidden; aspect-ratio: 3 / 4; }
.team-grid .image-button { aspect-ratio: 16 / 10; }
.image-button img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.image-button:hover img, .image-button:focus-visible img { transform: scale(1.035); }
.view-overlay { position: absolute; inset: auto 9px 9px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: rgba(15, 16, 18, .72); opacity: 0; transform: translateY(6px); transition: .2s ease; font-size: .82rem; font-weight: 700; }
.view-overlay svg { width: 16px; height: 16px; }
.image-button:hover .view-overlay, .image-button:focus-visible .view-overlay { opacity: 1; transform: translateY(0); }
.photo-card footer { min-height: 52px; padding: 10px 11px 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.photo-card footer p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .89rem; font-weight: 680; }
.photo-card footer a { width: 33px; height: 33px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--red); }
.photo-card footer a:hover, .photo-card footer a:focus-visible { color: var(--white); background: var(--red); }
.category-empty { padding: 19px; border: 1px dashed #bbbfc5; border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.55); }
.empty-state { margin-top: 36px; padding: 42px 22px; border: 1px dashed #b6b9bf; border-radius: 18px; text-align: center; color: var(--muted); }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--white); background: var(--red); font-size: 1.8rem; line-height: 1; }
.empty-state h2 { margin-bottom: 6px; color: var(--ink); font-size: 1.2rem; }
.empty-state p { margin: 0; }
code { padding: 2px 5px; border-radius: 4px; color: var(--ink); background: #e5e6e8; }
.page-footer { margin-top: 62px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.preview-dialog { width: min(1080px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: hidden; border: 0; border-radius: 16px; color: var(--white); background: var(--black); box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.preview-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(3px); }
.preview-dialog img { width: 100%; max-height: calc(100dvh - 118px); display: block; object-fit: contain; background: #050506; }
.preview-bar { min-height: 67px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-bar p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.dialog-close { position: fixed; top: 20px; right: 22px; width: 43px; height: 43px; border: 0; border-radius: 50%; color: var(--white); background: rgba(0,0,0,.72); font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; }
.dialog-close:hover, .dialog-close:focus-visible { background: var(--red); }
@media (max-width: 760px) {
    .page-shell { width: min(100% - 20px, 1180px); padding-top: 10px; }
    .hero { min-height: 0; padding: 25px 20px; align-items: flex-start; flex-direction: column; border-radius: 17px; }
    .hero::after { right: -130px; bottom: -180px; width: 300px; height: 300px; }
    .brand-mark { width: 53px; height: 62px; }
    .hero-actions { justify-content: flex-start; }
    .quick-nav { padding-top: 18px; }
    .gallery-section { padding-top: 37px; }
    .section-heading { align-items: start; flex-direction: column; gap: 4px; margin-bottom: 13px; }
    .section-heading > p { text-align: left; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .team-grid { grid-template-columns: 1fr; }
    .photo-card footer { min-height: 48px; padding: 8px 7px 8px 10px; }
    .view-overlay { display: none; }
    .page-footer { margin-top: 42px; }
}
@media (max-width: 390px) {
    .brand-lockup { gap: 14px; }
    h1 { font-size: 1.55rem; }
    .button { width: 100%; }
}
