:root {
    --bg: #f6ede1;
    --surface: rgba(255, 249, 242, 0.9);
    --surface-strong: rgba(255, 252, 247, 0.96);
    --line: rgba(73, 43, 28, 0.12);
    --line-strong: rgba(73, 43, 28, 0.22);
    --text: #201713;
    --text-soft: #64574f;
    --accent: #e85d38;
    --accent-deep: #b8402d;
    --accent-soft: #ffd7bf;
    --ink-blue: #1f4263;
    --shadow: 0 22px 52px rgba(48, 29, 19, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --font-display: "Fraunces", serif;
    --font-body: "IBM Plex Sans KR", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(232, 93, 56, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(31, 66, 99, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 214, 173, 0.22), transparent 20%),
        linear-gradient(180deg, #fffaf4 0%, #f5ebde 52%, #f2e5d7 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(255, 248, 241, 0.8);
    border-bottom: 1px solid rgba(73, 43, 28, 0.08);
}

.header-row,
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-row {
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f3553 0%, var(--accent) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.site-nav,
.footer-nav,
.link-stack,
.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-nav a,
.footer-nav a,
.link-stack a {
    color: var(--text-soft);
}

.eyebrow,
.mini-label,
.page-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-deep);
}

h1,
.h2,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.08;
}

h1 {
    margin-top: 14px;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
}

h2 {
    font-size: clamp(1.95rem, 3vw, 3rem);
}

h3 {
    font-size: 1.45rem;
}

.hero-copy,
.section-copy,
.page-lead,
.content-card p,
.content-card li,
.site-footer p,
.helper-copy,
.style-card small,
.result-placeholder,
.session-meta {
    color: var(--text-soft);
    line-height: 1.75;
}

.hero-section,
.summary-strip,
.studio-section,
.gallery-section,
.trust-section,
.content-section,
.page-hero {
    padding: 38px 0;
}

.hero-section {
    padding-top: 52px;
}

.hero-grid,
.trust-grid,
.studio-layout {
    display: grid;
    gap: 22px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    align-items: stretch;
}

.hero-copy-block {
    padding-right: 12px;
}

.hero-copy {
    max-width: 700px;
    margin: 18px 0 28px;
    font-size: 1.06rem;
}

.hero-panel,
.mini-card,
.summary-grid article,
.studio-card,
.info-card,
.content-card,
.empty-gallery,
.session-item {
    backdrop-filter: blur(14px);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-panel,
.studio-card,
.info-card,
.content-card {
    padding: 24px;
    border-radius: var(--radius-xl);
}

.hero-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.mode-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
    display: grid;
    gap: 8px;
    padding: 18px 18px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 248, 0.88);
}

.mini-card strong {
    font-size: 1.28rem;
    font-family: var(--font-display);
}

.mini-card span {
    color: var(--text-soft);
    line-height: 1.65;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.summary-grid article {
    padding: 20px 22px;
    border-radius: var(--radius-lg);
}

.stat {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ink-blue);
}

.stat-label {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-copy {
    max-width: 430px;
    margin: 0;
}

.studio-layout {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    align-items: start;
}

.preview-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.status-pill,
.mode-pill,
.preview-guide,
.countdown-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
}

.status-pill,
.mode-pill {
    min-height: 40px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(73, 43, 28, 0.08);
}

.status-pill {
    color: var(--text);
}

.status-pill[data-state="success"] {
    color: #1e5c41;
    background: rgba(218, 245, 231, 0.88);
}

.status-pill[data-state="error"] {
    color: #8d2f1f;
    background: rgba(255, 228, 220, 0.92);
}

.mode-pill {
    color: var(--ink-blue);
}

.preview-shell {
    --frame-accent: var(--accent);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(145deg, rgba(9, 15, 26, 0.96), rgba(30, 22, 18, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.preview-shell::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.preview-shell[data-mode="film"]::before {
    inset: 18px 22px;
    border-radius: 20px;
    border-style: dashed;
}

.preview-shell[data-mode="postcard"] {
    aspect-ratio: 16 / 11;
}

.preview-shell[data-mode="editorial"] {
    border-radius: 24px;
}

.preview-shell.is-flashing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    animation: preview-flash 0.22s ease;
}

#camera-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

#camera-video.is-active {
    opacity: 1;
}

#camera-video.is-mirrored {
    transform: scaleX(-1);
}

.preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.34) 0%, rgba(8, 8, 10, 0) 46%, rgba(8, 8, 10, 0.46) 100%);
    pointer-events: none;
}

.preview-guide {
    align-self: start;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff5ef;
    backdrop-filter: blur(10px);
}

