:root {
  --paper: #84615b;
  --paper-deep: #6e4d49;
  --ink: #f5c15a;
  --ink-soft: #d9a64a;
  --blush: #d4500c;
  --blush-deep: #f0b13f;
  --shell: #e04700;
  --shell-light: #ed5a0b;
  --gold: #c27f2b;
  --gold-light: #dda044;
  --gold-deep: #8f5626;
  --focus: #ffd071;
  --ease-jewel: cubic-bezier(0.22, 1, 0.36, 1);
  --heart-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M50 96C44 89 5 65 5 34C5 16 17 5 32 5C41 5 47 10 50 20C53 10 59 5 68 5C83 5 95 16 95 34C95 65 56 89 50 96Z' fill='black'/%3E%3C/svg%3E");
  --heart-mask-mirror: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M50 4C44 11 5 35 5 66C5 84 17 95 32 95C41 95 47 90 50 80C53 90 59 95 68 95C83 95 95 84 95 66C95 35 56 11 50 4Z' fill='black'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(196, 127, 43, 0.11), transparent 34rem),
    radial-gradient(circle at 82% 74%, rgba(82, 42, 38, 0.13), transparent 32rem),
    linear-gradient(145deg, #8d6b65 0%, var(--paper) 48%, #795853 100%);
  font-family: "Avenir Next", "Pretendard", "Noto Sans KR", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.19'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 100;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 16px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(111, 84, 44, 0.24);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  font-family: Georgia, serif;
  font-style: italic;
}

.wordmark strong,
.wordmark small {
  display: block;
}

.wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.wordmark small,
.header-note {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.header-note {
  margin: 0;
}

main {
  position: relative;
}

.intro {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0 4px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blush-deep);
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

.intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro h1 em {
  color: var(--blush-deep);
  font-weight: 400;
}

.intro-copy {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 13px;
  line-height: 1.65;
}

.experience {
  width: min(1400px, calc(100% - 40px));
  min-height: 910px;
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0fr;
  align-items: center;
  transition: grid-template-columns 0.8s var(--ease-jewel);
}

.experience.is-detail-open {
  grid-template-columns: minmax(590px, 1.4fr) minmax(340px, 0.85fr);
}

.compact-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.8s var(--ease-jewel);
}

.is-detail-open .compact-column {
  transform: translateX(-1.5vw) scale(0.91);
}

.compact-stage {
  position: relative;
  width: 700px;
  height: 850px;
  perspective: 1400px;
  transform-origin: center center;
}

.ambient-shadow {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 460px;
  height: 82px;
  border-radius: 50%;
  background: rgba(83, 51, 51, 0.2);
  filter: blur(28px);
  transform: translateX(-50%) scale(0.68);
  transition: transform 1.2s var(--ease-jewel), opacity 1.2s;
}

[data-state="open"] ~ .ambient-shadow,
.compact-stage:has([data-state="open"]) .ambient-shadow {
  transform: translateX(-50%) scale(1);
  opacity: 0.7;
}

.compact-object {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.compact-lid,
.compact-base {
  position: absolute;
  left: 50%;
  width: 560px;
  height: 430px;
  margin-left: -280px;
  transform-style: preserve-3d;
  --active-heart-mask: var(--heart-mask);
}

.compact-lid {
  top: 0;
  z-index: 4;
  transform: translateY(340px) rotateX(0deg) scale(0.97);
  transform-origin: 50% 100%;
  transition: transform 1.25s var(--ease-jewel);
}

.compact-base {
  top: 400px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-58px) scale(0.97);
  transition:
    transform 1.15s var(--ease-jewel),
    opacity 0.5s ease 0.18s;
}

[data-state="open"] .compact-lid {
  transform: translateY(0) rotateX(-7deg) scale(1);
  --active-heart-mask: var(--heart-mask-mirror);
}

[data-state="open"] .compact-base {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.heart-shell {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 18px 20px rgba(90, 54, 55, 0.2));
}

.heart-shell::before,
.heart-shell::after,
.pearl-rim {
  position: absolute;
  inset: 0;
  content: "";
  -webkit-mask-image: var(--active-heart-mask);
  mask-image: var(--active-heart-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.heart-shell::before {
  z-index: 0;
  background:
    radial-gradient(circle at 24% 20%, #fffdf8 0 3%, transparent 18%),
    linear-gradient(135deg, var(--gold-deep), var(--gold-light) 20%, #86662e 42%, #f0d99e 65%, var(--gold-deep));
}

.heart-shell::after {
  z-index: 1;
  inset: 8px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 72% 68%, rgba(202, 136, 145, 0.25), transparent 34%),
    linear-gradient(145deg, var(--shell-light), #ebd2cf 58%, #d7adaf);
}

.pearl-rim {
  z-index: 2;
  inset: 15px;
  background:
    radial-gradient(circle, #fff 0 25%, #e1c9c4 35% 52%, transparent 56%) 0 0 / 19px 19px,
    linear-gradient(135deg, #fffaf2, #e8cec8);
  filter: drop-shadow(0 2px 2px rgba(82, 47, 48, 0.18));
}

.lid-face,
.preview-wrap,
.control-panel {
  position: absolute;
  z-index: 3;
  inset: 31px 34px 36px;
  -webkit-mask-image: var(--active-heart-mask);
  mask-image: var(--active-heart-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.lid-face {
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, 0.75), transparent 31%),
    linear-gradient(145deg, #f8e9e2, #e5c4c5 66%, #d6abad);
  transition: opacity 0.42s ease 0.22s;
}

[data-state="open"] .lid-face {
  opacity: 0;
  transition-delay: 0.25s;
}

.lid-face::before,
.lid-face::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(141, 103, 54, 0.56);
  border-radius: 50%;
}

.lid-face::before {
  width: 210px;
  height: 210px;
}

.lid-face::after {
  width: 228px;
  height: 228px;
  border-style: dashed;
  opacity: 0.6;
}

.lid-monogram {
  margin: -24px 0 0;
  font: italic 52px/1 Georgia, serif;
  letter-spacing: -0.12em;
}

.lid-caption {
  position: absolute;
  top: 194px;
  margin: 0;
  font: 9px/1.5 "Avenir Next", sans-serif;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.engraving {
  position: absolute;
  width: 116px;
  height: 70px;
  top: 168px;
  border-top: 1px solid rgba(141, 103, 54, 0.55);
  border-radius: 50%;
}

.engraving-left {
  left: 54px;
  transform: rotate(24deg);
}

.engraving-right {
  right: 54px;
  transform: rotate(-24deg);
}

.engraving-star {
  position: absolute;
  color: var(--gold);
  font-size: 18px;
}

.star-one { left: 110px; top: 92px; }
.star-two { right: 110px; top: 92px; }

.preview-wrap {
  padding: 17px 25px 23px;
  opacity: 0;
  background: linear-gradient(135deg, #ad8d58, #ead59d 25%, #7a5c30 48%, #d2b874 74%, #725129);
  transform: scale(0.94);
  transition:
    opacity 0.5s ease 0.48s,
    transform 0.8s var(--ease-jewel) 0.4s;
}

[data-state="open"] .preview-wrap {
  opacity: 1;
  transform: scale(1);
}

.preview-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #281e20;
  -webkit-mask-image: var(--active-heart-mask);
  mask-image: var(--active-heart-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.preview-art {
  position: absolute;
  inset: 0;
  transition: opacity 0.18s, transform 0.34s ease;
}

.preview-art.is-changing {
  opacity: 0;
  transform: scale(1.025);
}

.preview-art svg,
.detail-image svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.preview-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.24), transparent 24%, transparent 70%, rgba(255,255,255,.08));
}

.preview-meta {
  position: absolute;
  z-index: 2;
  left: 58px;
  right: 58px;
  bottom: 43px;
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  gap: 10px;
  align-items: end;
  padding-top: 9px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.46);
}

.preview-meta > span {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.preview-meta > span:last-child {
  text-align: right;
}

.preview-meta p,
.preview-meta h2 {
  margin: 0;
  text-align: center;
}

.preview-meta p {
  margin-bottom: 2px;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preview-meta h2 {
  font: 19px/1 Georgia, serif;
}

.open-jewel {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 45%;
  width: 102px;
  height: 102px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.34s ease, transform 0.38s var(--ease-jewel);
}

.open-jewel:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.07);
}

.open-jewel:disabled {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.jewel-gem {
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  border: 8px double var(--gold-deep);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, white 0 5%, transparent 7%),
    conic-gradient(from 15deg, #b75062, #f2b0b0, #92394e, #f5c9c4, #9e4052, #b75062);
  box-shadow:
    0 0 0 3px var(--gold-light),
    0 7px 14px rgba(80, 38, 43, 0.28),
    inset 0 0 15px rgba(255, 255, 255, 0.5);
}

.jewel-gem i {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.62);
  transform: rotate(45deg);
}

.open-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.28em;
  transform: translateX(-45%);
}

.control-panel {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 255, 255, .7), transparent 25%),
    linear-gradient(145deg, #f7e5df, #dfbebd 68%, #d3a6aa);
}

.control-panel::before {
  position: absolute;
  inset: 18px 24px 27px;
  content: "";
  opacity: 0.7;
  border: 1px solid rgba(134, 96, 50, 0.55);
  -webkit-mask-image: var(--active-heart-mask);
  mask-image: var(--active-heart-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.control-ornament {
  position: absolute;
  top: 52px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-deep);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
}

.control-ornament i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.project-controls {
  position: absolute;
  inset: 0;
}

.control-button {
  position: absolute;
  padding: 0;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  background:
    radial-gradient(circle at 34% 28%, #fff 0 5%, transparent 7%),
    linear-gradient(145deg, #fff9f1, #e7cdc5 72%);
  box-shadow:
    0 0 0 4px #d1b275,
    0 0 0 6px #876832,
    0 8px 12px rgba(100, 60, 62, 0.2),
    inset 0 -5px 8px rgba(133, 79, 82, 0.14);
  cursor: pointer;
  transition: transform 0.28s var(--ease-jewel), background 0.28s, color 0.28s;
}

.project-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.project-button:hover,
.nav-button:hover {
  transform: translateY(-3px) scale(1.04);
}

.project-button[aria-pressed="true"] {
  color: white;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.9) 0 4%, transparent 6%),
    linear-gradient(145deg, #ca7a83, #884652);
  box-shadow:
    0 0 0 4px #e7cf95,
    0 0 0 7px #765827,
    0 0 0 11px rgba(218, 162, 164, 0.34),
    0 8px 12px rgba(100, 60, 62, 0.2);
}

.button-glyph {
  display: block;
  margin-top: -5px;
  font: 23px/1 Georgia, "Apple Symbols", serif;
}

.button-glyph svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-glyph svg .icon-fill {
  fill: currentColor;
  stroke: none;
}

.button-index {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 100%;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  transform: translateX(-50%);
}

.section-button-gallery { left: 144px; top: 92px; }
.section-button-brand { left: 50%; top: 132px; transform: translateX(-50%); }
.section-button-journal { right: 144px; top: 92px; }
.section-button-guestbook { left: 102px; top: 207px; }
.section-button-home { left: 50%; top: 258px; transform: translateX(-50%); }
.section-button-contact { right: 102px; top: 207px; }

.section-button-brand:hover,
.section-button-home:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.04);
}

.nav-button {
  top: 112px;
  width: 76px;
  height: 44px;
  border-radius: 50%;
}

.nav-button-prev { left: 39px; transform: rotate(-4deg); }
.nav-button-next { right: 39px; transform: rotate(4deg); }
.nav-button-prev:hover { transform: translateY(-3px) rotate(-4deg) scale(1.04); }
.nav-button-next:hover { transform: translateY(-3px) rotate(4deg) scale(1.04); }

.hand-glyph {
  display: block;
  font: 29px/1 Georgia, "Apple Symbols", serif;
}

.central-medallion {
  display: none;
  position: absolute;
  place-items: center;
  color: #7c5b2e;
  border: 1px solid #9c763a;
  border-radius: 50%;
  background: linear-gradient(145deg, #f6dfad, #a87f3e);
  box-shadow: 0 0 0 4px rgba(255, 250, 230, 0.74);
  transform: translateX(-50%);
}

.central-medallion span {
  font: italic 14px Georgia, serif;
  letter-spacing: -.12em;
}

.hinge {
  position: absolute;
  z-index: 7;
  top: 318px;
  width: 56px;
  height: 20px;
  opacity: 0;
  border: 2px solid var(--gold-deep);
  border-radius: 8px;
  background: linear-gradient(#ead49c, #8a662f 45%, #d7b86c 58%, #6f5029);
  box-shadow: 0 3px 8px rgba(60, 40, 30, .26);
  transition: opacity .3s ease .58s;
}

[data-state="open"] .hinge { opacity: 1; }
.hinge-left { left: 206px; }
.hinge-right { right: 206px; }

.interaction-guide {
  width: min(510px, calc(100% - 40px));
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: -30px;
  color: var(--ink-soft);
}

.guide-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  border-radius: 50%;
  background: var(--blush-deep);
  font-size: 8px;
}

.interaction-guide p,
.interaction-guide strong,
.interaction-guide small {
  display: block;
  margin: 0;
}

.interaction-guide strong {
  color: var(--ink);
  font: 15px Georgia, "Noto Serif KR", serif;
}

.interaction-guide small {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.guide-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 84, 44, .4), transparent);
}

.detail-panel {
  position: relative;
  z-index: 20;
  width: min(100%, 440px);
  height: 690px;
  align-self: center;
  justify-self: center;
  overflow: hidden;
  opacity: 0;
  border: 1px solid rgba(111, 84, 44, 0.34);
  border-radius: 160px 160px 28px 28px;
  background: rgba(255, 250, 246, 0.94);
  box-shadow: 0 30px 80px rgba(79, 48, 52, 0.2);
  transform: translateX(80px) scale(0.96);
  transition:
    opacity 0.55s ease,
    transform 0.75s var(--ease-jewel);
  backdrop-filter: blur(18px);
}

.detail-panel[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.detail-panel.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.detail-handle {
  display: none;
}

.detail-topbar {
  position: absolute;
  z-index: 2;
  top: 23px;
  left: 36px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-topbar p {
  margin: 0;
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.55);
}

.detail-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 50%;
  background: rgba(43, 31, 33, 0.56);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.detail-close span::before,
.detail-close span::after {
  position: absolute;
  left: 19px;
  top: 11px;
  width: 1px;
  height: 18px;
  content: "";
  background: white;
}

.detail-close span::before { transform: rotate(45deg); }
.detail-close span::after { transform: rotate(-45deg); }

.detail-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--blush) transparent;
}

.detail-image {
  height: 355px;
  overflow: hidden;
  border-radius: 158px 158px 0 0;
  background: #d8c0bd;
}

.detail-copy {
  padding: 30px 38px 40px;
}

.detail-kind {
  margin: 0 0 9px;
  color: var(--blush-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-copy h2 {
  margin: 0;
  font: 36px/1.05 Georgia, serif;
  letter-spacing: -0.04em;
}

.detail-description {
  margin: 20px 0 24px;
  color: #5d4e50;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 13px;
  line-height: 1.8;
  word-break: keep-all;
}

.detail-facts {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(111, 84, 44, .2);
  border-bottom: 1px solid rgba(111, 84, 44, .2);
}

.detail-facts div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
}

.detail-facts div + div { margin-top: 8px; }
.detail-facts dt {
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: .15em;
}
.detail-facts dd {
  margin: 0;
  font-size: 11px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.detail-tags li {
  padding: 7px 10px;
  color: var(--ink-soft);
  border: 1px solid rgba(111, 84, 44, .26);
  border-radius: 999px;
  font-size: 9px;
}

.detail-backdrop { display: none; }

footer {
  width: min(1400px, calc(100% - 64px));
  margin: 24px auto 0;
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  border-top: 1px solid rgba(111, 84, 44, .2);
  font-size: 8px;
  letter-spacing: .18em;
}

footer span { color: var(--blush-deep); }

/* Reference artwork tone pass: vermilion enamel, ochre embroidery, dusty mauve. */
.site-header,
footer {
  border-color: rgba(194, 127, 43, 0.52);
}

.wordmark,
.intro h1,
.intro h1 em,
.interaction-guide strong,
.detail-copy h2 {
  color: #f3bd56;
}

.wordmark-mark {
  color: #f3bd56;
  border: 2px solid #c27f2b;
  background: rgba(224, 71, 0, 0.18);
}

.wordmark small,
.header-note,
.intro-copy,
.eyebrow,
footer {
  color: #d9a64a;
}

.heart-shell {
  filter: drop-shadow(0 20px 17px rgba(72, 35, 31, 0.36));
}

.heart-shell::before {
  background:
    repeating-linear-gradient(48deg, rgba(255, 194, 72, 0.15) 0 3px, transparent 3px 7px),
    linear-gradient(145deg, #8f5626, #c27f2b 36%, #a86726 70%, #dda044);
}

.heart-shell::after {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 143, 30, 0.24), transparent 24%),
    linear-gradient(145deg, #ec5306, #e04700 58%, #ca3d00);
}

.pearl-rim {
  background:
    radial-gradient(ellipse, #da9638 0 34%, #9c5f27 38% 52%, transparent 56%) 0 0 / 17px 13px,
    linear-gradient(145deg, #d39435, #a96627);
  filter: drop-shadow(0 2px 1px rgba(79, 41, 29, 0.35));
}

.lid-face {
  color: #c27f2b;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 128, 16, 0.25), transparent 27%),
    linear-gradient(145deg, #ed5205, #e04700 66%, #cb3c00);
}

.lid-face::before,
.lid-face::after {
  border-color: rgba(194, 127, 43, 0.78);
  border-width: 3px;
}

.lid-face::after {
  border-style: dotted;
}

.lid-monogram {
  color: #c27f2b;
  text-shadow: 0 2px 0 rgba(118, 64, 29, 0.32);
}

.lid-caption,
.engraving-star,
.control-ornament {
  color: #c27f2b;
}

.engraving {
  border-top: 4px solid #c27f2b;
}

.preview-wrap {
  background:
    repeating-linear-gradient(48deg, rgba(255, 187, 62, 0.18) 0 3px, transparent 3px 7px),
    #b87329;
}

.preview-gloss {
  opacity: 0.12;
}

.jewel-gem {
  border: 7px double #8f5626;
  background: #c27f2b;
  box-shadow:
    0 0 0 4px #e49d37,
    0 8px 0 rgba(125, 67, 28, 0.3),
    inset 0 0 0 5px rgba(232, 166, 67, 0.55);
}

.jewel-gem i {
  border: 2px solid #e04700;
}

.open-label {
  color: #efbd5d;
}

.control-panel {
  background:
    radial-gradient(circle at 50% 5%, #c27f2b 0 1.4%, transparent 1.7%),
    radial-gradient(circle at 50% 48%, rgba(194, 127, 43, 0.14), transparent 28%),
    linear-gradient(145deg, #ed5205, #e04700 68%, #ca3d00);
}

.control-panel::before {
  opacity: 0.82;
  border: 3px solid #b87329;
}

.control-ornament i {
  background: #c27f2b;
}

.control-button {
  color: #8f5626;
  border: 2px solid #8f5626;
  background: #c27f2b;
  box-shadow:
    0 0 0 4px #d89535,
    0 0 0 7px #9d6026,
    0 6px 0 rgba(110, 57, 28, 0.28);
}

.project-button[aria-pressed="true"] {
  color: #f4b94c;
  background: #bd7027;
  box-shadow:
    0 0 0 4px #e2a13b,
    0 0 0 8px #8f5626,
    0 0 0 11px rgba(240, 177, 63, 0.2);
}

.hinge {
  border-color: #8f5626;
  background: linear-gradient(#d18b31, #995a24 45%, #d89a37 58%, #80491f);
}

.guide-index {
  color: #e04700;
  background: #c27f2b;
}

.guide-line {
  background: linear-gradient(90deg, rgba(211, 148, 53, 0.72), transparent);
}

.detail-panel {
  color: #f6c66b;
  border: 3px solid #a86527;
  background: rgba(224, 71, 0, 0.96);
  box-shadow: 0 30px 80px rgba(68, 32, 28, 0.34);
}

.detail-close {
  border-color: #d99a3a;
  background: rgba(132, 76, 36, 0.74);
}

.detail-kind,
.detail-description,
.detail-facts dt,
.detail-tags li {
  color: #f2c469;
}

.detail-facts,
.detail-tags li {
  border-color: rgba(216, 151, 55, 0.6);
}

.detail-scroll {
  scrollbar-color: #c27f2b transparent;
}

@media (max-width: 1050px) {
  .experience.is-detail-open {
    grid-template-columns: minmax(500px, 1fr) minmax(330px, .8fr);
  }

  .is-detail-open .compact-column {
    transform: translateX(-4vw) scale(.82);
  }

  .detail-panel { margin-left: -54px; }
}

@media (max-width: 780px) {
  .site-header,
  .intro,
  footer {
    width: calc(100% - 32px);
  }

  .site-header { padding-top: 18px; }
  .header-note { display: none; }

  .intro { padding-top: 32px; }
  .intro h1 { font-size: clamp(31px, 10vw, 46px); }

  .experience,
  .experience.is-detail-open {
    width: 100%;
    min-height: clamp(650px, 178vw, 860px);
    display: block;
  }

  .compact-column,
  .is-detail-open .compact-column {
    transform: none;
  }

  .compact-stage {
    width: 700px;
    height: 850px;
    transform: scale(min(1, calc((100vw - 12px) / 700)));
    transform-origin: center top;
    margin-bottom: min(0px, calc((100vw - 712px) * .92));
  }

  .interaction-guide {
    margin-top: clamp(-66px, calc((100vw - 700px) * .1), -30px);
  }

  .detail-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: block;
    opacity: 0;
    background: rgba(47, 31, 34, .42);
    transition: opacity .38s ease;
    backdrop-filter: blur(4px);
  }

  .detail-backdrop[hidden] {
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .detail-backdrop.is-visible { opacity: 1; }

  .detail-panel {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(88dvh, 760px);
    margin: 0;
    border: 0;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
  }

  .detail-panel.is-visible { transform: translateY(0); }

  .detail-handle {
    position: absolute;
    z-index: 3;
    top: 9px;
    left: 50%;
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.76);
    transform: translateX(-50%);
  }

  .detail-image {
    height: min(48vh, 380px);
    border-radius: 28px 28px 0 0;
  }

  .detail-topbar { top: 21px; left: 24px; right: 20px; }
  .detail-copy { padding: 26px 24px 52px; }
  .detail-copy h2 { font-size: 34px; }

  body.detail-visible { overflow: hidden; }
}

@media (max-width: 390px) {
  .site-header { width: calc(100% - 24px); }
  .wordmark small { display: none; }

  .intro {
    width: calc(100% - 28px);
    padding-top: 25px;
  }

  .intro h1 { font-size: 30px; }
  .intro-copy { font-size: 12px; }

  .experience { min-height: 650px; }
  .compact-stage { transform: scale(calc((100vw - 6px) / 700)); }
  .interaction-guide {
    width: calc(100% - 28px);
    margin-top: -72px;
    grid-template-columns: 30px auto;
  }
  .guide-line { display: none; }

  .detail-panel { height: 92dvh; }
  .detail-image { height: 40vh; min-height: 250px; }
  .detail-description { font-size: 12.5px; line-height: 1.75; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
