*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    -webkit-tap-highlight-color: rgba(200, 255, 0, 0.18);
}
body.is-loading { overflow: hidden; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
.site-main img:not(#camera-lab-image),
.lightbox__img,
.media-protected {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.mono-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.mono-label--accent { color: var(--accent-on-dark); }
.type-serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 9999;
    padding: 0.5rem 1rem; background: var(--accent); color: var(--accent-text);
    font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* Bands */
.band { width: 100%; }
.band--dark { background: var(--bg); color: var(--text); }
.band--light {
    background: var(--band-light);
    color: var(--text-inverse);
    --text: var(--text-inverse);
    --muted: var(--muted-inverse);
    --border: var(--border-inverse);
    --surface: var(--band-light-surface);
    --surface-2: var(--band-light-surface);
    --accent-readable: var(--accent-on-light);
}
html[data-theme="light"] .band--light {
    --accent-readable: var(--accent-on-dark);
}
.band--accent { background: var(--accent-muted); color: var(--text); }
.band--grid {
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
}
.band--light.band--grid {
    background-image:
        linear-gradient(var(--grid-line-inverse) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-inverse) 1px, transparent 1px);
}
.band__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
}
.band__inner--bleed {
    max-width: none;
    padding: 0;
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    max-width: 1240px; margin: 0 auto;
    padding: max(0.9rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 0.9rem max(1.25rem, env(safe-area-inset-left));
    display: flex; align-items: center; gap: 0.65rem;
}
.site-logo {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--text); font-family: var(--font-display); font-weight: 700;
    font-size: 1rem; letter-spacing: -0.02em; text-decoration: none;
}
.site-logo:hover { color: var(--text); text-decoration: none; }
.site-logo__mark {
    width: 12px; height: 12px;
    background: var(--accent);
}
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.site-search {
    display: none;
    align-items: center;
}
.site-search--desktop {
    margin-left: 0.5rem;
}
.site-search--desktop input[type="search"] {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    width: min(14rem, 22vw);
    min-width: 9rem;
}
.site-search input[type="search"] {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}
.search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
}
.search-toggle:hover { color: var(--accent); }
.search-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}
.search-toggle__icon {
    width: 1.35rem;
    height: 1.35rem;
    display: none;
}
.search-toggle__icon--open { display: block; }
.search-toggle[aria-expanded="true"] .search-toggle__icon--open { display: none; }
.search-toggle[aria-expanded="true"] .search-toggle__icon--close { display: block; }
.site-search--mobile {
    display: flex;
    padding: 0.5rem 0 1rem;
    margin-left: 0;
}
.site-search--mobile input[type="search"] {
    width: 100%;
}
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    max-width: 36rem;
}
.search-form input[type="search"] {
    flex: 1 1 12rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}
.site-nav { display: none; gap: 1.5rem; }
.site-nav__link {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}
.site-nav__link:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
    text-decoration: none;
}
.nav-toggle {
    border: 1px solid var(--border); background: transparent;
    color: var(--text); padding: 0; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.85rem;
    min-width: 44px; min-height: 44px;
    width: 44px; height: 44px;
    flex-shrink: 0;
    margin-left: auto;
    display: flex; flex-direction: column; gap: 5px;
    align-items: center; justify-content: center;
}
.nav-toggle:focus-visible,
.btn:focus-visible, .photo-card__frame:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-nav {
    display: flex; flex-direction: column; gap: 0.35rem;
    padding: 0.75rem max(1.25rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 0;
    border: 0;
    padding: 0;
    background: rgba(12, 12, 12, 0.55);
    cursor: pointer;
}
.mobile-nav-scrim[hidden] { display: none; }
@media (max-width: 767px) {
    body.nav-open .site-header {
        z-index: 102;
    }
    body.nav-open .site-header__inner {
        position: relative;
        z-index: 2;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border);
    }
    .mobile-nav:not([hidden]) {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index: 1;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: calc(max(0.9rem, env(safe-area-inset-top)) + 3.5rem);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }
}
.mobile-nav .site-nav__link {
    padding: 0.65rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}
@media (min-width: 768px) {
    .site-nav { display: flex; margin-left: auto; }
    .search-toggle { display: inline-flex; }
    .site-header--search-open .site-search--desktop {
        display: flex;
    }
    .nav-toggle { display: none; }
    .mobile-nav { display: none !important; }
    .theme-toggle { margin-left: 0; }
}

.site-main { padding: 0; }