.countdown-pill {
    align-self: end;
    min-width: 64px;
    justify-content: center;
    min-height: 64px;
    padding: 0 18px;
    background: rgba(255, 248, 239, 0.92);
    color: var(--accent-deep);
    font-size: 1.35rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.control-stack {
    display: grid;
    gap: 20px;
}

.control-stack section h3 {
    margin-bottom: 12px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.style-option,
.filter-pill {
    position: relative;
}

.style-option input,
.filter-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.style-card {
    display: block;
    min-height: 116px;
    padding: 16px 16px 15px;
    border-radius: 18px;
    border: 1px solid rgba(73, 43, 28, 0.1);
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.style-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.22rem;
}

.style-card small {
    display: block;
    margin-top: 10px;
}

.style-option input:checked + .style-card {
    border-color: rgba(232, 93, 56, 0.56);
    box-shadow: 0 14px 28px rgba(232, 93, 56, 0.14);
    transform: translateY(-2px);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: block;
}

.field span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.field input,
.field textarea,
.field-control,
.color-input {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid rgba(73, 43, 28, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
}

.color-input {
    padding: 8px;
}

.file-input {
    padding: 12px 14px;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(73, 43, 28, 0.12);
    background: rgba(255, 255, 255, 0.72);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-pill input:checked + span {
    background: linear-gradient(135deg, var(--ink-blue) 0%, var(--accent) 100%);
    color: #fff;
    border-color: transparent;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-weight: 500;
}

.result-shell {
    --frame-accent: var(--accent);
    position: relative;
    min-height: 390px;
    margin-top: 20px;
    padding: 18px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--frame-accent) 28%, white) 0%, transparent 24%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(246, 236, 224, 0.94));
    display: grid;
    place-items: center;
    overflow: hidden;
}

.result-shell canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(37, 26, 19, 0.16);
}

.result-placeholder {
    max-width: 340px;
    text-align: center;
}

.primary-link,
.secondary-link,
.action-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.primary-link,
.action-button {
    background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 100%);
    color: #fff8f4;
}

