*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Saans JS';
    src: url('/fonts/saansjs-medium.woff2') format('woff2'),
         url('/fonts/saansjs-medium.woff') format('woff');
    font-weight: 100 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saans JS';
    src: url('/fonts/saansjs-bold.woff2') format('woff2'),
         url('/fonts/saansjs-bold.woff') format('woff');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #c9a96e;
    --text: #1a1a1a;
    --text-light: #888;
    --border: #e8e8e8;
    --bg: #fff;
    --gallery-cols: 4;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Saans JS', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

/* ── Loading ── */
#loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 999;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Password ── */
#password-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.pw-box {
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.pw-logo {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
}

.pw-box h1 {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.pw-box > p, .nf-box > p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

#pw-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    letter-spacing: 0.1em;
}

#pw-form input:focus {
    border-color: var(--accent);
    background: #fff;
}

#pw-error {
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 0.6rem;
    margin-bottom: 0;
}

#pw-form button {
    margin-top: 1rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}

#pw-form button:hover { background: #333; }
#pw-form button:active { background: #000; }

/* ── Hero ── */
#hero-wrap {
    position: relative;
    height: 100svh;
    overflow: hidden;
}

#hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

#hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

#hero-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

#hero-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
    color: #fff;
    text-align: center;
    will-change: transform, opacity;
}

#hero-title-display {
    font-size: clamp(2rem, 7vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

#hero-date-display {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

#hero-credit-display {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    z-index: 10;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s;
}

#hero-credit-display:hover { opacity: 0.75; }

/* ── Gallery header ── */
#gallery-screen header {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border);
}

#gallery-credit {
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-top: -1.4rem;
    margin-bottom: 2rem;
}

.header-logo {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

#gallery-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

#gallery-date {
    color: var(--text-light);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-select {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: none;
    color: var(--text);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-select:hover {
    border-color: var(--text);
}

.btn-select.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    border: 1px solid var(--text);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    transition: all 0.2s;
}

.btn-download:hover {
    background: var(--text);
    color: #fff;
}

/* ── Photo grid ── */
#photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 67vw;
    grid-auto-flow: row dense;
    gap: 8px;
    padding: 8px;
}

@media (min-width: 480px) {
    #photo-grid {
        --_gc: min(2, var(--gallery-cols));
        grid-template-columns: repeat(var(--_gc), 1fr);
        grid-auto-rows: calc(67vw / var(--_gc));
    }
}

@media (min-width: 600px) {
    #photo-grid {
        --_gc: min(3, var(--gallery-cols));
        grid-template-columns: repeat(var(--_gc), 1fr);
        grid-auto-rows: calc(67vw / var(--_gc));
    }
}

@media (min-width: 900px) {
    #photo-grid {
        --_gc: var(--gallery-cols);
        grid-template-columns: repeat(var(--_gc), 1fr);
        grid-auto-rows: calc(67vw / var(--_gc));
    }
}

.photo-item {
    overflow: hidden;
    cursor: zoom-in;
    background: #f0f0f0;
    position: relative;
}

.photo-item.portrait {
    grid-row: span 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-item:hover img { transform: scale(1.04); }

#grid-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.load-bar-wrap {
    width: 180px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

#load-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

#load-bar-text {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

#photo-grid {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#photo-grid.ready {
    opacity: 1;
}

/* ── Photo selection ── */
.photo-select {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.photo-item:hover .photo-select { opacity: 1; }
#photo-grid.selection-mode .photo-select { opacity: 1; }
#photo-grid.selection-mode .photo-item { cursor: pointer; }

.photo-item.selected .photo-select {
    opacity: 1;
    background: var(--accent);
    border-color: var(--accent);
}

.photo-item.selected .photo-select svg { display: block; }
.photo-select svg { display: none; }

.photo-item.selected > img { opacity: 0.65; }

/* ── Selection bar ── */
#selection-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text);
    color: #fff;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

#selection-bar.visible { transform: translateY(0); }

#sel-count {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.7);
}

.sel-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#sel-clear-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.15s;
}

#sel-clear-btn:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

#sel-download-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: opacity 0.15s;
}

#sel-download-btn:hover { opacity: 0.85; }
#sel-download-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

#footer-credit {
    font-weight: 600;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}
#footer-credit:hover { opacity: 0.7; }

/* ── Lightbox ── */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y pinch-zoom;
}

#lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4rem 4.5rem;
}

#lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 2px;
}

#lb-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.25rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    z-index: 20;
    transition: color 0.2s;
    line-height: 0;
}

#lb-close:hover { color: #fff; }

#lb-prev, #lb-next {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    line-height: 0;
}

#lb-prev { left: 0; }
#lb-next { right: 0; }
#lb-prev:hover, #lb-next:hover { color: #fff; }

#lb-prev[disabled], #lb-next[disabled] {
    opacity: 0;
    pointer-events: none;
}

#lb-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    pointer-events: none;
}

/* ── Home / Landing page ── */
#home-screen {
    display: block;
}

#home-intro {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
}

#home-hero {
    margin-top: auto;
    padding-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#home-logo {
    height: clamp(3.5rem, 9vw, 6rem);
    width: auto;
    margin-bottom: 1.75rem;
    display: block;
}

#home-name {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

#home-tagline {
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

#home-instagram {
    display: inline-flex;
    align-items: center;
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: opacity 0.2s;
}

#home-instagram:hover { opacity: 0.7; }

#home-email {
    display: block;
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: opacity 0.2s;
}

#home-email:hover { opacity: 0.7; }

.tw-cursor {
    display: inline-block;
    font-weight: 100;
    animation: tw-blink 0.7s infinite;
}

@keyframes tw-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Portfolio boxes ── */
#home-portfolio-boxes {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: min(1200px, calc(100vw - 3rem));
    margin-bottom: auto;
    position: relative;
}

