:root {
    --ink: #211f1a;
    --charcoal: #181713;
    --paper: #f3efe7;
    --cream: #e6ddce;
    --surface: #faf8f3;
    --sage: #67705d;
    --rose: #9b6e65;
    --gold: #aa8a57;
    --muted: #716c62;
    --line: rgba(33, 31, 26, .18);
    --light-line: rgba(255, 255, 255, .18);
    --danger: #9a433c;
    --success: #526b50;
    --serif: Georgia, "Times New Roman", "Noto Serif KR", serif;
    --sans: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    --shadow: 0 24px 70px rgba(30, 24, 18, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
html.js body { opacity: 0; transform: translateY(4px); }
html.js.page-is-ready body { opacity: 1; transform: none; transition: opacity .42s ease, transform .42s ease; }
html.js.page-is-leaving body { opacity: 0; transform: translateY(-3px); transition: opacity .26s ease, transform .26s ease; pointer-events: none; }
body, button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.site-main { min-height: 70vh; }
.eyebrow { display: inline-block; color: var(--rose); font-size: .68rem; font-weight: 750; letter-spacing: .24em; line-height: 1.4; }
.eyebrow.light { color: #d3c4ae; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 52px; padding: .72rem 1.35rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: .77rem; font-weight: 750; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: .25s ease; }
.button:hover { background: var(--ink); color: white; }
.button.dark { background: var(--charcoal); color: white; }
.button.dark:hover { background: var(--rose); border-color: var(--rose); }
.button.light { border-color: #f4eee5; background: #f4eee5; color: var(--ink); }
.button.light:hover { border-color: white; background: transparent; color: white; }
.button.outline { background: transparent; }
.button.full { width: 100%; }
.text-link { display: inline-flex; gap: .6rem; padding-bottom: .2rem; border-bottom: 1px solid currentColor; font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.text-link.light { color: white; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(243, 239, 231, .95); backdrop-filter: blur(14px); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(1380px, calc(100% - 56px)); min-height: 84px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .8rem; text-decoration: none; }
.brand-flourish { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--serif); font-size: 1.45rem; font-style: italic; }
.brand-flourish.has-image { flex: 0 0 auto; border: 0; border-radius: 0; overflow: hidden; }
.brand-flourish.has-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-words { display: flex; flex-direction: column; line-height: 1.15; }
.brand-words strong { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .14em; }
.brand-words small { margin-top: .25rem; color: var(--muted); font-size: .52rem; letter-spacing: .18em; }
.primary-nav { display: flex; align-items: center; gap: 2.6rem; }
.primary-nav a { position: relative; padding: .45rem 0; color: #5f5a51; font-family: var(--serif); font-size: .95rem; font-style: italic; text-decoration: none; }
.primary-nav a::after { position: absolute; right: 50%; bottom: 0; left: 50%; height: 1px; background: var(--rose); content: ""; transition: .2s ease; }
.primary-nav a:hover::after, .primary-nav a.active::after { right: 0; left: 0; }
.primary-nav a.active { color: var(--ink); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 1rem; }
.admin-link { color: var(--ink); font-size: .62rem; font-weight: 800; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.admin-link.muted { color: #908a80; }
.language-menu { position: relative; }
.language-menu summary { display: flex; align-items: center; gap: .45rem; padding: .4rem .2rem; list-style: none; color: var(--ink); font-size: .62rem; font-weight: 800; letter-spacing: .13em; cursor: pointer; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.language-menu[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.language-menu > div { position: absolute; z-index: 20; top: calc(100% + 13px); right: 0; display: grid; min-width: 145px; padding: .55rem; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.language-menu a { padding: .55rem .7rem; color: var(--muted); font-family: var(--serif); font-size: .78rem; text-decoration: none; white-space: nowrap; }
.language-menu a:hover, .language-menu a.active { background: var(--cream); color: var(--ink); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { display: grid; gap: 6px; width: 34px; padding: 8px 4px; list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; height: 1px; background: var(--ink); }
.mobile-menu summary::after { color: var(--ink); content: "MENU"; font-size: .48rem; font-weight: 800; letter-spacing: .12em; }
.mobile-menu nav { position: absolute; top: 48px; right: 0; width: 210px; padding: 1rem; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.mobile-menu nav a { display: block; padding: .65rem; font-family: var(--serif); text-decoration: none; }

/* Home */
.home-hero { position: relative; display: flex; align-items: center; min-height: min(820px, calc(100vh - 84px)); background-color: #332c26; background-position: center; background-size: cover; color: white; overflow: hidden; isolation: isolate; }
.home-hero::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(17,15,12,.84) 0%, rgba(17,15,12,.48) 46%, rgba(17,15,12,.06) 78%); content: ""; pointer-events: none; }
.home-hero-media, .home-hero-slide { position: absolute; inset: 0; }
.home-hero-media { z-index: 0; background: #332c26; }
.home-hero-slide { visibility: hidden; opacity: 0; background: #332c26; transition: visibility 0s linear 1s, opacity 1s ease; }
.home-hero-slide.is-active { visibility: visible; opacity: 1; transition-delay: 0s; }
.home-hero-image, .home-hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero-slide.is-active .home-hero-image { animation: home-hero-zoom-out 6s linear both; }
@keyframes home-hero-zoom-out { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; width: min(1380px, calc(100% - 80px)); margin: 0 auto; padding: 7rem 0; }
.hero-content h1 { max-width: 720px; margin: 1.1rem 0 1.7rem; font-family: var(--serif); font-size: clamp(3.7rem, 7vw, 7.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .93; }
.hero-content h1 span { display: block; }
.hero-content h1 span:last-child { margin-left: clamp(1rem, 6vw, 7rem); font-style: italic; }
.hero-content p { max-width: 450px; margin-bottom: 2.3rem; color: #e5ddd2; font-family: var(--serif); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 2rem; }
.hero-ornament { position: absolute; z-index: 2; right: -2vw; bottom: -16vw; color: rgba(255,255,255,.04); font-family: var(--serif); font-size: 52vw; font-style: italic; line-height: .8; pointer-events: none; }
.hero-carousel-controls { position: absolute; z-index: 3; bottom: 2.35rem; left: max(40px, calc((100% - 1380px) / 2)); display: flex; align-items: center; gap: .6rem; }
.hero-carousel-controls button { display: grid; padding: 0; border: 0; place-items: center; background: transparent; color: white; cursor: pointer; }
.hero-carousel-arrow, .hero-carousel-pause { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.42) !important; border-radius: 50% !important; font-size: .72rem; transition: border-color .2s ease, background-color .2s ease; }
.hero-carousel-arrow:hover, .hero-carousel-pause:hover { border-color: white !important; background: rgba(255,255,255,.12); }
.hero-carousel-dots { display: flex; align-items: center; gap: .35rem; padding: 0 .25rem; }
.hero-carousel-dots button { width: 25px; height: 20px; }
.hero-carousel-dots button span { width: 100%; height: 1px; background: rgba(255,255,255,.38); transition: height .2s ease, background-color .2s ease; }
.hero-carousel-dots button.is-active span { height: 2px; background: white; }
.hero-carousel-pause span { position: relative; width: 8px; height: 10px; border-right: 2px solid currentColor; border-left: 2px solid currentColor; }
.hero-carousel-pause.is-paused span { width: 0; height: 0; border-top: 5px solid transparent; border-right: 0; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.hero-scroll { position: absolute; z-index: 2; right: 2.2rem; bottom: 2.5rem; display: flex; align-items: center; gap: .8rem; color: #ddd2c5; font-size: .52rem; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero-scroll span { width: 1px; height: 48px; background: #ddd2c5; }
.marquee { overflow: hidden; padding: 1rem 0; border-bottom: 1px solid var(--line); background: var(--cream); color: #4b473e; font-family: var(--serif); font-size: .78rem; letter-spacing: .2em; white-space: nowrap; }
.marquee div { width: max-content; animation: marquee 28s linear infinite; }
.marquee i { margin: 0 2.2rem; color: var(--rose); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
.intro-section { display: grid; grid-template-columns: .22fr 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; width: min(1220px, calc(100% - 56px)); margin: 0 auto; padding: 8rem 0; }
.intro-index { color: var(--rose); font-family: var(--serif); font-size: 1rem; font-style: italic; }
.intro-section h2 { max-width: 520px; margin: .8rem 0 0; font-family: var(--serif); font-size: clamp(2.5rem, 4.6vw, 4.8rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.03; }
.intro-section > div:last-child { padding-top: 2rem; }
.intro-section p { max-width: 500px; margin-bottom: 2rem; color: var(--muted); font-size: .95rem; }
.collection-preview, .collection-page { width: min(1380px, calc(100% - 56px)); margin: 0 auto; padding: 7rem 0 9rem; }
.collection-preview { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 3.2rem; }
.section-heading h2 { margin: .75rem 0 0; font-family: var(--serif); font-size: clamp(2.5rem, 4.5vw, 4.6rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.section-heading h2 em { color: var(--rose); font-weight: 400; }
.circle-link { display: grid; place-items: center; width: 108px; height: 108px; border: 1px solid var(--line); border-radius: 50%; font-size: .62rem; font-weight: 800; letter-spacing: .12em; line-height: 1.35; text-align: center; text-decoration: none; text-transform: uppercase; transition: .25s ease; }
.circle-link:hover { border-color: var(--ink); background: var(--ink); color: white; transform: rotate(8deg); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.3vw, 2.5rem); }
.product-card a { display: block; text-decoration: none; }
.product-image-wrap { position: relative; aspect-ratio: 4 / 5; background: #ddd4c7; overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-card:hover img { transform: scale(1.045); }
.product-number { position: absolute; top: 1rem; left: 1rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(245,240,232,.9); font-family: var(--serif); font-size: .72rem; font-style: italic; }
.product-view { position: absolute; right: 1.1rem; bottom: 1.1rem; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(27,25,21,.9); color: white; font-size: .56rem; font-weight: 800; letter-spacing: .1em; line-height: 1.25; text-align: center; text-transform: uppercase; transform: translateY(85px); transition: .35s ease; }
.product-card:hover .product-view { transform: translateY(0); }
.product-card-copy { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.25rem .1rem; border-bottom: 1px solid var(--line); }
.product-card-copy h2 { margin: 0 0 .2rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; font-style: italic; }
.product-card-copy p { margin: 0; color: var(--muted); font-size: .75rem; }
.process-section { padding: 8rem max(28px, calc((100% - 1220px) / 2)); background: var(--charcoal); color: #eee7dc; }
.process-heading { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; padding-bottom: 3rem; border-bottom: 1px solid var(--light-line); }
.process-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 4.8rem); font-weight: 400; letter-spacing: -.04em; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.process-grid article { min-height: 330px; padding: 3rem 2.5rem 2rem 0; border-right: 1px solid var(--light-line); }
.process-grid article + article { padding-left: 2.5rem; }
.process-grid article:last-child { border-right: 0; }
.process-grid article > span { color: #9f8c72; font-family: var(--serif); font-style: italic; }
.process-grid h3 { margin: 2.7rem 0 .15rem; font-family: var(--serif); font-size: 2.8rem; font-weight: 400; font-style: italic; }
.process-grid strong { display: block; margin-bottom: 1.2rem; color: #c8bcae; font-size: .7rem; letter-spacing: .14em; }
.process-grid p { max-width: 310px; color: #9f9a91; font-size: .85rem; }
.inquiry-banner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 5rem; align-items: end; width: min(1220px, calc(100% - 56px)); margin: 0 auto; padding: 9rem 0; overflow: hidden; }
.inquiry-banner h2 { margin: .8rem 0 0; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.5rem); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.inquiry-banner > div:last-child { position: relative; z-index: 1; padding-bottom: .5rem; }
.inquiry-banner p { margin-bottom: 1.6rem; color: var(--muted); }
.script-word { position: absolute; right: 1rem; top: .2rem; color: rgba(155,110,101,.1); font-family: var(--serif); font-size: 12rem; font-style: italic; transform: rotate(-9deg); }

/* Shared public pages */
.page-hero { width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 7rem 0 5rem; text-align: center; }
.page-hero.compact { text-align: left; }
.page-hero h1 { margin: .8rem 0 1.2rem; font-family: var(--serif); font-size: clamp(3.3rem, 6vw, 6.5rem); font-weight: 400; letter-spacing: -.06em; line-height: .96; }
.page-hero h1 em { color: var(--rose); font-weight: 400; }
.page-hero p { color: var(--muted); }
.qna-hero .button { margin-top: 1.5rem; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.collection-toolbar > span { color: var(--muted); font-size: .75rem; }
.collection-store-notice { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); background: var(--surface); }
.collection-store-notice p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(.9rem, 1.4vw, 1.08rem); }
.collection-store-notice a, .collection-store-notice > span { display: grid; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; place-items: center; background: #03c75a; transition: transform .2s ease, box-shadow .2s ease; }
.collection-store-notice a:hover { box-shadow: 0 8px 22px rgba(3,199,90,.25); transform: translateY(-2px); }
.collection-store-notice img { width: 20px; height: 20px; filter: invert(1); }
.collection-store-notice .is-disabled { opacity: .35; }
.product-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 2px; min-height: calc(100vh - 84px); background: #cfc7bc; }
.detail-image { align-self: start; aspect-ratio: 4 / 5; margin: 0; background: #dcd3c6; overflow: hidden; }
.detail-image.is-left { grid-column: 1; }
.detail-image.is-right { grid-column: 2; }
.detail-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.detail-copy { display: flex; grid-column: 2; grid-row: 1; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 7rem); background: var(--surface); }
.detail-copy h1 { margin: 1rem 0 .4rem; font-family: var(--serif); font-size: clamp(4rem, 7vw, 7rem); font-weight: 400; font-style: italic; letter-spacing: -.06em; line-height: .9; }
.detail-subtitle { color: var(--rose); font-family: var(--serif); font-size: 1.15rem; }
.detail-description { margin: 2.3rem 0; color: var(--muted); font-size: .9rem; }
.detail-copy dl { margin: 0 0 2rem; border-top: 1px solid var(--line); }
.detail-copy dl div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.detail-copy dt { color: var(--muted); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.detail-copy dd { margin: 0; font-family: var(--serif); font-size: .85rem; }
.detail-copy > small { margin-top: 1rem; color: var(--muted); font-size: .65rem; }
.atelier-hero { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 690px; }
.atelier-title { display: flex; flex-direction: column; justify-content: center; padding: 5rem max(28px, calc((100vw - 1220px) / 2)); padding-right: 3rem; background: var(--cream); }
.atelier-title h1 { margin: 1rem 0 0; font-family: var(--serif); font-size: clamp(3.2rem, 5vw, 5.7rem); font-weight: 400; letter-spacing: -.055em; line-height: .97; }
.atelier-title em { color: var(--rose); font-weight: 400; }
.atelier-image { min-height: 600px; background-position: center; background-size: cover; }
.atelier-story { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 9rem 0; overflow: hidden; }
.atelier-story h2 { margin-top: .8rem; font-family: var(--serif); font-size: clamp(2.8rem, 4vw, 4.5rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.atelier-story > div:last-child { padding-top: 2rem; color: var(--muted); }
.large-initial { position: absolute; right: -1rem; bottom: -8rem; color: rgba(155,110,101,.07); font-family: var(--serif); font-size: 25rem; font-style: italic; }
.values-section { display: grid; grid-template-columns: repeat(3, 1fr); width: min(1220px, calc(100% - 56px)); margin: 0 auto; padding: 0 0 8rem; }
.values-section article { padding: 2.2rem; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.values-section article:last-child { border-right: 0; }
.values-section span { color: var(--rose); font-family: var(--serif); font-style: italic; }
.values-section h3 { margin: 3rem 0 .7rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; font-style: italic; }
.values-section p { color: var(--muted); font-size: .82rem; }
.atelier-quote { padding: 8rem 2rem; background: var(--sage); color: white; text-align: center; }
.atelier-quote blockquote { margin: 0 auto 2.5rem; font-family: var(--serif); font-size: clamp(2.3rem, 4.5vw, 4.8rem); font-style: italic; letter-spacing: -.04em; line-height: 1.15; }
.atelier-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr); column-gap: clamp(3rem, 8vw, 9rem); width: min(1220px, calc(100% - 56px)); margin: 0 auto; padding: clamp(6rem, 10vw, 10rem) 0 clamp(4rem, 7vw, 7rem); }
.atelier-intro > .eyebrow { grid-column: 1 / -1; margin-bottom: 1.2rem; }
.atelier-intro h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 6.8rem); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.atelier-intro > p { align-self: end; margin: 0; color: var(--muted); font-size: clamp(.86rem, 1.2vw, 1rem); line-height: 1.9; white-space: pre-line; }
.atelier-intro-rule { display: flex; grid-column: 1 / -1; align-items: center; gap: 1rem; margin-top: clamp(3rem, 6vw, 6rem); color: var(--muted); }
.atelier-intro-rule span { flex: 1; height: 1px; background: var(--line); }
.atelier-intro-rule small { font-size: .56rem; letter-spacing: .18em; }
.atelier-scenes { background: #171612; }
.atelier-scene { position: relative; min-height: max(720px, calc(100svh - 84px)); overflow: hidden; isolation: isolate; }
.atelier-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.atelier-scene > .atelier-scene-backdrop { z-index: 0; object-fit: cover; filter: blur(28px) brightness(.48); opacity: .72; transform: scale(1.08); }
.atelier-scene > .atelier-scene-image { z-index: 1; object-fit: contain; object-position: center; }
.atelier-scene-shade { position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(10,9,7,.22), rgba(10,9,7,.06) 42%, rgba(10,9,7,.36)); pointer-events: none; }
.atelier-scene-copy, .atelier-editor-copy { --atelier-scrim-rgb: 12,11,9; position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; padding: clamp(2rem, 7vw, 7rem); pointer-events: none; }
.atelier-scene-copy h2 { max-width: 780px; margin: .6rem 0 1rem; font-family: var(--serif); font-size: clamp(3rem, 6vw, 7rem); font-weight: 400; letter-spacing: -.055em; line-height: .92; white-space: pre-line; }
.atelier-scene-copy p { max-width: 620px; margin: 0; font-size: clamp(.85rem, 1.15vw, 1.05rem); line-height: 1.8; white-space: pre-line; }
.atelier-scene-number { padding-bottom: .5rem; border-bottom: 1px solid currentColor; font-family: var(--serif); font-size: .8rem; font-style: italic; opacity: .75; }
.atelier-scene-copy.top-left, .atelier-editor-copy.top-left { background: radial-gradient(ellipse 88% 78% at 0 0, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.atelier-scene-copy.top-center, .atelier-editor-copy.top-center { background: radial-gradient(ellipse 72% 76% at 50% 0, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.atelier-scene-copy.top-right, .atelier-editor-copy.top-right { background: radial-gradient(ellipse 88% 78% at 100% 0, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.atelier-scene-copy.center-left, .atelier-editor-copy.center-left { background: radial-gradient(ellipse 82% 78% at 0 50%, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.atelier-scene-copy.center, .atelier-editor-copy.center { background: radial-gradient(ellipse 68% 70% at 50% 50%, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.atelier-scene-copy.center-right, .atelier-editor-copy.center-right { background: radial-gradient(ellipse 82% 78% at 100% 50%, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.atelier-scene-copy.bottom-left, .atelier-editor-copy.bottom-left { background: radial-gradient(ellipse 88% 78% at 0 100%, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.atelier-scene-copy.bottom-center, .atelier-editor-copy.bottom-center { background: radial-gradient(ellipse 72% 76% at 50% 100%, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.atelier-scene-copy.bottom-right, .atelier-editor-copy.bottom-right { background: radial-gradient(ellipse 88% 78% at 100% 100%, rgba(var(--atelier-scrim-rgb),.56), rgba(var(--atelier-scrim-rgb),.24) 43%, transparent 74%); }
.top-left { align-items: flex-start; justify-content: flex-start; text-align: left; }
.top-center { align-items: center; justify-content: flex-start; text-align: center; }
.top-right { align-items: flex-end; justify-content: flex-start; text-align: right; }
.center-left { align-items: flex-start; justify-content: center; text-align: left; }
.center { align-items: center; justify-content: center; text-align: center; }
.center-right { align-items: flex-end; justify-content: center; text-align: right; }
.bottom-left { align-items: flex-start; justify-content: flex-end; text-align: left; }
.bottom-center { align-items: center; justify-content: flex-end; text-align: center; }
.bottom-right { align-items: flex-end; justify-content: flex-end; text-align: right; }
.atelier-values { padding-top: 8rem; }
/* Q&A */
.qna-section { width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 1rem 0 8rem; }
.qna-head, .qna-row { display: grid; grid-template-columns: 70px 1fr 130px 110px 110px; gap: 1rem; align-items: center; }
.qna-head { padding: .8rem 1rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.qna-row { padding: 1.35rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: .2s ease; }
.qna-row:hover { padding-left: 1.4rem; background: rgba(255,255,255,.35); }
.qna-row > span, .qna-row time { color: var(--muted); font-size: .72rem; }
.qna-row strong { font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.lock { color: var(--gold); font-size: .55rem; }
.answer-state { color: var(--rose) !important; font-size: .64rem !important; font-weight: 750; }
.answer-state.done { color: var(--success) !important; }
.qna-guide { display: flex; gap: 2rem; margin-top: 2rem; padding: 1.2rem; background: var(--cream); font-size: .75rem; }
.qna-guide p { margin: 0; color: var(--muted); }
.qna-detail-page { width: min(900px, calc(100% - 56px)); margin: 0 auto; padding: 6rem 0 8rem; }
.qna-detail header { display: flex; align-items: start; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.qna-detail h1 { margin: .65rem 0 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; }
.qna-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.qna-content, .admin-question-content { min-height: 210px; padding: 2.5rem 0; white-space: pre-wrap; }
.answer-box { margin-top: 1rem; padding: 2.2rem; background: var(--charcoal); color: white; }
.answer-box div { margin: 1rem 0; color: #ddd4c8; white-space: pre-wrap; }
.answer-box time { color: #999087; font-size: .65rem; }
.detail-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 2rem; }
.unlock-card { width: min(560px, 100%); margin: 2rem auto; padding: 4rem 3rem; border: 1px solid var(--line); background: var(--surface); text-align: center; box-shadow: var(--shadow); }
.unlock-card h1 { margin: .7rem 0; font-family: var(--serif); font-size: 2.4rem; font-weight: 400; }
.unlock-card > p { color: var(--muted); }
.unlock-card form { display: grid; grid-template-columns: 1fr auto; gap: .7rem; margin-top: 1.5rem; }
.unlock-card input { width: 100%; padding: .7rem; border: 1px solid var(--line); background: white; text-align: center; letter-spacing: .5em; }
.lock-large { color: var(--gold); font-size: 1.3rem; }

/* Forms */
.form-page { width: min(900px, calc(100% - 56px)); margin: 0 auto; padding: 6rem 0 8rem; }
.form-page > header { margin-bottom: 2.3rem; text-align: center; }
.form-page h1 { margin: .6rem 0; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5rem); font-weight: 400; }
.form-page header p { color: var(--muted); }
.paper-form { padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); background: var(--surface); }
.field { margin-bottom: 1.3rem; }
.field-row { display: grid; gap: 1rem; }
.field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row.compact { align-items: center; }
.field label { display: block; margin-bottom: .35rem; font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
.field input, .field textarea, .field select { width: 100%; padding: .78rem .9rem; border: 1px solid #c8c0b4; border-radius: 0; background: #fffdfa; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rose); outline: 2px solid rgba(155,110,101,.16); }
.field small { display: block; margin-top: .3rem; color: var(--muted); font-size: .65rem; }
.editor-section-title { margin: 2.5rem 0 .2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.editor-section-title.first { margin-top: 0; padding-top: 0; border-top: 0; }
.editor-section-help { margin-bottom: 1.4rem; color: var(--muted); font-size: .7rem; }
.typography-settings-grid { display: grid; gap: .8rem; }
.typography-settings-card { padding: 1.2rem; border: 1px solid var(--line); background: #f7f3ec; }
.typography-settings-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.typography-settings-card > header span { color: var(--rose); font-size: .56rem; font-weight: 800; letter-spacing: .16em; }
.typography-settings-card > header h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.typography-settings-card h4 { margin: 1rem 0 .55rem; font-size: .68rem; letter-spacing: .08em; }
.typography-settings-card .field { margin-bottom: .5rem; }
.hero-slide-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hero-slide-editor-card { border: 1px solid var(--line); background: #f7f3ec; }
.hero-slide-editor-card > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.hero-slide-editor-card > header span, .hero-slide-editor-card > header strong { display: block; }
.hero-slide-editor-card > header span { color: var(--rose); font-size: .55rem; font-weight: 800; letter-spacing: .14em; }
.hero-slide-editor-card > header strong { margin-top: .15rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.hero-slide-editor-card .text-button { border: 0; background: transparent; color: var(--rose); font-size: .65rem; font-weight: 700; cursor: pointer; }
.hero-slide-editor-card .text-button.danger { color: var(--danger); }
.hero-slide-editor-preview { aspect-ratio: 16 / 9; background: #2b2823; overflow: hidden; }
.hero-slide-editor-preview img, .hero-slide-editor-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-editor-preview[data-selected-file]:empty::before { display: grid; height: 100%; padding: 1rem; place-items: center; color: #d9d0c4; font-size: .68rem; text-align: center; content: "미리보기 준비 중\A" attr(data-selected-file); white-space: pre-line; }
.hero-slide-editor-fields { padding: 1rem; }
.hero-slide-editor-fields .field { margin-bottom: .8rem; }
.hero-slide-editor-fields .upload-box { margin-bottom: 0; }
.hero-slide-editor-empty, .hero-slide-file-selected { display: grid; min-height: 150px; padding: 1rem; place-items: center; align-content: center; color: var(--muted); font-size: .68rem; text-align: center; }
.hero-slide-file-selected { height: 100%; min-height: 0; color: #d9d0c4; }
.hero-slide-file-selected strong, .hero-slide-file-selected span { display: block; }
.hero-slide-file-selected strong { margin-bottom: .4rem; color: white; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.hero-slide-file-selected span { overflow: hidden; max-width: 90%; text-overflow: ellipsis; white-space: nowrap; }
.hero-slide-editor-card.is-removed { border-style: dashed; }
.hero-slide-editor-card.is-removed > .hero-slide-editor-empty { min-height: 250px; background: var(--cream); }
.size-input { position: relative; }
.size-input span { position: absolute; top: 50%; right: .8rem; color: var(--muted); font-size: .65rem; transform: translateY(-50%); pointer-events: none; }
.field .size-input input { padding-right: 2.4rem; }
.validation-message, .validation-summary, .form-error { color: var(--danger); font-size: .72rem; }
.privacy-check, .simple-check, .toggle-field { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; }
.privacy-check { margin: 1.5rem 0; padding: 1rem; background: var(--cream); }
.privacy-check input, .simple-check input, .toggle-field input { margin-top: .3rem; accent-color: var(--charcoal); }
.privacy-check strong, .privacy-check small { display: block; }
.privacy-check small { color: var(--muted); font-size: .67rem; }
.simple-check { margin-bottom: 1.5rem; font-size: .75rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 2rem; }
.notice { margin-bottom: 1.2rem; padding: .8rem 1rem; border: 1px solid var(--line); font-size: .8rem; }
.notice.success { background: #e7eee2; color: var(--success); }
.notice.error { background: #f5e5e1; color: var(--danger); }
.policy-page { width: min(760px, calc(100% - 56px)); margin: 0 auto; padding: 7rem 0; }
.policy-page h1 { margin: .7rem 0 3rem; font-family: var(--serif); font-size: 4rem; font-weight: 400; }
.policy-page h2 { margin-top: 2.5rem; font-family: var(--serif); font-weight: 400; }
.policy-page p { color: var(--muted); }
.empty-state, .not-found { padding: 6rem 1rem; text-align: center; }
.not-found { min-height: 60vh; }
.empty-state h2, .not-found h1 { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; }
.empty-state p, .not-found p { color: var(--muted); }

/* Admin */
.admin-shell { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 4rem 0 7rem; }
.admin-shell.wide { width: min(1380px, calc(100% - 56px)); }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.admin-heading h1 { margin: .35rem 0; font-family: var(--serif); font-size: 3rem; font-weight: 400; }
.admin-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.admin-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1.1rem; }
.admin-nav a, .admin-nav .text-button { padding: .3rem 0; border: 0; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.admin-nav a:hover, .admin-nav .text-button:hover { color: var(--rose); }
.admin-nav form { display: inline-flex; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-section-heading h2 { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.dashboard-section-heading > small { color: var(--muted); font-size: .62rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.visit-stat-grid { grid-template-columns: repeat(3, 1fr); }
.stat-grid article, .admin-panel, .editor-main, .editor-sidebar { border: 1px solid var(--line); background: var(--surface); }
.stat-grid article { padding: 1.6rem; }
.stat-grid article.accent { background: var(--rose); color: white; }
.stat-grid span, .stat-grid small { display: block; color: var(--muted); font-size: .65rem; }
.stat-grid .accent span, .stat-grid .accent small { color: #eadcd8; }
.stat-grid strong { display: block; margin: .5rem 0; font-family: var(--serif); font-size: 2.6rem; font-weight: 400; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-panel { padding: 1.6rem; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-heading h2 { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.panel-heading > a { color: var(--rose); font-size: .7rem; }
.quick-links a, .admin-list-row { display: grid; grid-template-columns: 45px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.quick-links span { color: var(--rose); font-family: var(--serif); font-style: italic; }
.quick-links strong, .quick-links small, .admin-list-row strong, .admin-list-row small { display: block; }
.quick-links small, .admin-list-row small { color: var(--muted); font-size: .65rem; }
.admin-list-row { grid-template-columns: 1fr auto; }
.admin-list-row em { color: var(--rose); font-size: .65rem; font-style: normal; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.editor-main, .editor-sidebar { padding: 1.8rem; }
.editor-sidebar { position: sticky; top: 105px; }
.editor-sidebar h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.editor-sidebar .button + .button { margin-top: .6rem; }
.product-media-sidebar > h2 { display: flex; align-items: baseline; justify-content: space-between; }
.product-media-sidebar > h2 small { color: var(--muted); font-family: var(--sans); font-size: .6rem; }
.product-gallery-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.product-gallery-item { min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--cream); transition: border-color .2s ease, box-shadow .2s ease; }
.product-gallery-item.is-primary { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.product-gallery-item > img, .product-gallery-preview-pending { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-gallery-preview-pending { display: grid; padding: .5rem; place-items: center; color: var(--muted); font-size: .58rem; text-align: center; }
.product-gallery-item > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: .35rem; padding: .5rem; background: var(--surface); }
.product-gallery-item label { display: inline-flex; align-items: center; gap: .3rem; font-size: .6rem; cursor: pointer; }
.product-gallery-item button { padding: 0; border: 0; background: transparent; color: var(--rose); font-size: .58rem; cursor: pointer; }
.product-gallery-empty { display: grid; min-height: 130px; margin-bottom: 1rem; place-items: center; border: 1px dashed #aaa093; color: var(--muted); font-size: .65rem; }
.site-media-sidebar { max-height: calc(100vh - 120px); overflow-y: auto; }
.editor-media-title { display: flex; align-items: baseline; justify-content: space-between; margin: 1rem 0 .7rem; font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.editor-media-title small { color: var(--muted); font-family: var(--sans); font-size: .56rem; letter-spacing: .08em; }
.editor-media-divider { height: 1px; margin: 1.8rem 0; background: var(--line); }
.admin-image-preview { aspect-ratio: 4 / 5; margin-bottom: 1rem; background: var(--cream); overflow: hidden; }
.admin-image-preview.hero { aspect-ratio: 16 / 9; }
.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.brand-asset-preview { display: grid; min-height: 105px; margin-bottom: 1rem; place-items: center; background: var(--cream); }
.brand-asset-preview > img { display: block; width: 72px; height: 72px; object-fit: contain; }
.brand-asset-preview.favicon > img { width: 48px; height: 48px; }
.brand-asset-preview.social { min-height: 0; aspect-ratio: 1200 / 630; overflow: hidden; }
.brand-asset-preview.social > img { width: 100%; height: 100%; object-fit: cover; }
.brand-asset-preview.social > span { padding: 1rem; color: var(--muted); font-size: .65rem; text-align: center; }
.brand-asset-preview .brand-flourish { width: 52px; height: 52px; font-size: 2rem; }
.admin-video-preview { aspect-ratio: 16 / 9; margin-bottom: 1rem; background: #191814; overflow: hidden; }
.admin-video-preview video { width: 100%; height: 100%; object-fit: contain; }
.admin-video-empty { display: grid; min-height: 105px; margin-bottom: 1rem; padding: 1rem; place-items: center; background: var(--cream); color: var(--muted); font-size: .65rem; text-align: center; }
.media-undo { display: block; margin: -.5rem 0 1rem auto; border: 0; background: transparent; color: var(--rose); font-size: .66rem; font-weight: 700; cursor: pointer; }
.editor-sidebar .media-remove { margin-bottom: .6rem; }
.upload-box { position: relative; display: grid; place-items: center; min-height: 115px; margin-bottom: 1rem; padding: 1rem; border: 1px dashed #aaa093; text-align: center; }
.upload-box.compact { min-height: 92px; }
.upload-box input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.upload-box strong, .upload-box small { display: block; }
.upload-box strong { font-size: .75rem; }
.upload-box small { color: var(--muted); font-size: .62rem; }
.upload-selected { color: var(--success); font-size: .65rem; }
.toggle-field { padding-top: 1.8rem; font-size: .7rem; }
.product-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.product-admin-grid article { display: grid; grid-template-columns: 190px 1fr; min-height: 235px; border: 1px solid var(--line); background: var(--surface); }
.product-admin-grid img { width: 100%; height: 100%; object-fit: cover; }
.product-admin-grid article > div { padding: 1.3rem; }
.product-admin-copy { display: flex; min-width: 0; flex-direction: column; }
.product-admin-grid h2 { margin: .6rem 0 .2rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.product-admin-grid p { margin-bottom: .8rem; color: var(--muted); font-size: .75rem; }
.product-admin-grid small { display: block; margin-bottom: 1rem; color: var(--muted); font-size: .62rem; }
.product-admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.product-admin-actions .text-button, .product-delete-confirmation .text-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .65rem; font-weight: 700; cursor: pointer; }
.product-admin-actions .text-button.danger, .product-delete-confirmation .text-button.danger { color: var(--danger); }
.product-admin-actions .text-button:disabled, .product-delete-confirmation .text-button:disabled { opacity: .55; cursor: wait; }
.product-delete-confirmation { margin-top: auto; padding: .8rem; border: 1px solid #dfc6c2; background: #f8edeb; }
.product-delete-confirmation > span { display: block; margin-bottom: .65rem; color: var(--danger); font-size: .65rem; line-height: 1.6; }
.product-delete-confirmation > div { display: flex; gap: 1rem; }
.admin-empty-state { min-height: 320px; border: 1px solid var(--line); background: var(--surface); }
.admin-qna-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; align-items: start; }
.qna-admin-list { padding: 0; overflow: hidden; }
.qna-admin-list .panel-heading { padding: 1.3rem 1.5rem .3rem; }
.admin-qna-row { display: grid; width: 100%; padding: 1rem 1.5rem; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.admin-qna-row:hover, .admin-qna-row.active { background: var(--cream); }
.admin-qna-row > span { display: flex; gap: .5rem; margin-bottom: .25rem; }
.admin-qna-row em { color: var(--rose); font-size: .62rem; font-style: normal; font-weight: 800; }
.admin-qna-row small { color: var(--muted); font-size: .62rem; }
.answer-editor h2 { margin: .5rem 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.admin-question-content { min-height: 130px; margin: 1rem 0; padding: 1.5rem; background: var(--paper); }
.empty-selection { display: grid; place-items: center; min-height: 400px; text-align: center; }
.empty-selection span { color: var(--cream); font-family: var(--serif); font-size: 7rem; }
.atelier-editor-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.atelier-editor-card { border: 1px solid var(--line); background: var(--surface); }
.atelier-editor-card > header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.atelier-editor-card > header span { display: block; color: var(--rose); font-size: .56rem; font-weight: 750; letter-spacing: .16em; }
.atelier-editor-card > header h2 { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.atelier-editor-card .text-button { border: 0; background: transparent; color: var(--rose); font-size: .68rem; font-weight: 700; cursor: pointer; }
.atelier-editor-card .text-button.danger { color: var(--danger); }
.atelier-editor-card.is-removed { border-style: dashed; background: var(--cream); }
.atelier-editor-removed { display: grid; min-height: 260px; place-items: center; color: var(--muted); font-size: .75rem; }
.atelier-editor-preview { position: relative; aspect-ratio: 16 / 10; background: #292621; overflow: hidden; }
.atelier-editor-media { position: absolute; inset: 0; }
.atelier-editor-media > img { width: 100%; height: 100%; object-fit: contain; opacity: .68; }
.atelier-editor-media > div { display: grid; height: 100%; place-items: center; align-content: center; color: #958b7e; text-align: center; }
.atelier-editor-media > div strong { font-family: var(--serif); font-size: 3.5rem; font-style: italic; font-weight: 400; }
.atelier-editor-media > div span { font-size: .65rem; letter-spacing: .08em; }
.atelier-editor-copy { padding: 1.5rem; text-shadow: 0 1px 10px rgba(0,0,0,.28); }
.atelier-editor-copy h3 { max-width: 80%; margin: .25rem 0; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.atelier-editor-copy p { max-width: 76%; margin: .25rem 0 0; font-size: .67rem; line-height: 1.5; white-space: pre-line; }
.atelier-editor-fields { padding: 1.4rem; }
.translation-status { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding: .9rem 1.1rem; border: 1px solid rgba(154,67,60,.25); background: rgba(154,67,60,.06); font-size: .7rem; }
.translation-status.ready { border-color: rgba(82,107,80,.28); background: rgba(82,107,80,.07); }
.translation-status span { color: var(--muted); }
.atelier-language-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2rem 0 .8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.atelier-language-heading strong, .atelier-language-heading span { display: block; }
.atelier-language-heading strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.atelier-language-heading span, .atelier-language-heading small { color: var(--muted); font-size: .62rem; }
.atelier-language-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.atelier-language-panel { padding: 1rem; border: 1px solid var(--line); background: #f7f3ec; }
.atelier-language-panel.primary { border-color: rgba(155,110,101,.45); background: #fbf7f0; }
.atelier-language-panel h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.atelier-language-panel h3 span { color: var(--rose); font-family: var(--sans); font-size: .56rem; font-weight: 800; letter-spacing: .13em; }
.atelier-language-panel .field:last-child { margin-bottom: 0; }
.atelier-style-fields { align-items: end; }
.color-field > div { display: flex; align-items: center; gap: .7rem; min-height: 43px; }
.field.color-field input[type="color"] { width: 52px; height: 43px; padding: .2rem; cursor: pointer; }
.color-field code { color: var(--muted); font-size: .7rem; }
.atelier-editor-actions { position: sticky; z-index: 5; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); background: rgba(250,248,243,.96); box-shadow: 0 -8px 30px rgba(36,31,25,.08); backdrop-filter: blur(10px); }
.atelier-editor-actions > span { color: var(--muted); font-size: .68rem; }
.atelier-editor-actions > div { display: flex; gap: .7rem; }

/* Login and footer */
.login-page { display: grid; grid-template-columns: .8fr 1.2fr; min-height: calc(100vh - 84px); }
.login-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--charcoal); color: white; text-align: center; }
.login-visual .brand-flourish { width: 80px; height: 80px; border-color: #bbaa91; color: #d7c5aa; font-size: 3rem; }
.login-visual strong { margin: 1.5rem 0; font-family: var(--serif); font-size: 3rem; font-weight: 400; letter-spacing: .18em; line-height: 1; }
.login-visual small { color: #9c9387; letter-spacing: .22em; }
.login-card { align-self: center; width: min(480px, calc(100% - 56px)); margin: 4rem auto; }
.login-card h1 { margin: .5rem 0; font-family: var(--serif); font-size: 3.3rem; font-weight: 400; }
.login-card > p { margin-bottom: 2rem; color: var(--muted); }
.status-message { margin-bottom: 1rem; color: var(--danger); }
.site-footer { padding: 5rem max(28px, calc((100% - 1220px) / 2)) 1.5rem; background: var(--charcoal); color: white; }
.footer-top { display: grid; grid-template-columns: 1fr .8fr .5fr; gap: 4rem; align-items: end; padding-bottom: 4rem; }
.footer-logo { display: block; margin-top: .8rem; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; letter-spacing: .08em; }
.footer-top p { margin: 0; color: #aaa298; font-family: var(--serif); font-size: 1.1rem; }
.footer-top nav { display: grid; gap: .5rem; }
.footer-top nav a { color: #bcb3a7; font-family: var(--serif); font-style: italic; text-decoration: none; }
.footer-tagline { white-space: pre-line; }
.localized-lines { white-space: pre-line; }
.footer-links { display: grid; gap: 1.6rem; }
.footer-social { display: flex; gap: .65rem; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--light-line); border-radius: 50%; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.footer-social a:hover { border-color: white; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.footer-social img { width: 16px; height: 16px; filter: invert(1); opacity: .78; }
.footer-social a:hover img { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.2rem; border-top: 1px solid var(--light-line); color: #817a70; font-size: .58rem; letter-spacing: .08em; }
.footer-bottom a { text-decoration: none; }
#blazor-error-ui { position: fixed; right: 1rem; bottom: 1rem; z-index: 999; display: none; padding: .8rem 1rem; background: #fff3cd; color: #574b2d; box-shadow: var(--shadow); }
#blazor-error-ui .dismiss { border: 0; background: transparent; cursor: pointer; }

/* Motion */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.7,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.product-card:nth-child(2) { transition-delay: .12s; }
.product-card:nth-child(3) { transition-delay: .24s; }
.process-grid article:nth-child(2), .values-section article:nth-child(2) { transition-delay: .12s; }
.process-grid article:nth-child(3), .values-section article:nth-child(3) { transition-delay: .24s; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .primary-nav { display: none; }
    .mobile-menu { display: block; }
    .hero-content { width: min(100% - 48px, 1380px); }
    .intro-section { grid-template-columns: 60px 1fr; }
    .intro-section > div:last-child { grid-column: 2; padding-top: 0; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-heading { grid-template-columns: 1fr; gap: 1rem; }
    .process-grid { grid-template-columns: 1fr; }
    .process-grid article, .process-grid article + article { min-height: auto; padding: 2.5rem 0; border-right: 0; border-bottom: 1px solid var(--light-line); }
    .inquiry-banner { grid-template-columns: 1fr; gap: 2rem; }
    .product-detail { grid-template-columns: 1fr; }
    .detail-image { grid-column: 1 !important; grid-row: auto !important; height: auto; }
    .detail-copy { grid-column: 1; grid-row: auto; }
    .atelier-hero { grid-template-columns: 1fr; }
    .atelier-title { padding: 5rem 28px; }
    .atelier-image { min-height: 520px; }
    .atelier-story { grid-template-columns: 1fr; gap: 1rem; }
    .values-section { grid-template-columns: 1fr; }
    .values-section article { border-right: 0; }
    .qna-head, .qna-row { grid-template-columns: 55px 1fr 100px; }
    .qna-head span:nth-child(3), .qna-head span:nth-child(5), .qna-row > span:nth-child(3), .qna-row time { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-columns, .admin-qna-layout { grid-template-columns: 1fr; }
    .editor-layout { grid-template-columns: 1fr; }
    .editor-sidebar { position: static; }
    .site-media-sidebar { max-height: none; overflow: visible; }
    .product-admin-grid { grid-template-columns: 1fr; }
    .atelier-editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .header-inner, .collection-preview, .collection-page, .qna-section, .admin-shell, .admin-shell.wide { width: min(100% - 28px, 1380px); }
    .header-inner { min-height: 72px; }
    .brand-words small, .admin-link { display: none; }
    .home-hero { min-height: 690px; background-position: 62% center; }
    .hero-content { width: calc(100% - 32px); padding-top: 13rem; }
    .hero-content h1 { font-size: 3.25rem; }
    .hero-content h1 span:last-child { margin-left: 0; }
    .hero-content p { max-width: 310px; font-size: .9rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
    .hero-carousel-controls { bottom: 1.4rem; left: 16px; }
    .hero-carousel-dots button { width: 18px; }
    .hero-scroll { display: none; }
    .intro-section { grid-template-columns: 1fr; width: calc(100% - 32px); padding: 5rem 0; }
    .intro-section > div:last-child { grid-column: 1; }
    .intro-section h2 { font-size: 2.6rem; }
    .collection-preview { padding: 5rem 0; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 2rem; }
    .circle-link { width: 88px; height: 88px; }
    .product-grid { grid-template-columns: 1fr; }
    .process-section { padding-top: 5rem; padding-bottom: 5rem; }
    .process-heading h2 { font-size: 2.7rem; }
    .inquiry-banner { width: calc(100% - 32px); padding: 6rem 0; }
    .inquiry-banner h2 { font-size: 3.2rem; }
    .script-word { font-size: 7rem; }
    .page-hero { width: calc(100% - 32px); padding: 5rem 0 3rem; }
    .page-hero h1 { font-size: 3.2rem; }
    .collection-toolbar { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .collection-store-notice { padding: 1rem; }
    .detail-image { height: auto; }
    .detail-copy { padding: 3.5rem 1.5rem; }
    .detail-copy h1 { font-size: 4.2rem; }
    .atelier-image { min-height: 390px; }
    .atelier-story, .values-section { width: calc(100% - 32px); }
    .atelier-story { padding: 6rem 0; }
    .atelier-intro { grid-template-columns: 1fr; width: calc(100% - 32px); padding: 5rem 0 3rem; }
    .atelier-intro h1 { font-size: 3.2rem; }
    .atelier-intro > p { margin-top: 2rem; }
    .atelier-intro-rule { margin-top: 3rem; }
    .atelier-scene { min-height: 76svh; }
    .atelier-scene-copy { padding: 1.5rem; }
    .atelier-scene-copy h2 { max-width: 100%; font-size: 3rem; }
    .atelier-scene-copy p { max-width: 92%; font-size: .8rem; }
    .atelier-values { padding-top: 5rem; }
    .qna-head, .qna-row { grid-template-columns: 38px 1fr; }
    .qna-head span:nth-child(4), .qna-row > span:nth-child(4) { display: none; }
    .qna-row { gap: .6rem; padding-right: .3rem; padding-left: .3rem; }
    .qna-guide { flex-direction: column; gap: .4rem; }
    .form-page, .qna-detail-page { width: calc(100% - 28px); padding: 4rem 0 6rem; }
    .field-row.two { grid-template-columns: 1fr; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .unlock-card { padding: 3rem 1.2rem; }
    .unlock-card form { grid-template-columns: 1fr; }
    .qna-detail header { flex-direction: column; }
    .admin-heading { align-items: flex-start; flex-direction: column; }
    .admin-nav { justify-content: flex-start; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid article { padding: 1rem; }
    .product-admin-grid article { grid-template-columns: 120px 1fr; }
    .translation-status, .atelier-language-heading { align-items: flex-start; flex-direction: column; }
    .hero-slide-editor-grid { grid-template-columns: 1fr; }
    .atelier-language-grid { grid-template-columns: 1fr; }
    .atelier-editor-actions { align-items: stretch; flex-direction: column; }
    .atelier-editor-actions > div { display: grid; grid-template-columns: 1fr; }
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home-hero-slide { transform: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
