:root {
  --bg: #f5f4ef; --fg: #28242c; --line: #d7d6d0; --accent: #e7dfec;
  --plum: #603b55; --terracotta: #c77960; --blue: #617aa5; --highlight: var(--plum);
   --panel: #ecebe4; --header: #f5f4efed; color-scheme: light;
}
[data-theme="dark"] {
  --bg: #211f24; --fg: #f0eee6; --line: #454148; --panel: #2c292f;
  --header: #211f24ed; --highlight: #d7bdcf; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Arial, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--highlight); outline-offset: 5px; }
::selection { background: var(--accent); color: #28242c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.header-controls { display: flex; align-items: center; gap: 10px; }
.language-toggle { height: 42px; min-width: 44px; padding: 0 8px; background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 16px; font-weight: 600; }
.language-toggle:hover { background: var(--panel); }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--blue); z-index: 20; }
.header { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(14px); display: flex; justify-content: space-between; align-items: center; padding: 23px 5.5%; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; letter-spacing: -1.5px; }
.logo-symbol { width: 28px; height: 28px; background: var(--fg); mask: url('../img/favicon.svg?v=brand-6') center / contain no-repeat; }
nav { display: flex; gap: 7px; }
nav a { white-space: nowrap; font-size: 16px; padding: 10px 21px; border-radius: 30px; transition: background .2s; }
nav a.active { background: var(--fg); color: var(--bg); }
nav a:hover:not(.active) { background: var(--panel); }
.theme-toggle { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: grid; place-items: center; transition: transform .3s; }
.theme-toggle:hover { transform: rotate(35deg); }
.theme-icon { width: 18px; height: 18px; border: 1.5px solid var(--fg); border-radius: 50%; background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); }
.section { max-width: 1500px; margin: auto; padding-left: 5.5%; padding-right: 5.5%; }
h1 { font-size: clamp(40px,5vw,66px); font-weight: 600; line-height: 1.15; letter-spacing: -.07em; margin: 0; word-break: keep-all; }
.heading-period { color: var(--highlight); }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.collection-mark { width: 134px; height: 68px; flex-shrink: 0; position: relative; }
.collection-mark span { position: absolute; width: 56px; height: 56px; top: 6px; }
.collection-mark span:nth-child(1) { left: 0; border: 15px solid var(--plum); border-radius: 50%; }
.collection-mark span:nth-child(2) { left: 41px; background: var(--blue); border-radius: 5px; transform: rotate(15deg); }
.collection-mark span:nth-child(3) { right: 0; top: 13px; width: 44px; height: 44px; background: var(--terracotta); border-radius: 50%; }
h2 { font-size: 44px; font-weight: 700; letter-spacing: -2px; line-height: 1.4; margin: 0 0 35px; }
.products { padding-top: 62px; padding-bottom: 116px; }
.product-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: start; gap: 70px; }
.product-card:nth-child(even) { padding-top: 104px; }
.product-card { min-width: 0; }
.product-open { display: block; width: 100%; padding: 14px 14px 5px; background: var(--bg); text-align: left; border: 1px solid var(--line); border-radius: 5px; transform: rotate(var(--cover-angle)); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; box-shadow: 0 5px 18px #28242c05; }
.product-open:hover, .product-open:focus-visible { transform: translateY(-8px) rotate(0deg); box-shadow: 0 18px 35px #28242c12; }
.product-bbokgong { --cover-angle: -2deg; }
.product-murim { --cover-angle: 2deg; }
.product-visual { display: block; aspect-ratio: 1.24; border-radius: 2px; overflow: hidden; position: relative; background: var(--product-bg); }
.product-visual img, .dialog-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-visual img { transition: transform .55s cubic-bezier(.2,.8,.2,1); transform: scale(1.015); }
.product-open:hover .product-visual img { transform: scale(1.035); }
.product-caption { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 23px 9px 18px; }
.product-name { font-size: 28px; font-weight: 600; letter-spacing: -1px; line-height: 1.5; word-break: keep-all; }
.product-arrow { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; font-size: 24px; transition: color .2s, background .2s, transform .2s; }
.product-open:hover .product-arrow { color: var(--bg); background: var(--fg); transform: rotate(45deg); }
.product-bbokgong { --product-bg: #d7dbdf; }
.product-murim { --product-bg: #e6cdd5; }
.product-murim .product-visual { aspect-ratio: 1.07; }
html { scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; }
#product-dialog { width: min(960px, calc(100% - 48px)); max-height: calc(100dvh - 48px); border: 1px solid var(--line); border-radius: 20px; padding: 0; color: var(--fg); background: var(--bg); overscroll-behavior: contain; box-shadow: 0 25px 80px #17121c30; }
#product-dialog::backdrop { background: #17121ca6; }
#product-dialog[open] { animation: dialog-enter .22s ease-out; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.dialog-close { position: sticky; top: 18px; float: right; margin: 18px 18px -62px 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--fg); font-size: 28px; }
.dialog-close:hover { background: var(--panel); }
.dialog-content { display: grid; grid-template-columns: .94fr 1.06fr; }
.dialog-visual { position: relative; min-height: 460px; margin: 14px; border-radius: 10px; overflow: hidden; background: var(--product-bg); }
.dialog-visual img { position: absolute; inset: 0; }
.dialog-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 38px 48px 24px; }
.dialog-copy h2 { font-size: 36px; letter-spacing: -1.8px; margin: 0 0 24px; line-height: 1.35; }
.dialog-copy p { font-size: 18px; line-height: 1.85; margin: 0; color: var(--fg); word-break: keep-all; }
.product-actions { display: flex; align-items: center; margin-top: 36px; }
.product-action { font-size: 18px; background: var(--plum); color: #fff; border-radius: 40px; padding: 15px 23px; min-width: 156px; justify-content: space-between; }
.product-action:hover { background: var(--blue); }
.about { padding-top: 45px; padding-bottom: 35px; background: var(--panel); border-radius: 8px; overflow: hidden; }
.about-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 70px; margin-top: 45px; }
.about p { font-size: clamp(44px,5.1vw,74px); line-height: 1.3; font-weight: 700; letter-spacing: -3px; margin: 0; }
.about p>.about-emphasis { color: var(--terracotta); }
.about-word { background: transparent; padding: 0; font: inherit; letter-spacing: inherit; line-height: inherit; position: relative; }
.about-word:after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.about-word:hover:after, .about-word:focus-visible:after { transform: scaleX(1); }
.pinwheel-scene { width: min(100%, 360px); justify-self: center; }
.pinwheel-play { position: relative; display: block; width: 100%; aspect-ratio: .8; padding: 0; background: transparent; border-radius: 12px; touch-action: pan-y; }
.pinwheel-stick { position: absolute; width: 7px; height: 65%; left: calc(50% - 3.5px); top: 32%; background: var(--fg); opacity: .28; border-radius: 7px; }
.pinwheel-rotor { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; transform: rotate(0deg); transition: transform 2.4s cubic-bezier(.15,.65,.2,1); }
.pinwheel-rotor g { fill: currentColor; }
.blade-plum { color: var(--plum); }
.blade-blue { color: var(--blue); }
.blade-clay { color: var(--terracotta); }
.pinwheel-rotor .blade-fold { fill: #fff; opacity: .2; }
.pinwheel-hub { fill: var(--bg); }
.pinwheel-pin { fill: var(--plum); }
.back-top { width: 52px; height: 52px; display: grid; place-items: center; margin: 40px 0 0 auto; background: var(--terracotta); color: #28242c; border-radius: 50%; font-size: 27px; transition: transform .2s; }
.back-top:hover { transform: translateY(-5px); }
@media (max-width:900px) {
  .product-grid { gap: 28px; }
  .product-card:nth-child(even) { padding-top: 58px; }
  .product-name { font-size: 22px; }
  .about-layout { gap: 35px; }
}
@media (max-width:600px) {
  html { scroll-padding-top: 136px; }.header { padding: 16px 6%; gap: 14px; flex-wrap: wrap; }
  .wordmark { font-size: 27px; }.header-controls { margin-left: auto; gap: 8px; }
  nav { order: 3; flex-basis: 100%; justify-content: center; gap: 10px; } nav a { white-space: nowrap; font-size: 16px; padding: 8px 17px; }
  .section { padding-left: 6%; padding-right: 6%; }
  h1 { font-size: clamp(34px,9.5vw,42px); }
  .collection-heading { margin-bottom: 28px; gap: 15px; }
  .collection-mark { width: 68px; height: 40px; }
  .collection-mark span { width: 29px; height: 29px; top: 5px; }
  .collection-mark span:nth-child(1) { border-width: 8px; }
  .collection-mark span:nth-child(2) { left: 20px; border-radius: 3px; }
  .collection-mark span:nth-child(3) { top: 9px; width: 23px; height: 23px; }
  .products { padding-top: 45px; padding-bottom: 52px; } h2 { font-size: 36px; letter-spacing: -1.5px; margin-bottom: 25px; }
  .product-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-card:nth-child(even) { padding-top: 0; }
  .product-open { padding: 9px 9px 2px; transform: none; }
  .product-open:hover, .product-open:focus-visible { transform: translateY(-3px); }
  .product-visual, .product-murim .product-visual { aspect-ratio: 1.35; }  .product-name { font-size: 22px; }.product-caption { padding: 16px 6px 14px; gap: 12px; }.product-arrow { width: 37px; height: 37px; font-size: 22px; }
  #product-dialog { width: calc(100% - 28px); max-height: calc(100dvh - 28px); border-radius: 16px; }
  .dialog-content { grid-template-columns: 1fr; }.dialog-visual { min-height: 0; height: 220px; margin: 10px; }
  .dialog-copy { padding: 18px 25px 28px; }.dialog-copy h2 { font-size: 28px; }.dialog-copy p { font-size: 18px; }
  .product-actions { gap: 12px; }.product-action { font-size: 16px; padding: 14px 20px; }
  .about { padding-top: 31px; padding-bottom: 31px; border-radius: 0; }
  .about-layout { grid-template-columns: 1fr; gap: 42px; margin-top: 25px; }.about p { font-size: clamp(32px,10.5vw,42px); letter-spacing: -2px; }
  .pinwheel-scene { width: min(100%, 270px); }.back-top { margin-top: 35px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; } *, *:before, *:after { animation: none!important; transition: none!important; }
}

html[lang="en"] h1 { letter-spacing: -.065em; }
html[lang="en"] .about p { font-size: clamp(34px,3.8vw,55px); letter-spacing: -2px; }
@media (max-width:600px) {
  html[lang="en"] .about p { font-size: clamp(30px,8.7vw,38px); letter-spacing: -1.5px; }
}

.link-arrow { display: inline-block; width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.product-action { display: inline-flex; align-items: center; gap: 10px; }

.product-visual img, .dialog-visual img { user-select: none; }