/* Footer */
.site-footer {
    background: var(--band-light);
    color: var(--text-inverse);
    border-top: 3px solid var(--accent);
    padding: 2.5rem max(1.25rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
html[data-theme="light"] .site-footer {
    background: #0c0c0c;
    color: #f0f0f0;
}
.site-footer__inner {
    max-width: 1240px; margin: 0 auto;
    display: grid; gap: 1.25rem;
}
@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1.4fr 1fr 1fr;
        align-items: start;
    }
}
.site-footer__tagline {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.25;
}
html[data-theme="light"] .site-footer__tagline { color: #f0f0f0; }
.site-footer__nav { display: grid; gap: 0; }
.site-footer__links {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
    align-items: center;
}
html[data-theme="light"] .site-footer__links { color: #b0b0b0; }
html[data-theme="light"] .site-footer__links a { color: var(--accent); }
.site-footer__links a { color: var(--text-inverse); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent); text-decoration: none; }
.site-footer__copy {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--muted-inverse);
}
html[data-theme="light"] .site-footer__copy { color: #9a9a9a; }
.site-footer__meta {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-inverse);
}
html[data-theme="light"] .site-footer__meta { color: #9a9a9a; }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }
.hero--split {
    display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 900px) {
    .hero--split { grid-template-columns: 1fr 1fr; gap: 3rem; min-height: 70vh; }
}
.hero__eyebrow { margin: 0 0 1rem; }
.hero__title {
    font-size: clamp(4rem, 14vw, 9rem);
    margin: 0 0 1rem;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}
.hero__subtitle {
    color: var(--muted);
    font-size: 1rem;
    max-width: 28rem;
    margin: 0 0 1.25rem;
    line-height: 1.6;
}
.hero__byline { margin: -0.5rem 0 0.75rem; color: var(--accent); font-size: 0.75rem; }
.hero__dev { margin: 0 0 1.75rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hero__visual {
    position: relative;
    border: 1px solid var(--border);
    background: var(--surface);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.hero__carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--hero-fade-duration, 1.2s) cubic-bezier(0.45, 0.05, 0.15, 1);
    will-change: opacity;
}
.hero__slide.is-active {
    opacity: 1;
    z-index: 2;
}
.hero__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}
.hero__slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter:
        brightness(var(--cam-brightness, 1))
        contrast(var(--cam-contrast, 1))
        saturate(var(--cam-saturate, 1))
        blur(var(--cam-img-blur, 0px));
    transition: filter 0.32s ease;
}
.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--hero-control-border);
    border-radius: 50%;
    background: var(--hero-control-bg);
    color: var(--hero-control-fg);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        opacity 0.28s ease,
        visibility 0.28s ease;
}
.hero__nav:hover,
.hero__nav:focus-visible {
    border-color: var(--accent-on-dark);
    color: var(--accent-on-dark);
    background: var(--hero-control-bg-hover);
}
.hero__nav--prev { left: 0.65rem; }
.hero__nav--next { right: 0.65rem; }
@media (max-width: 899px) {
    #hero-cam-target.hero--hud-open .hero__nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
.hero__counter {
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
    z-index: 8;
    padding: 0.2rem 0.45rem;
    border-radius: 2px;
    background: var(--hero-control-bg);
    color: var(--hero-control-fg);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}
@media (prefers-reduced-motion: reduce) {
    .hero__slide {
        transition: none;
        will-change: auto;
    }
}
.hero__cam-dof {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: var(--cam-dof-opacity, 0);
    backdrop-filter: blur(var(--cam-dof-blur, 0px));
    -webkit-backdrop-filter: blur(var(--cam-dof-blur, 0px));
    -webkit-mask-image: radial-gradient(
        ellipse 74% 70% at 50% 42%,
        transparent var(--cam-dof-focus, 38%),
        black 100%
    );
    mask-image: radial-gradient(
        ellipse 74% 70% at 50% 42%,
        transparent var(--cam-dof-focus, 38%),
        black 100%
    );
    transition:
        opacity 0.32s ease,
        backdrop-filter 0.32s ease,
        -webkit-backdrop-filter 0.32s ease;
}
.hero__cam-exposure {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.hero__cam-exposure::before,
.hero__cam-exposure::after {
    content: "";
    position: absolute;
    inset: 0;
    transition: background 0.32s ease;
}
.hero__cam-exposure::before {
    background: rgba(255, 255, 255, var(--cam-over-light, 0));
    mix-blend-mode: screen;
}
.hero__cam-exposure::after {
    background: rgba(0, 0, 0, var(--cam-under-dark, 0));
}
.hero__cam-noise {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: var(--cam-sensor-noise, 0);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    mix-blend-mode: overlay;
    transition: opacity 0.32s ease;
}
.hero__visual--empty {
    display: flex; align-items: center; justify-content: center;
    min-height: 280px;
    position: relative;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 24px 24px;
}
.hero__visual--empty::before {
    content: "";
    position: absolute;
    inset: 1.5rem;
    border: 1px dashed var(--border);
    pointer-events: none;
}
.hero__visual--empty .mono-label { color: var(--muted); position: relative; z-index: 1; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: var(--accent-text); text-decoration: none; }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.band--light .btn--ghost { border-color: var(--border); color: var(--text); }
.band--light .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 3rem 0; }
.section--flush { padding-top: 0; }
.section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}
.section__head h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.section__link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}
.section__link:hover { color: var(--accent); text-decoration: none; }
.band--light .section__link:hover { color: var(--accent-readable); }

/* Category grids — flex wrap avoids empty bordered cells on partial last rows */
.category-grid {
    display: flex;
    flex-wrap: wrap;
}
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    flex: 0 1 100%;
    max-width: 100%;
    min-height: 120px;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid var(--border);
    margin: -1px 0 0 -1px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: border-left-color 0.15s, background 0.15s;
}
@media (min-width: 480px) {
    .category-card {
        flex: 0 1 50%;
        max-width: 50%;
    }
}
@media (min-width: 600px) {
    .category-grid:not(.category-grid--large) .category-card {
        flex: 0 1 33.333%;
        max-width: 33.333%;
    }
}
@media (min-width: 900px) {
    .category-grid:not(.category-grid--large) .category-card {
        flex: 0 1 20%;
        max-width: 20%;
    }
}
.category-card:hover {
    border-left: 3px solid var(--accent);
    text-decoration: none;
    color: var(--text);
    background: var(--accent-muted);
}
.category-card--large {
    min-height: 220px;
}
@media (min-width: 600px) {
    .category-grid--large .category-card {
        flex: 0 1 50%;
        max-width: 50%;
    }
}
@media (min-width: 1000px) {
    .category-grid--large .category-card {
        flex: 0 1 33.333%;
        max-width: 33.333%;
    }
}
.category-card--has-cover .category-card__cover {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.4;
}
.category-card--has-cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--surface) 100%);
}
.category-card__index {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    position: relative; z-index: 1;
}
.band--light .category-card__index { color: var(--accent-readable); }
.category-card__empty-tag {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-left: 0.35rem;
}
.category-card--zero .category-card__count { color: var(--muted); }
.category-card__label, .category-card__count { position: relative; z-index: 1; }
.category-card__label {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.2;
}
.category-card__count {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 0.35rem;
    text-transform: uppercase;
}