.portfolio-boxes-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
#home-portfolio-boxes[data-count="0"] { display: none; }
#home-portfolio-boxes[data-count="1"] { grid-template-columns: minmax(0, 340px); justify-content: center; }
#home-portfolio-boxes[data-count="2"] { grid-template-columns: repeat(2, 1fr); max-width: min(800px, calc(100vw - 3rem)); }
#home-portfolio-boxes[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
#home-portfolio-boxes[data-count="4"] { grid-template-columns: repeat(2, 1fr); }


.portfolio-box {
    aspect-ratio: 3/2;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-box-bg {
    position: absolute;
    inset: -4%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.6s ease;
    transform: scale(1.06);
}

.portfolio-box:hover .portfolio-box-bg {
    filter: grayscale(0%);
    transform: scale(1);
}

.portfolio-box-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 45%, transparent 70%);
    transition: background 0.5s ease;
}

.portfolio-box-title {
    position: absolute;
    bottom: 1.1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 2;
    transition: letter-spacing 0.4s ease;
}

.portfolio-box:hover .portfolio-box-title {
    letter-spacing: 0.26em;
}

@media (max-width: 600px) {
    #home-portfolio-boxes[data-count="2"],
    #home-portfolio-boxes[data-count="3"],
    #home-portfolio-boxes[data-count="4"] {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ── Scroll hint ── */
#home-scroll-hint {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-light);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.55;
    animation: scroll-bob 2.2s ease-in-out infinite;
}
@keyframes scroll-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ── Portfolio view ── */
#portfolio-view {
    min-height: 100vh;
    min-height: 100dvh;
}
#pv-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
}
#pv-back-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    transition: color 0.2s;
    padding: 0;
    justify-self: start;
}
#pv-back-btn:hover { color: var(--text); }
#pv-title {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
}
#pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 180px;
    grid-auto-flow: row dense;
    gap: 4px;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}
.pv-photo-item {
    overflow: hidden;
    cursor: pointer;
}
.pv-photo-portrait { grid-row: span 2; }
.pv-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}
.pv-photo-item:hover img { transform: scale(1.03); }
#pv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}
#pv-loading.hidden { display: none; }

#pv-load-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

#pv-load-bar-text {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

#pv-grid {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#pv-grid.ready {
    opacity: 1;
}

.pv-loading, .pv-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    font-size: 0.9rem;
}

.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
}

.home-section-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text);
    text-align: center;
    padding: 4rem 0 1.5rem;
    margin-bottom: 0;
}

.home-section.revealed .home-section-title {
    animation: none;
}

.home-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    grid-auto-flow: row dense;
    gap: 4px;
}

.home-photo-item {
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
}

.home-photo-item.home-photo-portrait {
    grid-row: span 2;
}

.home-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-photo-item:hover img { transform: scale(1.04); }

@media (max-width: 480px) {
    .home-section-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: calc(50vw - 2px);
    }
}

/* ── Section scroll reveal ── */
.home-section, #home-about, #home-contact, #home-faq {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.home-section.revealed, #home-about.revealed, #home-contact.revealed, #home-faq.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Shared section heading ── */
.home-section-heading {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    text-align: center;
}

/* ── About ── */
#home-about {
    max-width: 800px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.about-inner {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-inner.about-no-photo {
    justify-content: flex-start;
}

.about-photo-wrap {
    flex: none;
    width: 240px;
    height: 360px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
}

.home-about-text {
    flex: 2;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
}

/* ── Contact ── */
#home-contact {
    max-width: 800px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
    width: 100%;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 560px; margin: 0 auto; }
.cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-transform: uppercase;
}
.cf-field input,
.cf-field textarea {
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s;
    resize: vertical;
}
.cf-field input:focus,
.cf-field textarea:focus { outline: none; border-color: #aaa; }
.cf-submit {
    align-self: center;
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 0.7rem 1.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 2px;
}
.cf-submit:hover { background: #333; }
.cf-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.cf-success {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
    padding: 1rem 0;
    line-height: 1.7;
}

/* ── FAQ ── */
#home-faq {
    max-width: 680px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
    width: 100%;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.1rem 0;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-q::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform 0.3s;
    line-height: 1;
}
.faq-item.faq-open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-item.faq-open .faq-a { max-height: 400px; }
.faq-a p {
    padding-bottom: 1.1rem;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-light);
}

@media (max-width: 600px) {
    #home-scroll-hint { display: none; }
    .about-inner { flex-direction: column; align-items: center; text-align: center; }
    .about-photo-wrap { width: 100%; max-width: 260px; height: auto; aspect-ratio: 2/3; }
    .about-photo { width: 100%; height: 100%; }
    #pv-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }
}

/* ── Footer ── */
#home-footer {
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
    width: 100%;
}

.footer-col-title {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-link {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

.footer-billing {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    white-space: pre-line;
}

@media (max-width: 600px) {
    #home-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── IG icon ── */
#home-ig-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-top: 1.25rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

#home-ig-icon:hover { opacity: 0.6; }


/* ── Not found ── */
#not-found {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.nf-box {
    text-align: center;
}

/* ── Download disabled ── */
#gallery-screen.no-download .photo-select { display: none !important; }
#gallery-screen.no-download .photo-item { cursor: zoom-in; }

/* ── Mobile lightbox adjustments ── */
@media (max-width: 600px) {
    #lb-img-wrap { padding: 3.5rem 0.5rem; }
    #lb-prev, #lb-next { padding: 0 0.5rem; }
}

/* ── Scroll to top ── */
#scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.22s, transform 0.22s, border-color 0.2s;
    z-index: 199;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#scroll-top-btn.scroll-top-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scroll-top-btn:hover { border-color: var(--text); }