.accent-button {
    background: linear-gradient(90deg, #16344f 0%, #2d6b93 100%);
}

.secondary-link,
.ghost-button {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(73, 43, 28, 0.12);
    color: var(--text);
}

.primary-link:hover,
.secondary-link:hover,
.action-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

button:disabled,
.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.studio-buttons {
    margin-top: 16px;
}

.studio-buttons > * {
    flex: 1 1 160px;
}

.session-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.empty-gallery,
.session-item {
    padding: 16px;
    border-radius: 24px;
}

.empty-gallery {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: var(--text-soft);
}

.session-thumb {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 5;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.session-item[data-mode="postcard"] .session-thumb {
    aspect-ratio: 16 / 11;
}

.session-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.session-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.95rem;
}

.plain-list,
.content-card ul,
.content-card ol {
    padding-left: 20px;
    color: var(--text-soft);
    line-height: 1.75;
}

.accent-card {
    background: linear-gradient(180deg, rgba(255, 226, 196, 0.92), rgba(255, 249, 242, 0.96));
}

.page-hero .content-card {
    max-width: 900px;
}

.content-body {
    display: grid;
    gap: 18px;
}

.site-footer {
    padding: 30px 0 44px;
    border-top: 1px solid rgba(73, 43, 28, 0.08);
}

.footer-grid {
    align-items: start;
}

@keyframes preview-flash {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .studio-layout,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .footer-grid,
    .header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .section-copy {
        max-width: none;
    }

    .summary-grid,
    .session-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .wrap {
        width: min(100% - 20px, 1180px);
    }

    .site-header {
        position: static;
    }

    h1 {
        font-size: 2.65rem;
    }

    .hero-section,
    .summary-strip,
    .studio-section,
    .gallery-section,
    .trust-section,
    .content-section,
    .page-hero {
        padding: 24px 0;
    }

    .hero-panel,
    .studio-card,
    .info-card,
    .content-card {
        padding: 20px;
    }

    .mode-showcase,
    .summary-grid,
    .option-grid,
    .control-grid,
    .session-gallery {
        grid-template-columns: 1fr;
    }

    .preview-topbar {
        flex-direction: column;
    }

    .status-pill,
    .mode-pill {
        justify-content: center;
        text-align: center;
    }

    .button-row,
    .hero-actions,
    .site-nav,
    .footer-nav,
    .link-stack {
        flex-direction: column;
    }

    .button-row > *,
    .hero-actions > * {
        width: 100%;
    }

    .pill-grid {
        gap: 8px;
    }

    .filter-pill span {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Editorial redesign */

:root {
    --bg: #f7f5f0;
    --text: #1a1a18;
    --text-secondary: #8a8578;
    --accent: #c8a97e;
    --border: #e2ddd6;
    --hover: #ede9e3;
    --studio-dark: #1c1b19;
    --studio-text: rgba(247, 245, 240, 0.78);
    --studio-muted: rgba(247, 245, 240, 0.46);
    --font-display: "Cormorant Garamond", "Noto Serif KR", serif;
    --font-ui: "DM Sans", "Noto Sans KR", sans-serif;
    --font-mono: "DM Mono", "Noto Sans KR", monospace;
    --max-width: 1200px;
    --radius: 4px;
    --ease-editorial: cubic-bezier(0.25, 0, 0, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-weight: 300;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.js body {
    opacity: 0;
    transform: translateY(12px);
}

.js body.is-page-ready {
    opacity: 1;
    transform: none;
    transition:
        opacity 500ms var(--ease-editorial),
        transform 500ms var(--ease-editorial);
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition:
        opacity 500ms var(--ease-editorial),
        transform 500ms var(--ease-editorial);
}

button {
    border: 0;
    background: none;
}

::selection {
    background: rgba(200, 169, 126, 0.18);
}

.site-shell {
    width: min(var(--max-width), calc(100% - 160px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(247, 245, 240, 0);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition:
        background 500ms var(--ease-editorial),
        border-color 500ms var(--ease-editorial);
}

body.is-scrolled .site-header,
body.is-menu-open .site-header {
    background: rgba(247, 245, 240, 0.85);
    border-color: var(--border);
}

.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.brand {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
}

.brand--footer {
    color: var(--bg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a,
.menu-toggle,
.mobile-nav a,
.footer-links a {
    position: relative;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav a {
    padding: 8px 0;
    color: var(--text-secondary);
    transition: color 300ms var(--ease-editorial);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease-editorial);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.menu-toggle__label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menu-toggle__mark {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    transform: translateY(-1px);
}

.mobile-drawer {
    display: none;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav a {
    color: var(--text-secondary);
}

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

.eyebrow {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.eyebrow--light {
    color: rgba(247, 245, 240, 0.58);
}

h1,
h2,
h3 {
    margin: 0;
    color: inherit;
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.96;
}

h1 {
    font-size: clamp(4rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2.25rem, 3.2vw, 2.75rem);
    font-style: italic;
}

h3 {
    font-size: 2rem;
    font-style: italic;
}

.hero-copy__body,
.section-copy,
.page-lead,
.panel-copy,
.studio-helper,
.result-placeholder,
.footer-brand p,
.editorial-block__body p,
.editorial-block__body li,
.empty-gallery {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
}

.hero-section {
    display: flex;
    align-items: center;
    min-height: 100dvh;
    padding: 128px 0 88px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 64px;
    align-items: center;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-rule {
    width: 80px;
    height: 1px;
    background: var(--accent);
    flex: none;
}

.hero-copy h1 {
    font-style: italic;
}

.hero-copy h1 span {
    display: block;
}

.hero-copy__body {
    max-width: 620px;
    margin-top: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.text-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 300ms var(--ease-editorial);
}

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

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease-editorial);
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--text);
}

.text-link:hover::after,
.text-link:focus-visible::after {
    transform: scaleX(1);
}

.hero-art {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-art__wash {
    position: absolute;
    inset: 10% 0 0 10%;
    background:
        radial-gradient(circle at 28% 24%, rgba(200, 169, 126, 0.18), transparent 42%),
        radial-gradient(circle at 72% 38%, rgba(138, 133, 120, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(247, 245, 240, 0) 0%, var(--bg) 92%);
    filter: blur(28px);
}

.hero-collage {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 600px;
}

.hero-frame {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 24, 0.08);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(215, 206, 194, 0.92), rgba(168, 151, 131, 0.74));
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 34%, rgba(247, 245, 240, 0.78) 0 12%, transparent 12.5%),
        radial-gradient(circle at 62% 68%, rgba(28, 27, 25, 0.3) 0 22%, transparent 22.5%),
        linear-gradient(140deg, rgba(247, 245, 240, 0.12), transparent 40%, rgba(28, 27, 25, 0.2) 100%);
    mix-blend-mode: screen;
    opacity: 0.8;
}

.hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(26, 26, 24, 0.04) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(26, 26, 24, 0.02) 0 1px, transparent 1px 4px);
    opacity: 0.45;
}

.hero-frame__meta {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(26, 26, 24, 0.58);
}

.hero-frame--a {
    left: 0;
    top: 48px;
    width: 42%;
    aspect-ratio: 4 / 5;
}

.hero-frame--b {
    right: 0;
    top: 0;
    width: 52%;
    aspect-ratio: 4 / 5;
}

.hero-frame--c {
    left: 18%;
    bottom: 24px;
    width: 48%;
    aspect-ratio: 16 / 11;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 36%, rgba(247, 245, 240, 0.76) 74%, var(--bg) 100%);
}

.section-spacing {
    padding: 120px 0;
}

.section-intro {
    display: grid;
    gap: 16px;
    max-width: 720px;
    margin-bottom: 56px;
}

.mode-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.mode-item {
    position: relative;
    min-height: 280px;
    padding-top: 24px;
}

.mode-number {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--border);
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 0.8;
    transition: opacity 300ms var(--ease-editorial);
}

.mode-content {
    position: relative;
    z-index: 1;
    padding-top: 112px;
}

.mode-content h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-size: 24px;
}

.mode-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease-editorial);
}

.mode-content p {
    margin: 16px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

.mode-item:hover .mode-number,
.mode-item:focus-visible .mode-number {
    opacity: 0.56;
}

.mode-item:hover .mode-content h3::after,
.mode-item:focus-visible .mode-content h3::after {
    transform: scaleX(1);
}

.stats-section {
    padding-bottom: 120px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.stat-item {
    padding: 0 32px;
}

.stat-item + .stat-item {
    border-left: 1px solid var(--border);
}

.stat-value {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 0.9;
}

.stat-caption {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.studio-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0 132px;
    background: var(--studio-dark);
    color: var(--bg);
}

.studio-section h2,
.studio-section h3 {
    color: var(--bg);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 48px;
    align-items: end;
}

.section-copy--light,
.panel-copy,
.studio-helper,
.result-placeholder,
.preview-guide {
    color: var(--studio-muted);
}

.studio-stage {
    display: grid;
    justify-items: center;
    gap: 32px;
    margin-top: 72px;
}

.preview-shell {
    position: relative;
    overflow: hidden;
    width: min(100%, 480px);
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(247, 245, 240, 0.08);
    background: #242320;
    transition: border-color 300ms var(--ease-editorial);
}

.preview-shell[data-mode="postcard"] {
    aspect-ratio: 16 / 11;
}

.preview-shell.is-flashing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(247, 245, 240, 0.6);
    animation: shutter-flash 120ms var(--ease-editorial);
}

#camera-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    transition:
        opacity 300ms var(--ease-editorial),
        transform 300ms var(--ease-editorial),
        filter 300ms var(--ease-editorial);
}

#camera-video.is-active {
    opacity: 1;
}

#camera-video.is-mirrored {
    transform: scaleX(-1);
}