/* Photo masonry */
.photo-masonry {
    column-count: 1;
    column-gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
@media (min-width: 600px) { .photo-masonry { column-count: 2; } }
@media (min-width: 900px) { .photo-masonry { column-count: 3; } }
@media (min-width: 1100px) { .photo-masonry { column-count: 4; } }

.photo-card {
    break-inside: avoid;
    background: var(--bg);
    margin-bottom: 1px;
}
.band--light .photo-card { background: var(--band-light); }
.photo-card__link { display: block; color: inherit; text-decoration: none; }
.photo-card__link:hover { text-decoration: none; color: inherit; }
.photo-card__frame {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    aspect-ratio: var(--aspect, 1.5);
    cursor: zoom-in;
    border-bottom: 1px solid var(--border);
}
.photo-card__blur {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: blur(12px); transform: scale(1.1);
}
.photo-card__img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo-card__meta { padding: 0.75rem 0.85rem 1rem; }
.photo-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.25;
}
.photo-card__exif {
    margin: 0.35rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Page hero */
.page-hero { padding: 3rem 0 2rem; }
.page-hero--compact { padding: 2rem 0 1.5rem; }
.page-hero--has-cover {
    display: grid;
    gap: 1.5rem;
    align-items: end;
}
@media (min-width: 768px) {
    .page-hero--has-cover { grid-template-columns: 1fr min(280px, 36vw); }
}
.page-hero__cover {
    position: relative;
    overflow: hidden;
}
.page-hero__cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--border);
}
.page-hero h1 { margin: 0.25rem 0 0.5rem; font-size: clamp(2.5rem, 8vw, 5rem); }
.page-hero p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.page-hero__eyebrow { margin: 0; }
.page-hero__eyebrow a { color: var(--muted); text-decoration: none; font-family: var(--font-mono); }
.page-hero__eyebrow a:hover { color: var(--accent); }

/* Photo detail */
.photo-detail {
    display: grid; gap: 0;
    padding: 0 0 3rem;
}
@media (min-width: 900px) {
    .photo-detail { grid-template-columns: 1.5fr 1fr; align-items: start; }
    .photo-detail__panel { position: sticky; top: 4.5rem; border-left: 1px solid var(--border); }
}
.photo-detail__media { border-bottom: 1px solid var(--border); }
@media (min-width: 900px) {
    .photo-detail__media { border-bottom: none; border-right: 1px solid var(--border); }
}
.photo-detail__img { width: 100%; display: block; }
.photo-detail__panel { padding: 1.5rem 1.25rem; }
@media (min-width: 900px) { .photo-detail__panel { padding: 2rem 1.75rem; } }
.photo-detail__crumb {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}
.photo-detail__crumb a { color: var(--muted); text-decoration: none; }
.photo-detail__crumb a:hover { color: var(--accent); }
.photo-detail__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
    line-height: 1.15;
}
.photo-detail__caption { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.95rem; }

/* EXIF spec sheet */
.exif-spec {
    border: 1px solid var(--border);
    font-size: 0.82rem;
}
.exif-spec__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.exif-spec__head span {
    padding: 0.55rem 0.75rem;
    color: var(--accent);
}
.exif-spec__head span + span { border-left: 1px solid var(--border); }
.exif-spec__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}
.exif-spec__row:last-child { border-bottom: none; }
.exif-spec__label {
    padding: 0.6rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-right: 1px solid var(--border);
    background: var(--surface);
}
.exif-spec__value {
    padding: 0.6rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.exif-spec__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
}
.exif-spec__cell {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-right: 1px solid var(--border);
}
.exif-spec__cell:last-child { border-right: none; }
.exif-spec__cell-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.exif-spec__cell strong {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.exif-spec__date {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.photo-detail__nav {
    display: flex; justify-content: space-between;
    margin-top: 1.5rem; gap: 0.75rem;
}
.photo-detail__nav-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}
.photo-detail__nav-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* Prose & gear */
.prose {
    max-width: 40rem;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}
.prose p { margin: 0 0 1.25rem; }
.prose em { color: var(--text); font-style: italic; }
.prose .mono-label { display: block; margin-bottom: 1.5rem; }
.band--light .prose .mono-label,
.band--light .prose .mono-label--accent { color: var(--accent-readable); }
.band--dark .prose .mono-label--accent { color: var(--accent-on-dark); }
.band--light .prose a { color: var(--accent-readable); }
.band--light .prose a:hover { color: var(--accent-readable); text-decoration: underline; }

.gear-grid {
    display: grid; gap: 0;
    border: 1px solid var(--border);
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .gear-grid { grid-template-columns: repeat(3, 1fr); } }
.gear-card {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}
@media (min-width: 700px) {
    .gear-card { border-bottom: none; border-right: 1px solid var(--border); }
    .gear-card:last-child { border-right: none; }
}
.gear-card__tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}
.gear-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 700;
}
.gear-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.gear-note {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 1.5rem;
    letter-spacing: 0.04em;
}
.gear-note code {
    background: var(--surface);
    padding: 0.1rem 0.35rem;
    border: 1px solid var(--border);
    font-size: 0.65rem;
}

.empty-state {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 3rem 0;
    text-align: center;
}