.preview-hud {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(247, 245, 240, 0.35);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.camera-status {
    max-width: min(65%, 240px);
}

.camera-status[data-state="success"] {
    color: rgba(200, 169, 126, 0.92);
}

.camera-status[data-state="error"] {
    color: rgba(230, 176, 156, 0.9);
}

.mode-summary {
    text-align: right;
}

.preview-guides {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.preview-guide {
    max-width: 72%;
    font-size: 12px;
}

.countdown-badge {
    color: var(--bg);
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 0.8;
}

.studio-action-bar,
.studio-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.ghost-button,
.mobile-bar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--text-secondary);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition:
        background 300ms var(--ease-editorial),
        border-color 300ms var(--ease-editorial),
        color 300ms var(--ease-editorial),
        opacity 300ms var(--ease-editorial);
}

.ghost-button:hover,
.ghost-button:focus-visible,
.mobile-bar-button:hover,
.mobile-bar-button:focus-visible {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}

.studio-section .ghost-button {
    border-color: rgba(247, 245, 240, 0.28);
    color: var(--bg);
}

.studio-section .ghost-button:hover,
.studio-section .ghost-button:focus-visible {
    border-color: var(--bg);
    background: var(--bg);
    color: var(--studio-dark);
}

.ghost-button.is-disabled,
.ghost-button[aria-disabled="true"],
.ghost-button:disabled,
.mobile-bar-button:disabled {
    pointer-events: none;
    opacity: 0.32;
}

.icon-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.35;
}

.studio-switches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 40px;
}

.text-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 0;
    padding: 0;
    border: 0;
}

.text-toggle legend {
    padding: 0;
    color: rgba(247, 245, 240, 0.48);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.text-toggle label,
.mode-tab,
.filter-option {
    position: relative;
}

.text-toggle input,
.mode-tab input,
.filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.text-toggle span,
.mode-tab span {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: rgba(247, 245, 240, 0.54);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 300ms var(--ease-editorial);
}

.text-toggle span::after,
.mode-tab span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease-editorial);
}

.text-toggle input:checked + span,
.mode-tab input:checked + span {
    color: var(--bg);
}

.text-toggle input:checked + span::after,
.mode-tab input:checked + span::after {
    transform: scaleX(1);
}

.studio-helper {
    max-width: 620px;
    text-align: center;
}

.studio-console {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    margin-top: 80px;
    align-items: start;
}

.studio-panel {
    padding: 32px;
    border: 1px solid rgba(247, 245, 240, 0.08);
    background: rgba(247, 245, 240, 0.02);
}

.panel-heading,
.studio-settings__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.panel-copy {
    max-width: 320px;
    font-size: 13px;
}

.result-shell {
    display: grid;
    place-items: center;
    min-height: 560px;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid rgba(247, 245, 240, 0.08);
    background: rgba(247, 245, 240, 0.02);
}

.result-shell canvas {
    width: 100%;
    height: auto;
    border: 1px solid rgba(247, 245, 240, 0.06);
}

.result-placeholder {
    max-width: 360px;
    text-align: center;
}

.studio-result-actions {
    justify-content: flex-start;
    margin-top: 24px;
}

.studio-settings__head {
    margin-bottom: 32px;
}

.drawer-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--bg);
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
}

.settings-block + .settings-block {
    margin-top: 28px;
}

.panel-label {
    margin: 0 0 18px;
    color: rgba(247, 245, 240, 0.48);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.filter-card {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.filter-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(247, 245, 240, 0.08);
    background: rgba(247, 245, 240, 0.04);
    transition: border-color 300ms var(--ease-editorial);
}

.filter-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 32%, #f0d7bb 0 18%, transparent 18.5%),
        radial-gradient(circle at 54% 38%, rgba(146, 112, 84, 0.34) 0 7%, transparent 7.5%),
        linear-gradient(180deg, #d0b493 0%, #b99573 44%, #85654d 100%);
}

.filter-preview--paper::before {
    filter: saturate(1.02) sepia(0.08) brightness(1.04);
}

.filter-preview--mono::before {
    filter: grayscale(1) contrast(1.08) brightness(1.02);
}

.filter-preview--sepia::before {
    filter: sepia(0.3) saturate(0.95) contrast(1.06) brightness(1.03);
}

.filter-preview--noir::before {
    filter: grayscale(0.4) sepia(0.18) contrast(1.16) brightness(0.94);
}

.filter-name {
    color: rgba(247, 245, 240, 0.62);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.filter-option input:checked + .filter-card .filter-preview {
    border-color: var(--accent);
}

.filter-option input:checked + .filter-card .filter-name {
    color: var(--bg);
}

.advanced-settings {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(247, 245, 240, 0.08);
}

.advanced-settings summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    cursor: pointer;
    color: rgba(247, 245, 240, 0.72);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.advanced-settings summary::-webkit-details-marker {
    display: none;
}

.advanced-settings summary span {
    transition: transform 300ms var(--ease-editorial);
}

.advanced-settings[open] summary span {
    transform: rotate(180deg);
}

.advanced-settings__body {
    display: grid;
    gap: 22px;
    padding-top: 24px;
}

.line-field {
    position: relative;
    display: block;
    min-height: 58px;
    padding-top: 18px;
    border-bottom: 1px solid rgba(247, 245, 240, 0.16);
}

.line-field:focus-within {
    border-color: var(--accent);
}

.line-field input {
    width: 100%;
    padding: 12px 0 10px;
    border: 0;
    background: transparent;
    color: var(--bg);
    font-size: 15px;
    font-weight: 300;
    outline: none;
}

.line-field span {
    position: absolute;
    left: 0;
    bottom: 12px;
    color: rgba(247, 245, 240, 0.44);
    transition:
        color 300ms var(--ease-editorial),
        font-size 300ms var(--ease-editorial),
        transform 300ms var(--ease-editorial);
}

.line-field input:focus + span,
.line-field input:not(:placeholder-shown) + span,
.line-field--color span,
.line-field--file span {
    transform: translateY(-22px);
    color: rgba(247, 245, 240, 0.62);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.color-input {
    height: 24px;
    padding: 0;
    appearance: none;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch,
.color-input::-moz-color-swatch {
    border: 1px solid rgba(247, 245, 240, 0.18);
    border-radius: 2px;
}

.file-input {
    color: rgba(247, 245, 240, 0.72);
}

.file-input::file-selector-button {
    margin-right: 16px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(247, 245, 240, 0.18);
    background: transparent;
    color: var(--bg);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.line-check {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(247, 245, 240, 0.74);
    font-size: 14px;
}

.line-check input {
    margin: 0;
    accent-color: var(--accent);
}

.studio-settings-scrim,
.studio-mobile-bar {
    display: none;
}

.gallery-section {
    padding-bottom: 120px;
}

.session-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
}

.empty-gallery {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.session-item {
    display: block;
}

.session-thumb {
    position: relative;
    overflow: hidden;
    background: var(--hover);
}

.session-item[data-mode="film"] .session-thumb {
    aspect-ratio: 3 / 5;
}

.session-item[data-mode="postcard"] .session-thumb {
    aspect-ratio: 16 / 11;
}

.session-item[data-mode="polaroid"] .session-thumb,
.session-item[data-mode="editorial"] .session-thumb {
    aspect-ratio: 4 / 5;
}

.session-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 300ms var(--ease-editorial);
}

.session-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(26, 26, 24, 0.24);
    opacity: 0;
    transition: opacity 300ms var(--ease-editorial);
}

.session-overlay svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--bg);
    stroke-width: 1.25;
}

.session-item:hover .session-overlay,
.session-item:focus-visible .session-overlay {
    opacity: 1;
}

.session-item:hover .session-thumb img,
.session-item:focus-visible .session-thumb img {
    filter: brightness(0.84);
}

.session-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 13px;
}

.session-meta strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 24px;
    font-style: italic;
    font-weight: 300;
}

.session-meta span {
    align-self: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.page-hero {
    padding: 176px 0 72px;
    border-bottom: 1px solid var(--border);
}

.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 48px;
    align-items: end;
}

.page-hero h1 {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    font-style: italic;
}

.page-lead {
    max-width: 420px;
}

.page-section {
    padding: 88px 0 120px;
}

.editorial-stack {
    display: grid;
    gap: 48px;
}

.editorial-block {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.page-index {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.editorial-block__body {
    display: grid;
    gap: 16px;
}

.editorial-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.editorial-list--ordered {
    padding-left: 22px;
}

.editorial-block__body a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.site-footer {
    padding: 80px 0;
    border-top: 1px solid rgba(247, 245, 240, 0.06);
    background: var(--studio-dark);
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: start;
}

.footer-brand p {
    max-width: 420px;
    margin-top: 16px;
    color: rgba(247, 245, 240, 0.48);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 12px 28px;
    justify-content: end;
}

.footer-links a {
    color: rgba(247, 245, 240, 0.48);
    transition: color 300ms var(--ease-editorial);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
    color: var(--bg);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
}

@keyframes shutter-flash {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 1100px) {
    .site-shell {
        width: min(var(--max-width), calc(100% - 120px));
    }

    .hero-grid,
    .section-head,
    .studio-console,
    .page-hero__grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 72px;
    }

    .mode-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 32px;
    }

    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 0;
    }

    .stat-item:nth-child(odd) {
        padding-left: 0;
    }

    .stat-item:nth-child(3) {
        border-left: 0;
    }

    .footer-links {
        justify-content: start;
    }
}