/* Empty panels */
.empty-panel {
    position: relative;
    border: 1px solid var(--border);
    background: var(--surface);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.empty-panel--light {
    background: var(--band-light-surface);
    color: var(--text-inverse);
    --text: var(--text-inverse);
    --muted: var(--muted-inverse);
    --border: var(--border-inverse);
}
.empty-panel--accent {
    background: var(--accent-muted);
    border-color: var(--border);
}
.empty-panel--compact {
    min-height: 140px;
    padding: 1.5rem 1.25rem;
}
.empty-panel__frame {
    position: absolute;
    inset: 1.25rem;
    border: 1px dashed var(--border);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}
.empty-panel--light .empty-panel__frame {
    background-image:
        linear-gradient(var(--grid-line-inverse) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-inverse) 1px, transparent 1px);
}
.empty-panel__content { position: relative; z-index: 1; max-width: 32rem; }
.empty-panel__eyebrow { margin: 0 0 0.75rem; }
.empty-panel--light .empty-panel__eyebrow { color: var(--accent-readable); }
.empty-panel__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
}
.empty-panel__message {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.empty-panel__suggestions {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
}
.empty-panel__suggestions a {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}
.empty-panel--light .empty-panel__suggestions a { color: var(--accent-readable); }
.empty-panel__suggestions a:hover { text-decoration: underline; }
.empty-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}
.empty-panel__note {
    margin: 1rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.empty-panel__note a { color: var(--accent); }
.empty-panel--light .empty-panel__note a { color: var(--accent-readable); }

.discover--empty .discover__media {
    border: 1px solid var(--border);
    background: var(--band-light-surface);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.discover--empty .discover__placeholder {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 2rem;
    text-align: center;
}
.discover__shuffle--disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* Stats strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-strip__item {
    padding: 1.25rem 1rem;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stats-strip__item:last-child { border-right: none; }
.stats-strip__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stats-strip__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.4rem;
}
.stats-strip__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0.5rem 1rem 1rem;
    margin: 0;
    color: var(--muted);
}

/* Filmstrip */
.section--flush-top { padding-top: 1.5rem; }
.section__hint { color: var(--accent); }
.filmstrip {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--border);
    padding-bottom: 2px;
}
.filmstrip__item {
    flex: 0 0 140px;
    scroll-snap-align: start;
    background: var(--bg);
    border-right: 1px solid var(--border);
}
@media (min-width: 600px) { .filmstrip__item { flex-basis: 160px; } }
.filmstrip__item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.filmstrip__item:hover img { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Discover */
.discover {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0 2rem;
}
@media (min-width: 800px) {
    .discover { grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
}
.discover__media { border: 1px solid var(--border); overflow: hidden; }
.discover__media img {
    width: 100%;
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: opacity 0.35s ease;
}
.discover__title { margin: 0.35rem 0 0.75rem; font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.15; }
.discover__exif { margin: 0 0 1.25rem; line-height: 1.5; }
.discover__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.discover--loading .discover__media img { opacity: 0.45; }
.discover--swap .discover__media img { opacity: 0.72; }
.discover--loading [data-discover-shuffle-btn] { opacity: 0.65; cursor: wait; }

/* Connect strip */
.band--connect {
    background: var(--bg);
    border-top: 3px solid var(--accent);
}
.connect-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2rem 0;
}
.connect-strip__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}
@media (min-width: 640px) {
    .connect-strip__actions { width: auto; }
}
.connect-strip__actions .btn { width: 100%; }
@media (min-width: 640px) {
    .connect-strip__actions .btn { width: auto; }
}
.connect-strip__eyebrow { margin: 0 0 0.35rem; color: var(--accent); }
.connect-strip__title { margin: 0 0 0.35rem; font-size: 1.5rem; }
.connect-strip__text { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Photo card EXIF peek */
.photo-card__peek {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0.65rem;
    background: linear-gradient(transparent 40%, rgba(12, 12, 12, 0.88));
    border-top: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.photo-card__frame:hover .photo-card__peek,
.photo-card__frame:focus-within .photo-card__peek { opacity: 1; }
.photo-card__peek-text {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    color: #e8e8e8;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Photo share */
.photo-detail__share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.photo-detail__share-btn { font-size: 0.62rem; }
.photo-detail__share-btn--copied {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-muted);
}

/* Gear page */
.gear-highlight { padding: 1.5rem 0; }
.gear-highlight__grid {
    display: grid;
    gap: 1rem;
    margin-top: 0.75rem;
}
@media (min-width: 600px) { .gear-highlight__grid { grid-template-columns: 1fr 1fr; } }
.gear-highlight__item {
    border: 1px solid var(--border);
    padding: 1rem;
    background: var(--surface);
}
.gear-highlight__label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.35rem;
}
.band--light .gear-card__tag,
.band--light .gear-list__stat-value { color: var(--accent-readable); }
.gear-callout {
    padding: 1.25rem 0;
}
.gear-callout .empty-panel--compact { text-align: left; justify-content: flex-start; }
.gear-highlight__item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}
.gear-list { border: 1px solid var(--border); }
.gear-list--grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .gear-list--grid { grid-template-columns: 1fr 1fr; } }
.gear-list__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.gear-list__item:last-child { border-bottom: none; }
.gear-list--grid .gear-list__item { border-right: 1px solid var(--border); }
.gear-list__main h3 {
    margin: 0.25rem 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.gear-list__main p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.gear-list__since { margin-top: 0.5rem !important; }
.gear-list__stat { text-align: right; flex-shrink: 0; }
.gear-list__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

/* Scroll reveal */
.reveal--pending { opacity: 0; transform: translateY(12px); }
.reveal.is-visible, .photo-card.is-visible, .category-card.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(12, 12, 12, 0.96);
    display: flex; align-items: center; justify-content: center;
    padding: 4rem 1rem 1rem;
}
.lightbox--hidden, .lightbox[hidden] { display: none; }
.lightbox__top {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2a2a2a;
    background: #0c0c0c;
}
.lightbox__counter {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--accent);
}
.lightbox__detail {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    margin-left: auto;
}
.lightbox__detail:hover { color: var(--accent); }
.lightbox__figure { margin: 0; max-width: min(96vw, 1200px); text-align: center; position: relative; }
.lightbox__img { max-height: 78vh; margin: 0 auto; border: 1px solid #2a2a2a; }
.lightbox__loader {
    position: absolute;
    top: 50%; left: 50%;
    width: 28px; height: 28px;
    margin: -14px 0 0 -14px;
    border: 2px solid #2a2a2a;
    border-top-color: var(--accent);
    animation: lb-spin 0.7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox__caption {
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-top: 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}
.lightbox__close, .lightbox__nav {
    border: 1px solid #2a2a2a;
    background: #161616;
    color: #f0f0f0;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.45rem 0.65rem;
    line-height: 1;
}
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__close { margin-left: 0.5rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 0.75rem; }
.lightbox__nav--next { right: 0.75rem; }

/* Shortcuts modal */
.footer-shortcuts-btn {
    background: none;
    border: 1px solid var(--border);
    color: inherit;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-shortcuts-btn:hover { border-color: var(--accent); color: var(--accent); }
html[data-theme="light"] .footer-shortcuts-btn { border-color: #444; color: var(--text-muted); }
.shortcuts-modal {
    position: fixed; inset: 0; z-index: 250;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.shortcuts-modal--hidden, .shortcuts-modal[hidden] { display: none; }
.shortcuts-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(12, 12, 12, 0.75);
}
.shortcuts-modal__panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    max-width: 360px;
    width: 100%;
}
.shortcuts-modal__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}
.shortcuts-modal__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}
.shortcuts-modal__list li { padding: 0.35rem 0; }
.shortcuts-modal__list kbd {
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
    padding: 0.1rem 0.35rem;
    border: 1px solid var(--border);
    margin-right: 0.35rem;
    color: var(--accent);
}

.toast {
    position: fixed;
    bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 0.75rem));
    left: 50%;
    transform: translateX(-50%);
    max-width: min(92vw, 24rem);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.55rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    z-index: 300;
}
.toast--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.toast:not(.toast--hidden) { opacity: 1; visibility: visible; transition: opacity 0.2s; }
.toast--success {
    border-color: var(--accent);
    background: var(--accent-muted);
    color: var(--text);
}
.toast--error {
    border-color: #8b4040;
    background: rgba(139, 64, 64, 0.12);
    color: var(--text);
}