@media (max-width: 767px) {
    .site-shell {
        width: min(var(--max-width), calc(100% - 48px));
    }

    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .mobile-drawer {
        position: absolute;
        inset: 100% 0 auto 0;
        display: block;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--border);
        background: rgba(247, 245, 240, 0.92);
        backdrop-filter: blur(12px);
    }

    .hero-section {
        min-height: auto;
        padding: 120px 0 64px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 36px;
    }

    .hero-art {
        min-height: 420px;
    }

    .hero-collage {
        height: 420px;
    }

    .mode-rail {
        gap: 40px 24px;
    }

    .mode-item {
        min-height: 220px;
    }

    .mode-number {
        font-size: 72px;
    }

    .mode-content {
        padding-top: 72px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 0 16px;
    }

    .studio-section {
        padding: 104px 0 96px;
    }

    .studio-stage {
        gap: 24px;
    }

    .studio-console {
        gap: 32px;
        margin-top: 48px;
    }

    .studio-panel {
        padding: 24px;
    }

    .studio-panel--settings {
        position: fixed;
        left: 24px;
        right: 24px;
        bottom: 72px;
        z-index: 72;
        max-height: min(72vh, 720px);
        overflow: auto;
        transform: translateY(calc(100% + 32px));
        opacity: 0;
        pointer-events: none;
        transition:
            transform 300ms var(--ease-editorial),
            opacity 300ms var(--ease-editorial);
        background: rgba(28, 27, 25, 0.98);
    }

    body.is-settings-open .studio-panel--settings {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .drawer-close {
        display: inline-flex;
    }

    .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .studio-settings-scrim {
        position: fixed;
        inset: 0;
        z-index: 68;
        border: 0;
        background: rgba(26, 26, 24, 0.24);
        opacity: 0;
        pointer-events: none;
        transition: opacity 300ms var(--ease-editorial);
    }

    body.is-settings-open .studio-settings-scrim {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .studio-mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 48px;
        border-top: 1px solid var(--border);
        background: rgba(247, 245, 240, 0.94);
        backdrop-filter: blur(12px);
    }

    .mobile-bar-button {
        min-height: 48px;
        padding: 0;
        border: 0;
        border-right: 1px solid var(--border);
        border-radius: 0;
        background: transparent;
        color: var(--text);
    }

    .mobile-bar-button:last-child {
        border-right: 0;
    }

    .mobile-bar-button--more {
        font-size: 24px;
        letter-spacing: 0;
        line-height: 1;
    }

    .page-hero {
        padding: 136px 0 56px;
    }

    .editorial-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .session-gallery {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, max-content);
        justify-content: start;
    }

    body.is-menu-open,
    body.is-settings-open {
        overflow: hidden;
    }
}

@media (max-width: 560px) {
    .mode-rail,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        gap: 24px;
    }

    .stat-item,
    .stat-item + .stat-item {
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .stat-item:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .hero-actions,
    .studio-action-bar,
    .studio-result-actions {
        width: 100%;
        flex-direction: column;
    }

    .ghost-button {
        width: 100%;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .js body,
    .js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* App refresh */

:root {
    --bg: #f5f1ea;
    --surface: rgba(255, 251, 246, 0.84);
    --surface-strong: #fffaf4;
    --surface-soft: #fff4ea;
    --text: #211d1a;
    --text-secondary: #6f665e;
    --accent: #ff936a;
    --accent-strong: #ff7440;
    --accent-soft: #ffe3d6;
    --border: rgba(89, 67, 52, 0.12);
    --hover: #fff0e7;
    --studio-dark: #1f1b18;
    --studio-text: rgba(255, 248, 241, 0.9);
    --studio-muted: rgba(255, 248, 241, 0.6);
    --font-display: "Noto Sans KR", "DM Sans", sans-serif;
    --font-ui: "Noto Sans KR", "DM Sans", sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.7;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
}

h2 {
    font-size: clamp(2rem, 3vw, 2.7rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.eyebrow {
    font-size: 12px;
}

.page-lead,
.editorial-block__body p,
.editorial-block__body li {
    font-size: 16px;
}

body.home-page {
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 147, 106, 0.16), transparent 22%),
        radial-gradient(circle at 88% 14%, rgba(255, 190, 140, 0.16), transparent 26%),
        linear-gradient(180deg, #faf6ef 0%, #f6f1ea 46%, #f2ebe2 100%);
}

.home-page .site-header {
    background: rgba(245, 241, 234, 0.35);
}

.home-page .site-header__row {
    min-height: 88px;
}

.home-page .brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.app-main {
    padding: 124px 0 0;
}

.app-section {
    position: relative;
    padding-bottom: 64px;
}

.app-shell {
    position: relative;
    display: grid;
    gap: 24px;
}

.app-shell::before,
.app-shell::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(14px);
    animation: float-orb 10s ease-in-out infinite;
}

.app-shell::before {
    top: 56px;
    right: -28px;
    width: 160px;
    height: 160px;
    background: rgba(255, 147, 106, 0.18);
}

.app-shell::after {
    left: -22px;
    bottom: 120px;
    width: 128px;
    height: 128px;
    background: rgba(255, 198, 156, 0.18);
    animation-duration: 12s;
    animation-delay: -3s;
}

.app-surface,
.app-preview-panel,
.app-control-panel,
.app-output-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow:
        0 14px 48px rgba(45, 31, 17, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(20px);
}

.app-surface--intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    padding: 36px;
}

.app-surface--intro::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 147, 106, 0.18), transparent 68%);
    animation: pulse-glow 8s ease-in-out infinite;
}

.app-copy-block {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    align-content: center;
}

.app-copy {
    max-width: 700px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.app-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 116, 64, 0.16);
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition:
        transform 300ms var(--ease-editorial),
        background 300ms var(--ease-editorial),
        border-color 300ms var(--ease-editorial),
        box-shadow 300ms var(--ease-editorial);
}

.quick-pill:hover,
.quick-pill:focus-visible {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(45, 31, 17, 0.08);
}

.quick-pill--accent {
    border-color: rgba(255, 116, 64, 0.22);
    background: linear-gradient(135deg, #ffb18d, #ff8d61);
    color: #fffaf4;
}

.app-flow {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.flow-card {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 116, 64, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition:
        transform 300ms var(--ease-editorial),
        box-shadow 300ms var(--ease-editorial),
        border-color 300ms var(--ease-editorial);
}

.flow-card:nth-child(1) {
    animation: float-card 5.8s ease-in-out infinite;
}

.flow-card:nth-child(2) {
    animation: float-card 6.2s ease-in-out -1.4s infinite;
}

.flow-card:nth-child(3) {
    animation: float-card 6.8s ease-in-out -2.8s infinite;
}

.flow-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 116, 64, 0.24);
    box-shadow: 0 14px 28px rgba(45, 31, 17, 0.08);
}

.flow-step {
    color: var(--accent-strong);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.flow-card strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.flow-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.app-workspace {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    gap: 24px;
    align-items: start;
}

.app-preview-panel,
.app-control-panel {
    padding: 28px;
}

.app-preview-stage {
    position: relative;
    padding: 18px;
    border-radius: 30px;
    background:
        linear-gradient(160deg, rgba(47, 34, 26, 0.92), rgba(20, 16, 14, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(28, 18, 12, 0.18);
}

.app-preview-stage::before {
    content: "";
    position: absolute;
    inset: -10px auto auto 18%;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 147, 106, 0.24), transparent 70%);
    filter: blur(16px);
    animation: pulse-glow 7s ease-in-out infinite;
}

.preview-shell {
    width: 100%;
    max-width: none;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.preview-shell[data-mode="postcard"] {
    aspect-ratio: 16 / 10.6;
}

.preview-hud,
.preview-guides {
    z-index: 2;
}

.camera-status,
.mode-summary {
    font-size: 11px;
}

.preview-guide {
    max-width: 68%;
    font-size: 13px;
    color: rgba(255, 248, 241, 0.74);
}

.countdown-badge {
    font-size: 64px;
}

.app-primary-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.app-primary-actions .ghost-button,
.output-actions .ghost-button,
.output-actions .ghost-button[href] {
    position: relative;
    overflow: hidden;
    min-height: 54px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

.app-primary-actions .ghost-button::before,
.output-actions .ghost-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 45%, transparent 100%);
    transform: translateX(-115%);
    transition: transform 450ms var(--ease-editorial);
}

.app-primary-actions .ghost-button:hover::before,
.output-actions .ghost-button:hover::before,
.app-primary-actions .ghost-button:focus-visible::before,
.output-actions .ghost-button:focus-visible::before {
    transform: translateX(115%);
}

.app-primary-actions .ghost-button:first-child {
    background: linear-gradient(135deg, #ffb18d, #ff8a5d);
    border-color: transparent;
    color: #fffaf4;
}

.app-primary-actions .ghost-button:nth-child(2) {
    background: #211d1a;
    border-color: #211d1a;
    color: #fffaf4;
}

.app-primary-actions .ghost-button:nth-child(3) {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(89, 67, 52, 0.08);
    color: var(--text);
}

.app-mini-settings {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.text-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.text-toggle legend {
    width: 100%;
    margin-bottom: 2px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    font-family: var(--font-ui);
}

.text-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(89, 67, 52, 0.1);
    background: rgba(255, 255, 255, 0.68);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    transition:
        transform 300ms var(--ease-editorial),
        background 300ms var(--ease-editorial),
        color 300ms var(--ease-editorial),
        border-color 300ms var(--ease-editorial);
}

.text-toggle span::after {
    display: none;
}

.text-toggle input:checked + span {
    background: var(--accent-soft);
    border-color: rgba(255, 116, 64, 0.28);
    color: var(--text);
    transform: translateY(-2px);
}

.studio-helper {
    margin-top: 18px;
    font-size: 14px;
}

.app-control-panel {
    display: grid;
    gap: 24px;
    background:
        linear-gradient(180deg, rgba(255, 251, 246, 0.94), rgba(255, 246, 238, 0.92));
}

.app-control-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.app-control-panel__header h2 {
    max-width: 12ch;
    margin-top: 8px;
}

.settings-headline {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.panel-label {
    margin: 0;
    color: var(--accent-strong);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.panel-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.filter-card {
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(89, 67, 52, 0.08);
    transition:
        transform 300ms var(--ease-editorial),
        border-color 300ms var(--ease-editorial),
        box-shadow 300ms var(--ease-editorial);
}

.filter-option:hover .filter-card,
.filter-option:focus-within .filter-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(45, 31, 17, 0.08);
}

.filter-preview {
    border-radius: 16px;
    border-color: rgba(89, 67, 52, 0.08);
}

.filter-name {
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    font-family: var(--font-ui);
}

.filter-option input:checked + .filter-card {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 116, 64, 0.26);
    box-shadow: 0 16px 28px rgba(255, 116, 64, 0.12);
}

.filter-option input:checked + .filter-card .filter-preview {
    border-color: var(--accent-strong);
}

.mode-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mode-card-option {
    position: relative;
}

.mode-card-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-card-ui {
    display: block;
    min-height: 128px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(89, 67, 52, 0.08);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        transform 300ms var(--ease-editorial),
        border-color 300ms var(--ease-editorial),
        box-shadow 300ms var(--ease-editorial),
        background 300ms var(--ease-editorial);
}

.mode-card-ui strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.mode-card-ui small {
    display: block;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.mode-card-option:hover .mode-card-ui,
.mode-card-option:focus-within .mode-card-ui {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(45, 31, 17, 0.08);
}

.mode-card-option input:checked + .mode-card-ui {
    background: linear-gradient(180deg, rgba(255, 244, 235, 0.98), rgba(255, 235, 222, 0.9));
    border-color: rgba(255, 116, 64, 0.24);
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(255, 116, 64, 0.12);
}

.advanced-settings {
    margin-top: 0;
    padding-top: 22px;
    border-top: 1px solid rgba(89, 67, 52, 0.08);
}

.advanced-settings summary {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

.line-field {
    border-bottom-color: rgba(89, 67, 52, 0.14);
}

.line-field input {
    color: var(--text);
    font-size: 16px;
}

.line-field span {
    color: rgba(111, 102, 94, 0.76);
}

.line-field input:focus + span,
.line-field input:not(:placeholder-shown) + span,
.line-field--color span,
.line-field--file span {
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-ui);
}

.line-check {
    color: var(--text);
    font-size: 15px;
}

.app-output {
    position: relative;
    z-index: 1;
}

.app-output-card {
    padding: 28px;
}

.output-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

.output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.output-actions .ghost-button {
    min-width: 120px;
}

.result-shell {
    min-height: 460px;
    margin-top: 20px;
    border-radius: 24px;
    border: 1px solid rgba(89, 67, 52, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 147, 106, 0.08), transparent 32%),
        rgba(255, 255, 255, 0.76);
}

.result-shell canvas {
    border-radius: 20px;
    border: 1px solid rgba(89, 67, 52, 0.08);
}

.app-gallery {
    padding: 44px 0 120px;
}

.section-intro--compact {
    margin-bottom: 28px;
}

.section-intro--compact h2 {
    font-size: 34px;
}

.session-gallery {
    gap: 28px 20px;
}

.session-thumb {
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(45, 31, 17, 0.08);
}

.session-overlay {
    background: linear-gradient(180deg, rgba(29, 21, 18, 0.06), rgba(29, 21, 18, 0.48));
}

.studio-mobile-bar {
    box-shadow: 0 -8px 30px rgba(45, 31, 17, 0.08);
}

.mobile-bar-button {
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
}

.site-footer {
    margin-top: 24px;
}

@keyframes float-orb {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -18px, 0) scale(1.06);
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes float-card {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 1100px) {
    .app-surface--intro,
    .app-workspace {
        grid-template-columns: 1fr;
    }

    .app-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .app-main {
        padding-top: 108px;
    }

    .app-section {
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }

    .app-surface--intro,
    .app-preview-panel,
    .app-control-panel,
    .app-output-card {
        padding: 20px;
        border-radius: 24px;
    }

    .app-surface--intro {
        gap: 20px;
    }

    .app-copy-block h1 {
        font-size: clamp(2.6rem, 10vw, 3.7rem);
        line-height: 1;
    }

    .app-copy {
        font-size: 16px;
    }

    .app-flow {
        grid-template-columns: 1fr;
    }

    .flow-card strong {
        font-size: 20px;
    }

    .app-primary-actions {
        grid-template-columns: 1fr;
    }

    .app-preview-stage {
        padding: 14px;
    }

    .app-mini-settings {
        gap: 12px;
    }

    .text-toggle span {
        min-height: 40px;
        font-size: 13px;
    }

    .preview-hud {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .camera-status {
        max-width: none;
        flex: 1 1 100%;
    }

    .mode-summary {
        width: 100%;
        text-align: left;
    }

    .preview-guides {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .preview-guide {
        max-width: none;
        font-size: 12px;
    }

    .countdown-badge {
        align-self: flex-end;
        font-size: 48px;
    }

    .app-control-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(68px + env(safe-area-inset-bottom));
        z-index: 72;
        max-height: min(76vh, 760px);
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateY(calc(100% + 28px));
        opacity: 0;
        pointer-events: none;
        transition:
            transform 300ms var(--ease-editorial),
            opacity 300ms var(--ease-editorial);
    }

    .app-control-panel__header h2 {
        max-width: none;
    }

    body.is-settings-open .app-control-panel {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .drawer-close {
        display: inline-flex;
    }

    .filter-grid,
    .mode-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .output-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .output-actions {
        width: 100%;
        flex-direction: column;
    }

    .output-actions .ghost-button {
        width: 100%;
    }

    .result-shell {
        min-height: 320px;
    }

    .studio-mobile-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bar-button {
        min-height: 52px;
    }
}

@media (max-width: 560px) {
    .site-shell {
        width: min(var(--max-width), calc(100% - 32px));
    }

    .app-main {
        padding-top: 100px;
    }

    .app-surface--intro,
    .app-preview-panel,
    .app-control-panel,
    .app-output-card {
        padding: 18px;
    }

    .app-copy-block h1 {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    .app-top-actions .quick-pill {
        width: 100%;
    }

    .preview-hud,
    .preview-guides {
        left: 12px;
        right: 12px;
    }

    .camera-status,
    .mode-summary {
        font-size: 10px;
    }

    .countdown-badge {
        font-size: 40px;
    }

    .filter-grid,
    .mode-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mode-card-ui {
        min-height: 112px;
        padding: 16px;
    }

    .mode-card-ui strong {
        font-size: 19px;
    }

    .section-intro--compact h2 {
        font-size: 28px;
    }

    .mobile-bar-button {
        font-size: 14px;
    }
}