.pagination {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin: 2rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.pagination__link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
}
.pagination__link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination__meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0c0c0c;
    overflow: hidden;
}
.preloader__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.55;
    animation: preloader-grid-drift 14s linear infinite;
}
.preloader__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 18px rgba(200, 255, 0, 0.45);
    top: -4px;
    opacity: 0;
    animation: preloader-scan 1.8s ease-in-out 0.15s 1 forwards;
}
.preloader__shutter {
    position: absolute;
    left: 0;
    right: 0;
    height: 50.5%;
    background: #0c0c0c;
    z-index: 4;
    will-change: transform;
}
.preloader__shutter--top {
    top: 0;
    border-bottom: 1px solid rgba(200, 255, 0, 0.25);
    transform: translateY(-100%);
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}
.preloader__shutter--bottom {
    bottom: 0;
    border-top: 1px solid rgba(200, 255, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}
.preloader--close .preloader__shutter--top,
.preloader--close .preloader__shutter--bottom {
    transform: translateY(0);
}
.preloader--open {
    background: transparent;
    pointer-events: none;
}
.preloader--open .preloader__shutter--top {
    transform: translateY(-100%);
    transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.preloader--open .preloader__shutter--bottom {
    transform: translateY(100%);
    transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.preloader__stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}
.preloader__viewfinder {
    position: relative;
    width: clamp(120px, 28vw, 168px);
    height: clamp(120px, 28vw, 168px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.preloader__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--accent);
    border-style: solid;
    opacity: 0;
    animation: preloader-corner-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.preloader__corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; animation-delay: 0.05s; }
.preloader__corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; animation-delay: 0.12s; }
.preloader__corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; animation-delay: 0.19s; }
.preloader__corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; animation-delay: 0.26s; }
.preloader__cross {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    animation: preloader-cross-in 0.45s ease forwards;
}
.preloader__cross--h {
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    margin-top: -0.5px;
    animation-delay: 0.35s;
}
.preloader__cross--v {
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    margin-left: -0.5px;
    animation-delay: 0.42s;
}
.preloader__focus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.45);
    animation: preloader-focus-lock 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.preloader__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 11vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: uppercase;
    color: #f0f0f0;
    display: flex;
    gap: 0.02em;
}
.preloader__title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    animation: preloader-letter-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.preloader__title span:nth-child(1) { animation-delay: 0.55s; }
.preloader__title span:nth-child(2) { animation-delay: 0.62s; }
.preloader__title span:nth-child(3) { animation-delay: 0.69s; }
.preloader__title span:nth-child(4) { animation-delay: 0.76s; }
.preloader__title span:nth-child(5) { animation-delay: 0.83s; }
.preloader__title span:nth-child(6) { animation-delay: 0.90s; }
.preloader__byline {
    margin: -0.35rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    animation: preloader-byline-in 0.45s ease 1.05s forwards;
}
.preloader__progress {
    position: absolute;
    left: max(1.25rem, env(safe-area-inset-left));
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(2.75rem, calc(env(safe-area-inset-bottom) + 1.5rem));
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 2;
    overflow: hidden;
}
.preloader__progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(200, 255, 0, 0.55);
    transition: width 0.25s ease;
}
.preloader__status {
    position: absolute;
    left: max(1.25rem, env(safe-area-inset-left));
    bottom: max(1.35rem, calc(env(safe-area-inset-bottom) + 0.35rem));
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 2;
    transition: opacity 0.25s ease;
}
.preloader--close .preloader__status,
.preloader--close .preloader__progress,
.preloader--open .preloader__grid,
.preloader--open .preloader__scan,
.preloader--open .preloader__stage {
    opacity: 0;
    visibility: hidden;
}
.preloader--close .preloader__status,
.preloader--close .preloader__progress {
    transition: opacity 0.3s ease;
}
.preloader--done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
@keyframes preloader-grid-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 48px 48px, 48px 48px; }
}
@keyframes preloader-scan {
    0% { top: -4px; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes preloader-corner-in {
    from { opacity: 0; transform: scale(1.35); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes preloader-cross-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes preloader-focus-lock {
    0% { transform: scale(2.4); opacity: 0.35; box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.45); }
    55% { transform: scale(0.88); opacity: 1; }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 10px rgba(200, 255, 0, 0); }
}
@keyframes preloader-letter-in {
    from { opacity: 0; transform: translateY(110%); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes preloader-byline-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .preloader__grid,
    .preloader__scan,
    .preloader__corner,
    .preloader__cross,
    .preloader__focus,
    .preloader__title span,
    .preloader__byline { animation: none; opacity: 1; transform: none; }
    .preloader__shutter { transition: none !important; }
    .preloader--close .preloader__shutter--top,
    .preloader--close .preloader__shutter--bottom,
    .preloader--open .preloader__shutter--top,
    .preloader--open .preloader__shutter--bottom { transform: none; }
}

/* Social links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
}
.site-footer .social-links { margin-top: 0.75rem; }
.social-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.social-links__item:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}
.band--light .social-links__item,
.site-footer .social-links__item {
    border-color: var(--border-inverse);
    color: var(--muted-inverse);
}
.band--light .social-links__item:hover,
.site-footer .social-links__item:hover {
    border-color: var(--accent);
    color: var(--accent);
}
html[data-theme="light"] .site-footer .social-links__item {
    border-color: #2a2a2a;
    color: #b0b0b0;
}
html[data-theme="light"] .site-footer .social-links__item:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.social-links--connect { margin-top: 1rem; }

/* Cross-device polish */
.section__head {
    flex-wrap: wrap;
    align-items: flex-end;
}
.section__head h2 { flex: 1 1 auto; min-width: 0; }
.btn {
    min-height: 44px;
}
@media (max-width: 639px) {
    .stats-strip {
        grid-template-columns: 1fr;
    }
    .stats-strip__item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .stats-strip__item:last-child { border-bottom: none; }
}
@media (max-width: 479px) {
    .hero__actions .btn { flex: 1 1 calc(50% - 0.35rem); }
    .empty-panel__actions .btn { width: 100%; }
    .discover__actions .btn { flex: 1 1 auto; }
    .pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .pagination__link { text-align: center; }
    .photo-detail__nav {
        flex-direction: column;
    }
    .photo-detail__nav-link { text-align: center; }
    .gear-list__item {
        flex-direction: column;
        align-items: stretch;
    }
    .gear-list__stat { text-align: left; margin-top: 0.75rem; }
}
@media (max-width: 767px) {
    .site-logo__text {
        font-size: 0.92rem;
        max-width: 11rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hero__title {
        font-size: clamp(2.25rem, 12vw, 3.75rem);
    }
    .section__link {
        white-space: normal;
        text-align: right;
        max-width: 12rem;
    }
    .exif-spec__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .exif-spec__cell {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .exif-spec__cell:nth-child(2n) { border-right: none; }
    .exif-spec__cell:nth-last-child(-n+2) { border-bottom: none; }
    .search-form .btn {
        flex: 1 1 100%;
    }
    .lightbox {
        padding:
            max(3.25rem, calc(env(safe-area-inset-top) + 2.5rem))
            max(0.75rem, env(safe-area-inset-right))
            max(1rem, env(safe-area-inset-bottom))
            max(0.75rem, env(safe-area-inset-left));
    }
    .lightbox__top {
        padding:
            max(0.65rem, env(safe-area-inset-top))
            max(1rem, env(safe-area-inset-right))
            0.65rem
            max(1rem, env(safe-area-inset-left));
    }
    .lightbox__nav--prev,
    .lightbox__nav--next {
        display: none;
    }
    .lightbox__close {
        min-width: 44px;
        min-height: 44px;
    }
    .lightbox__img { max-height: 70dvh; }
    .filmstrip {
        scroll-padding-left: max(1.25rem, env(safe-area-inset-left));
    }
    .photo-card__exif {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .shortcuts-modal {
        padding:
            max(1rem, env(safe-area-inset-top))
            max(1rem, env(safe-area-inset-right))
            max(1rem, env(safe-area-inset-bottom))
            max(1rem, env(safe-area-inset-left));
    }
    .shortcuts-modal__touch-hint {
        color: var(--text);
        font-size: 0.72rem;
    }
    .connect-strip {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .connect-strip__actions {
        justify-content: center;
    }
    .connect-strip__title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    .hero {
        padding: 2rem 0 2.5rem;
    }
}
@media (hover: none) {
    .photo-card__peek { opacity: 1; }
}

/* Camera HUD — overlaid on hero image */
.camera-hud--hero {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    pointer-events: none;
}
.camera-hud--hero .camera-hud__toggle,
.camera-hud--hero .camera-hud__reset-all,
.camera-hud--hero .camera-hud__panel,
.camera-hud--hero .camera-hud__hint {
    pointer-events: auto;
}
.camera-hud--hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.55) 55%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.camera-hud--hero:not(.camera-hud--collapsed)::before,
.camera-hud--hero.camera-hud--attention::before {
    opacity: 1;
}
.camera-hud__hint {
    order: 3;
    margin: 0;
    padding: 0.65rem 0.85rem 0.75rem;
    color: var(--hud-text);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: center;
    background: var(--hud-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 255, 0, 0.48);
    border-top: 1px solid rgba(200, 255, 0, 0.32);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.camera-hud__hint strong {
    color: var(--accent);
    font-weight: 700;
}
.camera-hud__badges {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}
.camera-hud__hint .camera-hud__badges {
    margin-left: 0.25rem;
    vertical-align: -0.08em;
}
.camera-hud__badge-icon {
    display: block;
    color: var(--accent);
    opacity: 0.9;
}
.camera-hud__badge-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.15rem;
    border: 1px solid rgba(200, 255, 0, 0.55);
    border-radius: 2px;
    background: rgba(200, 255, 0, 0.1);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}
.camera-hud__hint-arrow {
    display: inline-block;
    margin-right: 0.3rem;
    color: var(--accent);
    font-size: 0.82rem;
    line-height: 1;
    vertical-align: -0.05em;
}
.camera-hud__hint-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 0.05em;
    box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.65);
}
.camera-hud--attention.camera-hud--collapsed .camera-hud__hint {
    animation: camera-hud-hint-in 0.55s ease forwards, camera-hud-hint-glow 2.4s ease-in-out 0.55s infinite;
}
.camera-hud--attention.camera-hud--collapsed .camera-hud__hint-dot {
    animation: camera-hud-dot-pulse 1.5s ease-in-out infinite;
}
.camera-hud--attention.camera-hud--collapsed .camera-hud__toggle {
    animation: camera-hud-toggle-pulse 2.2s ease-in-out infinite;
}
/* Hide hint only while panel is expanded */
.camera-hud--hero:not(.camera-hud--collapsed) .camera-hud__hint {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    overflow: hidden;
}
.camera-hud__toggle-row {
    order: 1;
    display: flex;
    align-items: stretch;
    width: 100%;
}
.camera-hud__toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: none;
    background: var(--hud-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--hud-text);
    cursor: pointer;
    text-align: left;
}
.camera-hud__reset-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    padding: 0 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: none;
    border-bottom: none;
    background: var(--hud-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--hud-text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.camera-hud__reset-all:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.camera-hud__reset-all:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.camera-hud__reset-all.is-active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(200, 255, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(200, 255, 0, 0.35);
}
.camera-hud__reset-icon {
    display: block;
    width: 1rem;
    height: 1rem;
}
.camera-hud--hero.camera-hud--collapsed .camera-hud__toggle-row .camera-hud__toggle,
.camera-hud--hero.camera-hud--collapsed .camera-hud__toggle-row .camera-hud__reset-all {
    border-bottom: 1px solid rgba(200, 255, 0, 0.2);
}
.camera-hud__toggle:hover { border-color: var(--accent); }
.camera-hud__toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.camera-hud__toggle-mark {
    flex-shrink: 0;
    padding: 0.15rem 0.35rem;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 500;
    letter-spacing: 0.12em;
}
.camera-hud__summary {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--hud-text);
    text-transform: uppercase;
}
.camera-hud__chevron {
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid var(--hud-text-muted);
    border-bottom: 1.5px solid var(--hud-text-muted);
    transform: rotate(-135deg);
    margin-top: 0.15rem;
    transition: transform 0.2s ease;
}
.camera-hud:not(.camera-hud--collapsed) .camera-hud__chevron {
    transform: rotate(45deg);
    margin-top: -0.15rem;
}
.camera-hud__panel {
    order: 2;
    padding: 0.55rem 0.75rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--hud-bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.camera-hud__panel-hint {
    margin: 0 0 0.55rem;
    color: var(--hud-text-muted);
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    line-height: 1.45;
    text-transform: uppercase;
}
.camera-hud__panel-kbd {
    display: inline-block;
    padding: 0.05rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent);
    font-size: 0.52rem;
}
.camera-hud__row {
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0;
}
.camera-hud__row + .camera-hud__row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.35rem;
    padding-top: 0.65rem;
}
.camera-hud__label {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
}
.camera-hud__dial-host {
    min-width: 0;
}
.camera-hud__dial {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.camera-hud__dial-shell {
    --dial-stop-half: 28px;
    position: relative;
    flex: 1;
    min-width: 0;
    height: 3.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(40, 40, 40, 0.95) 0%, rgba(18, 18, 18, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 6px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
}
.camera-hud__dial-needle {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 2px;
    transform: translateX(-50%);
    background: var(--accent);
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.55);
    pointer-events: none;
}
.camera-hud__dial-needle::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 50%;
    width: 11px;
    height: 7px;
    transform: translateX(-50%);
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}
.camera-hud__dial-track {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: calc(50% - var(--dial-stop-half));
    padding-inline: calc(50% - var(--dial-stop-half));
    box-sizing: border-box;
}
.camera-hud__dial-track::-webkit-scrollbar {
    display: none;
}
.camera-hud__dial-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}
.camera-hud__dial-track:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.camera-hud__dial-rail {
    display: flex;
    align-items: flex-end;
    height: 100%;
    width: max-content;
    padding-bottom: 0.35rem;
}
.camera-hud__dial-stop {
    flex-shrink: 0;
    width: 56px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    color: var(--hud-text-muted);
    transition: color 0.2s ease, opacity 0.2s ease;
}
.camera-hud__dial-ticks {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 1.15rem;
}
.camera-hud__dial-ticks > span {
    display: block;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}
.camera-hud__dial-ticks > span:first-child {
    height: 0.45rem;
}
.camera-hud__dial-ticks > span:last-child {
    height: 0.7rem;
}
.camera-hud__dial-stop::before {
    content: "";
    display: block;
    width: 2px;
    height: 1.35rem;
    background: rgba(255, 255, 255, 0.38);
    transition: background 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}
.camera-hud__dial-label {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.2s ease, font-weight 0.2s ease;
}
.camera-hud__dial-stop--active,
.camera-hud__dial-stop.dial-item.active {
    color: var(--accent);
}
.camera-hud__dial-stop--active::before,
.camera-hud__dial-stop.dial-item.active::before {
    height: 1.65rem;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(200, 255, 0, 0.45);
}
.camera-hud__dial-stop--active .camera-hud__dial-label,
.camera-hud__dial-stop.dial-item.active .camera-hud__dial-label {
    font-weight: 600;
}
.camera-hud__dial-stop--shot .camera-hud__dial-label::after {
    content: "●";
    margin-left: 0.15rem;
    font-size: 0.42rem;
    color: rgba(200, 255, 0, 0.65);
    vertical-align: 0.1em;
}
.camera-hud__dial-shot {
    flex-shrink: 0;
    min-height: 28px;
    padding: 0.2rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 30, 0.9);
    color: var(--hud-text-muted);
    font: inherit;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.camera-hud__dial-shot:hover {
    border-color: var(--accent);
    color: var(--hud-text);
}
.camera-hud__dial-shot.is-active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(200, 255, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(200, 255, 0, 0.35);
}
@keyframes camera-hud-hint-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes camera-hud-hint-glow {
    0%, 100% { box-shadow: 0 0 14px rgba(200, 255, 0, 0.1); border-color: rgba(200, 255, 0, 0.38); }
    50% { box-shadow: 0 0 22px rgba(200, 255, 0, 0.28); border-color: rgba(200, 255, 0, 0.62); }
}
@keyframes camera-hud-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.65); }
    50% { box-shadow: 0 0 0 7px rgba(200, 255, 0, 0); }
}
@keyframes camera-hud-toggle-pulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 0 rgba(200, 255, 0, 0); }
    50% { border-color: rgba(200, 255, 0, 0.55); box-shadow: inset 0 0 0 1px rgba(200, 255, 0, 0.25); }
}
@media (max-width: 767px) {
    .camera-hud__row {
        grid-template-columns: 3.5rem 1fr;
    }
    .camera-hud--hero:not(.camera-hud--collapsed) .camera-hud__panel {
        max-height: min(42vh, 17rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .camera-hud__dial-shell {
        --dial-stop-half: 24px;
        height: 2.85rem;
    }
    .camera-hud__dial-stop {
        width: 48px;
    }
    .camera-hud__dial-label {
        font-size: 0.48rem;
    }
    .camera-hud__dial-shot {
        min-width: 44px;
        min-height: 44px;
        padding: 0.35rem 0.5rem;
    }
    .camera-hud__hint { font-size: 0.62rem; padding: 0.55rem 0.7rem 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .camera-hud--attention.camera-hud--collapsed .camera-hud__hint,
    .camera-hud--attention.camera-hud--collapsed .camera-hud__hint-dot,
    .camera-hud--attention.camera-hud--collapsed .camera-hud__toggle {
        animation: none;
    }
    .camera-hud--attention.camera-hud--collapsed .camera-hud__hint { opacity: 1; transform: none; }
    .camera-hud__dial-track {
        scroll-behavior: auto;
        scroll-snap-type: x mandatory;
    }
    .camera-hud__dial-stop,
    .camera-hud__dial-stop::before,
    .camera-hud__dial-label { transition: none; }
}

/* Camera HUD — hero image effects (universal sensor response curve) */
#hero-cam-target[data-cam-active]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(
        ellipse 68% 62% at 50% 44%,
        transparent 30%,
        rgba(0, 0, 0, var(--cam-vignette, 0)) 100%
    );
    transition: opacity 0.32s ease;
}

/* Camera Lab — client-side upload playground */
.camera-lab-page .site-main {
    padding-bottom: 0;
}
.camera-lab__intro {
    max-width: 42rem;
}
.camera-lab__terminal {
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.camera-lab__terminal--out {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    position: absolute;
    width: 100%;
    visibility: hidden;
}
.camera-lab__terminal-inner {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}
.camera-lab__dropzone {
    width: min(100%, 36rem);
    min-height: 16rem;
    padding: 2.5rem 2rem;
    border: 1.5px dashed rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 55%),
        var(--surface);
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.camera-lab__dropzone:hover,
.camera-lab__dropzone:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(200, 255, 0, 0.18);
    outline: none;
}
.camera-lab__dropzone--hover {
    border-color: var(--accent);
    background:
        linear-gradient(145deg, rgba(200, 255, 0, 0.08), transparent 60%),
        var(--surface);
    transform: translateY(-2px);
}
.camera-lab__dropzone-icon {
    display: inline-flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.camera-lab__dropzone-icon span {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);
}
.camera-lab__dropzone-icon span:last-child {
    transform: translateY(0.35rem);
    opacity: 0.65;
}
.camera-lab__dropzone-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}
.camera-lab__dropzone-sub {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.camera-lab__dropzone-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.camera-lab__dropzone-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.camera-lab__banner {
    position: fixed;
    left: 50%;
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem));
    z-index: 120;
    max-width: min(92vw, 28rem);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 90, 90, 0.45);
    border-radius: 2px;
    background: rgba(28, 12, 12, 0.94);
    color: #ffd4d4;
    font-size: 0.82rem;
    line-height: 1.45;
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.camera-lab__banner[hidden] {
    display: none;
}
.camera-lab__sandbox {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.camera-lab__sandbox--in {
    opacity: 1;
    transform: translateY(0);
}
.camera-lab__sandbox-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}
.camera-lab__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.camera-lab__toolbar-eyebrow {
    margin: 0 0 0.35rem;
}
.camera-lab__status,
.camera-lab__filename {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}
.camera-lab__filename {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-hint {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.camera-lab__stage {
    display: flex;
    justify-content: center;
}
.camera-lab__workspace {
    display: grid;
    grid-template-columns: minmax(0, 28rem) minmax(15rem, 22rem);
    gap: 1.25rem;
    align-items: start;
    width: min(100%, 52rem);
}
.camera-lab__preview {
    width: 100%;
}
.camera-lab__preview img {
    display: block;
}
.camera-lab__controls {
    min-width: 0;
}
.camera-hud--lab {
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 16, 16, 0.94);
    pointer-events: auto;
}
.camera-hud--lab::before {
    display: none;
}
.camera-hud--lab .camera-hud__toggle,
.camera-hud--lab .camera-hud__reset-all,
.camera-hud--lab .camera-hud__panel {
    pointer-events: auto;
}
.camera-hud--lab .camera-hud__toggle-row .camera-hud__toggle,
.camera-hud--lab .camera-hud__toggle-row .camera-hud__reset-all {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.camera-hud--lab:not(.camera-hud--collapsed) .camera-hud__toggle-row .camera-hud__toggle,
.camera-hud--lab:not(.camera-hud--collapsed) .camera-hud__toggle-row .camera-hud__reset-all {
    border-bottom: none;
}
.camera-hud--lab .camera-hud__panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.camera-hud--lab.camera-hud--collapsed .camera-hud__toggle-row .camera-hud__toggle,
.camera-hud--lab.camera-hud--collapsed .camera-hud__toggle-row .camera-hud__reset-all {
    border-bottom: 1px solid rgba(200, 255, 0, 0.2);
}
@media (max-width: 52rem) {
    .camera-lab__workspace {
        grid-template-columns: 1fr;
        width: min(100%, 28rem);
    }
}
@media (max-width: 479px) {
    .camera-lab__toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .camera-lab__reset {
        width: 100%;
    }
    .camera-lab__dropzone {
        min-height: 14rem;
        padding: 2rem 1.25rem;
    }
    .camera-lab__intro h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
@media (prefers-reduced-motion: reduce) {
    .camera-lab__terminal,
    .camera-lab__sandbox,
    .camera-lab__dropzone,
    .camera-lab__banner {
        transition: none;
    }
}
