:root {
    --paper: #fbf6ed;
    --paper-deep: #f0e7d8;
    --canvas: #fffaf3;
    --ink: #322d2c;
    --muted: #766d68;
    --rose: #9e6075;
    --rose-dark: #603a4b;
    --rose-pale: #f2d7d7;
    --sage: #405b54;
    --gold: #ac8c5c;
    --line: #dccfba;
    --serif: 'NanumMyeongjo', 'Nanum Myeongjo', 'Times New Roman', serif;
    --roman: 'Baskerville', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    --sans: 'NanumBarunGothic', 'Nanum Gothic', Arial, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    background: var(--paper);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased
}

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

button {
    font: inherit;
    cursor: pointer
}

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

p,
h1,
h2,
h3 {
    margin-top: 0
}

em {
    font-style: normal;
    color: var(--rose)
}

.skip {
    position: absolute;
    top: -50px;
    left: 12px;
    z-index: 1000;
    background: #fff;
    padding: 10px
}

.skip:focus {
    top: 12px
}

.top-ribbon {
    height: 29px;
    background: #65414c;
    color: #f4e4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font: 10px/1 var(--roman);
    letter-spacing: 3px
}

.top-ribbon span:first-child,
.top-ribbon span:last-child {
    color: #cfb58a
}

.header {
    z-index: 20;
    position: relative;
    background: #fffaf3ed;
    border-bottom: 1px solid #d7c8b6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding: 12px max(4.2%, calc((100vw - 1440px)/2));
    gap: 30px
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none
}

.logo-seal {
    width: 55px;
    height: 55px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--rose-dark);
    font: italic 24px var(--roman);
    position: relative
}

.logo-seal:before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid #d4bea1;
    border-radius: 50%
}

.logo-seal span {
    font-size: 9px;
    margin: 0 1px;
    color: var(--gold)
}

.logo-name {
    display: flex;
    flex-direction: column
}

.logo-name strong {
    font: 24px/.95 var(--roman);
    letter-spacing: 1px
}

.logo-name strong i {
    color: var(--rose);
    font-size: 16px
}

.logo-name small {
    margin-top: 8px;
    font: 9px/1 var(--roman);
    letter-spacing: 2.4px;
    color: var(--gold)
}

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

.nav a {
    color: #5c544f;
    font: 13px var(--roman);
    letter-spacing: .3px;
    padding: 30px 0 27px;
    position: relative;
    white-space: nowrap
}

.nav a:after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--rose);
    transition: .2s
}

.nav a:hover:after,
.nav a.active:after {
    left: 0;
    width: 100%
}

.nav a.active {
    color: var(--rose-dark)
}

.header-capsule {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--rose-dark);
    color: #fff2e4;
    padding: 12px 16px 12px 20px;
    white-space: nowrap;
    font: 10px var(--roman);
    letter-spacing: 1.5px;
    transition: background .2s
}

.header-capsule:hover {
    background: var(--rose)
}

.header-capsule span:last-child {
    font-size: 17px
}

.menu-btn {
    display: none
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 74% 45%, #e7d3cd 0, transparent 41%), radial-gradient(ellipse at 5% 95%, #e2dacb 0, transparent 46%), #f7f0e5;
    border-bottom: 1px solid #e2d4c0
}

.hero:before,
.hero:after {
    content: '';
    pointer-events: none;
    position: absolute;
    height: 1px;
    width: 70px;
    background: #c0a98d;
    top: 42px
}

.hero:before {
    left: 3%
}

.hero:after {
    right: 3%
}

.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.15' filter='url(%23noise)'/%3E%3C/svg%3E")
}

.hero-inner {
    max-width: 1520px;
    margin: auto;
    min-height: 744px;
    display: grid;
    grid-template-columns: minmax(470px, .92fr) minmax(490px, 1.08fr);
    gap: 0;
    padding: 50px 4.2% 48px;
    position: relative
}

.hero-copy {
    align-self: center;
    padding: 0 20px 14px 0;
    z-index: 2
}

.eyebrow {
    display: flex;
    gap: 13px;
    align-items: center;
    font: 10px var(--roman);
    letter-spacing: 2.4px;
    color: var(--rose);
    margin-bottom: 41px
}

.eyebrow-line {
    width: 45px;
    height: 1px;
    background: var(--gold)
}

.eyebrow-spark {
    color: var(--gold)
}

.hero-overline {
    font: 12px var(--roman);
    letter-spacing: 4px;
    color: var(--sage);
    margin-bottom: 13px
}

.hero h1 {
    font: normal clamp(54px, 5.15vw, 83px)/1.33 var(--serif);
    letter-spacing: -4px;
    margin: 0 0 16px;
    word-break: keep-all
}

.hero h1 em {
    color: var(--rose);
    position: relative
}

.hero h1 em:after {
    content: '';
    position: absolute;
    left: -2px;
    right: -3px;
    bottom: -7px;
    height: 8px;
    border-bottom: 2px solid #c99d96;
    border-radius: 0 0 70% 70%
}

.hero-en {
    color: #8d716d;
    font: italic 23px/1.37 var(--roman);
    letter-spacing: .1px;
    margin: 17px 0 30px
}

.hero-en i {
    color: #b16c83
}

.hero-description {
    font-size: 15px;
    line-height: 2.15;
    color: #665d57;
    word-break: keep-all
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 31px
}

.primary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--rose-dark);
    color: #fffaf1;
    padding: 13px 14px 13px 24px;
    font-size: 14px;
    transition: transform .2s, background .2s
}

.primary-button:hover {
    background: #844b62;
    transform: translateY(-2px)
}

.arrow-round {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #fff8;
    border-radius: 50%;
    font-size: 17px
}

.underlined-button {
    font: 12px var(--roman);
    border-bottom: 1px solid var(--rose);
    padding: 6px 0;
    letter-spacing: 1px
}

.underlined-button span {
    padding-left: 13px;
    color: var(--rose)
}

.hero-foot {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 54px
}

.tiny-sun {
    font-size: 30px;
    color: var(--gold)
}

.hero-foot p {
    margin: 0;
    font: 10px/1.7 var(--roman);
    letter-spacing: 1.7px;
    color: #a28d7c
}

.hero-visual {
    height: 660px;
    align-self: center;
    position: relative;
    min-width: 0
}

.hero-halo {
    width: 550px;
    height: 550px;
    border-radius: 50%;
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #bf9f8e7a
}

.hero-halo:before {
    content: '';
    position: absolute;
    inset: 19px;
    border: 1px dashed #b9a48f66;
    border-radius: 50%
}

.hero-halo:after {
    content: '✧';
    position: absolute;
    top: -18px;
    left: 50%;
    font-size: 26px;
    color: var(--gold)
}

.portrait {
    position: absolute;
    overflow: hidden;
    border: 9px solid #f5eadd;
    box-shadow: 0 19px 37px #4e3f392b, 0 0 0 1px #bca384;
    transform-origin: bottom center;
    background: #9eaa9b
}

.portrait:before {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 10px;
    border: 1px solid #eee0b6b8;
    pointer-events: none
}

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

.portrait-iria {
    width: 39%;
    height: 64%;
    left: 14%;
    top: 10%;
    transform: rotate(-9deg);
    border-radius: 49% 49% 4px 4px/24% 24% 4px 4px
}

.portrait-hilda {
    width: 42%;
    height: 66%;
    left: 48%;
    top: 18%;
    transform: rotate(8deg);
    border-radius: 49% 49% 4px 4px/24% 24% 4px 4px;
    background: #d8b4bd
}

.portrait-name {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    background: #2d2b2988;
    color: #fff3e6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 5px;
    font: italic 18px var(--roman);
    letter-spacing: 1px
}

.portrait-name small {
    font: 9px var(--roman);
    letter-spacing: 1px;
    color: #e9c4bb
}

.wax-stamp {
    position: absolute;
    z-index: 3;
    left: 46%;
    top: 68%;
    width: 90px;
    height: 90px;
    background: #7a4051;
    color: #fae8d2;
    border: 5px solid #8e5968;
    border-radius: 45% 56% 47% 53% / 52% 48% 55% 45%;
    box-shadow: 0 5px 12px #6a3b3f55, inset 0 0 0 1px #f0d7b570;
    display: grid;
    place-items: center;
    transform: rotate(-8deg)
}

.wax-stamp span {
    font: italic 24px var(--roman);
    border: 1px solid #e8c59f88;
    border-radius: 50%;
    width: 67px;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: center
}

.wax-stamp i {
    font-size: 13px;
    margin: 0 2px
}

.hero-rose {
    position: absolute;
    z-index: 0;
    width: 172px;
    opacity: .47;
    filter: sepia(.15)
}

.hero-rose-left {
    left: -3%;
    top: 40%;
    transform: rotate(-38deg)
}

.hero-rose-right {
    right: 0;
    bottom: 5%;
    transform: rotate(35deg) scaleX(-1)
}

.floating-text {
    position: absolute;
    z-index: 4;
    text-align: center;
    color: var(--rose);
    font: italic 24px/1.08 var(--roman)
}

.floating-text-top {
    right: 7%;
    top: 3%;
    transform: rotate(6deg)
}

.floating-text-bottom {
    left: 15%;
    bottom: 2%;
    font: 10px var(--roman);
    letter-spacing: 3px;
    color: #9b836f
}

.hero-bottom {
    position: relative;
    max-width: 1520px;
    padding: 0 4.2% 20px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9b826c;
    font: 10px var(--roman);
    letter-spacing: 1.8px
}

.hero-scroll b {
    font-size: 20px;
    vertical-align: middle;
    font-weight: normal;
    margin-left: 10px
}

.marquee-band {
    background: #65414c;
    color: #e6ceb8;
    height: 52px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.marquee-band div {
    white-space: nowrap;
    font: 12px var(--roman);
    letter-spacing: 3px
}

.marquee-band span {
    margin: 0 31px;
    color: #bf9a72
}

.section-wrap {
    padding: 106px 5.6% 120px
}

.section-heading {
    text-align: center;
    margin: 0 auto 53px
}

.section-num {
    font: 11px var(--roman);
    letter-spacing: 3px;
    color: var(--rose);
    display: block
}

.flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    gap: 14px;
    margin: 15px 0 12px
}

.flourish i {
    display: block;
    width: 44px;
    height: 1px;
    background: #c9b699
}

.section-heading h2 {
    font: normal clamp(33px, 3.5vw, 49px)/1.5 var(--serif);
    letter-spacing: -2px;
    margin-bottom: 10px
}

.section-heading>p {
    font-size: 14px;
    color: var(--muted)
}

.characters {
    background: #fffaf3;
    position: relative
}

.characters:before {
    content: '✧';
    position: absolute;
    top: 90px;
    left: 8%;
    font: 45px var(--roman);
    color: #e2cdb2
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    max-width: 1330px;
    margin: auto
}

.profile-card {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 480px;
    background: var(--canvas);
    border: 1px solid #ddcdb8;
    box-shadow: 0 15px 30px #65523e0b;
    overflow: hidden
}

.profile-image {
    position: relative;
    overflow: hidden;
    background: #405b54
}

.profile-image:after {
    content: '';
    position: absolute;
    inset: 13px;
    border: 1px solid #fffae4a6;
    pointer-events: none
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s
}

.profile-card:hover .profile-image img {
    transform: scale(1.04)
}

.profile-index {
    position: absolute;
    z-index: 1;
    top: 25px;
    left: 28px;
    font: 24px var(--roman);
    color: #fff7e9
}

.profile-index span {
    font-size: 10px;
    letter-spacing: 1px
}

.profile-image-label {
    position: absolute;
    bottom: 23px;
    left: 28px;
    color: #fff7e4;
    font: italic 45px var(--roman);
    text-shadow: 0 4px 8px #0004
}

.profile-copy {
    padding: 46px 29px 20px;
    display: flex;
    flex-direction: column
}

.mini-label {
    font: 10px var(--roman);
    letter-spacing: 2.2px;
    color: var(--rose)
}

.profile-copy h3 {
    font: normal clamp(25px, 2.45vw, 33px)/1.42 var(--serif);
    letter-spacing: -1.3px;
    margin: 17px 0 3px;
    word-break: keep-all
}

.profile-copy h3 span {
    white-space: normal
}

.profile-roman {
    font: 11px var(--roman);
    color: #ab8a65;
    letter-spacing: 1.6px;
    margin-bottom: 27px
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px
}

.tag-row span {
    font-size: 11px;
    color: #806c63;
    background: #f1e7dd;
    border: 1px solid #e6d7c8;
    padding: 4px 8px;
    white-space: nowrap
}

.profile-copy>p:not(.profile-roman) {
    font-size: 13px;
    line-height: 2;
    color: #625953;
    word-break: keep-all
}

.profile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    margin-top: auto;
    padding-top: 16px;
    color: var(--gold);
    font: 10px var(--roman);
    letter-spacing: 1.2px
}

.profile-footer span:last-child {
    font-size: 19px
}

.content-note {
    max-width: 1330px;
    margin: 20px auto 0;
    color: #928379;
    font-size: 12px;
    line-height: 1.8
}

.quote-band {
    min-height: 290px;
    padding: 35px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7vw;
    background: linear-gradient(120deg, #593846, #784958 50%, #533540);
    color: #fff1df;
    text-align: center;
    overflow: hidden
}

.quote-band img {
    width: 155px;
    opacity: .45;
    filter: brightness(0) invert(.9) sepia(.4);
    transform: rotate(-18deg)
}

.quote-band img:last-child {
    transform: rotate(145deg)
}

.quote-band .mini-label {
    color: #dbc7a8
}

.quote-band p {
    font: normal clamp(23px, 3vw, 37px)/1.75 var(--serif);
    letter-spacing: -1.5px;
    margin: 20px 0
}

.quote-band p em {
    color: #f4c3be
}

.quote-end {
    font: 11px var(--roman);
    letter-spacing: 2px;
    color: #d8baa3
}

.quote-end span {
    margin: 0 14px
}

.relationship {
    background: linear-gradient(180deg, #f6eee4, #eee3d7);
    padding-bottom: 130px
}

.storybook {
    max-width: 1240px;
    margin: auto;
    display: grid;
    grid-template-columns: 270px 1fr;
    border: 1px solid #cfbaa6;
    box-shadow: 0 20px 50px #644b3b1c;
    min-height: 472px
}

.storybook-rail {
    background: #623d4e;
    color: #fbede0;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.rail-label {
    padding: 29px 25px 20px;
    font: 10px var(--roman);
    letter-spacing: 2px;
    color: #d7bdb1
}

.storybook-tabs {
    display: flex;
    flex-direction: column
}

.story-tab {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    text-align: left;
    border: 0;
    border-left: 4px solid transparent;
    border-top: 1px solid #ffffff18;
    padding: 19px 24px 18px;
    color: #e9d7c8;
    background: transparent;
    transition: background .2s;
    column-gap: 9px
}

.story-tab:hover {
    background: #ffffff12
}

.story-tab.selected {
    background: #825466;
    border-left-color: #d3ae79
}

.story-tab span {
    grid-row: 1/3;
    font: 19px var(--roman);
    color: #d9b895
}

.story-tab strong {
    font-size: 14px;
    font-weight: 500
}

.story-tab small {
    font: 9px var(--roman);
    letter-spacing: 1.7px;
    color: #c2aab1
}

.rail-finish {
    font: 10px var(--roman);
    letter-spacing: 2px;
    color: #c3a8ad;
    padding: 22px 25px
}

.storybook-page {
    background: #fffaf1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-left: 1px solid #d2bda5
}

.storybook-page:before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid #eadcc8;
    pointer-events: none
}

.corner-mark {
    position: absolute;
    right: 40px;
    top: 29px;
    font: 40px var(--roman);
    color: #d6b9a4
}

.page-spread {
    display: grid;
    grid-template-columns: 1fr 255px;
    align-items: center;
    flex: 1;
    padding: 46px 44px 30px 52px;
    gap: 22px
}

.story-panel[hidden] {
    display: none
}

.story-panel h3 {
    font: normal clamp(28px, 2.7vw, 38px)/1.5 var(--serif);
    margin: 21px 0 24px;
    letter-spacing: -1.6px;
    word-break: keep-all
}

.story-panel p {
    max-width: 470px;
    font-size: 14px;
    line-height: 2.1;
    color: #695e57;
    word-break: keep-all
}

.storybook-aside {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-left: 1px solid #d8c9b7
}

.storybook-aside img {
    position: absolute;
    height: 250px;
    width: 190px;
    object-fit: contain;
    opacity: .38;
    transform: rotate(-24deg)
}

.storybook-aside span {
    position: relative;
    background: #fff7e2dd;
    padding: 5px 13px;
    color: var(--rose-dark);
    font: italic 54px var(--roman)
}

.storybook-aside span i {
    font-size: 24px;
    color: var(--gold)
}

.storybook-aside small {
    position: relative;
    margin-top: 32px;
    color: #997e6b;
    font: 9px var(--roman);
    letter-spacing: 1px
}

.page-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ebdfd2;
    color: #a18b75;
    padding: 18px 44px;
    font: 10px var(--roman);
    letter-spacing: 1.5px
}

.archive {
    background: #ece0d2;
    position: relative;
    overflow: hidden;
    padding: 110px 5%
}

.archive:before {
    content: '';
    position: absolute;
    left: -200px;
    bottom: -250px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid #d9c6b5
}

.archive-inner {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 38% 62%;
    align-items: center;
    gap: 10px
}

.archive-intro {
    padding-right: 65px
}

.flourish-left {
    justify-content: flex-start
}

.archive-intro h2 {
    font: normal clamp(37px, 4vw, 55px)/1.5 var(--serif);
    letter-spacing: -2px;
    margin: 18px 0
}

.archive-intro>p {
    font-size: 14px;
    line-height: 2;
    color: var(--muted)
}

.archive-decoration {
    margin-top: 67px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 11px
}

.archive-decoration span {
    font: 10px var(--roman);
    letter-spacing: 1.5px
}

.archive-book {
    background: #fffaf2;
    box-shadow: 8px 8px 0 #cabbaa, 0 14px 35px #654b3924;
    border: 1px solid #d3c1aa;
    position: relative;
    padding: 20px 37px 10px
}

.archive-book:before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    border-left: 1px solid #dbcbb7
}

.archive-book-top,
.archive-book-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 10px var(--roman);
    letter-spacing: 1.6px;
    color: #a28973;
    padding: 14px 4px
}

.archive-book-top {
    border-bottom: 1px solid #bdab97
}

.archive-book-bottom {
    letter-spacing: 0;
    border-top: 1px solid #dbcfbf;
    font-size: 11px
}

.archive-entry {
    padding: 21px 5px;
    min-height: 91px;
    display: grid;
    align-items: center;
    grid-template-columns: 45px 1fr 70px 23px;
    gap: 10px;
    border-bottom: 1px solid #e9dccd;
    transition: transform .2s, background .2s
}

.archive-entry:hover {
    background: #f5ede2;
    transform: translateX(6px)
}

.archive-entry:last-of-type {
    border: 0
}

.entry-index {
    font: 24px var(--roman);
    color: #ba9a77
}

.entry-copy strong {
    font: normal 20px/1.4 var(--serif);
    display: block;
    letter-spacing: -.7px
}

.entry-copy small {
    color: #9a887b;
    font-size: 12px
}

.entry-label {
    font: 10px var(--roman);
    letter-spacing: 1px;
    color: var(--rose)
}

.entry-arrow {
    font: 25px var(--roman);
    color: var(--rose)
}

.gallery {
    background: #fffaf3
}

.gallery-grid {
    max-width: 1280px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px
}

.gallery-card {
    padding: 12px 12px 20px;
    background: #f7efe5;
    border: 1px solid #ded0bd;
    min-width: 0;
    transition: transform .25s, box-shadow .25s
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 27px #65523e1b
}

.gallery-art {
    height: 360px;
    position: relative;
    overflow: hidden
}

.gallery-art:after {
    content: '';
    position: absolute;
    inset: 13px;
    border: 1px solid #fff6dfaa
}

.gallery-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%
}

.gallery-b .gallery-art {
    background: #d5a9ba
}

.gallery-a .gallery-art {
    background: #4c6762
}

.gallery-caption {
    padding: 20px 12px 2px
}

.gallery-caption span {
    color: var(--rose);
    font: 10px var(--roman);
    letter-spacing: 2px
}

.gallery-caption h3 {
    margin: 7px 0 2px;
    font: normal 23px var(--serif)
}

.gallery-caption p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px
}

.empty-frame {
    height: 360px;
    position: relative;
    border: 1px solid #bda98e;
    background: radial-gradient(circle at center, #f9eedb, #e9d9c5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px
}

.empty-frame:after {
    content: '';
    position: absolute;
    inset: 13px;
    border: 1px solid #baa081
}

.empty-frame img {
    height: 230px;
    position: absolute;
    opacity: .18;
    top: 24px;
    transform: rotate(-35deg)
}

.empty-frame span {
    z-index: 1;
    color: #9e6c78;
    font: 11px var(--roman);
    letter-spacing: 2px
}

.empty-frame strong {
    z-index: 1;
    color: var(--rose-dark);
    font: italic 37px var(--roman);
    font-weight: normal;
    margin-top: 12px
}

.empty-frame small {
    z-index: 1;
    color: var(--muted);
    font-size: 12px;
    margin-top: 20px
}

.ending {
    background: #643e4e;
    color: #f9ece0;
    padding: 72px 6%;
    text-align: center
}

.ending-frame {
    border: 1px solid #b78d8a;
    outline: 1px solid #c29c94;
    outline-offset: -12px;
    max-width: 1180px;
    margin: auto;
    padding: 70px 20px 67px;
    position: relative
}

.ending-frame:before,
.ending-frame:after {
    content: '✧';
    position: absolute;
    font-size: 25px;
    color: #d2ad91;
    top: 15px
}

.ending-frame:before {
    left: 25px
}

.ending-frame:after {
    right: 25px
}

.ending-star {
    font: 23px var(--roman);
    letter-spacing: 9px;
    color: #d4b08e
}

.ending p {
    font: 11px var(--roman);
    letter-spacing: 3px;
    color: #d3b2ac;
    margin: 28px 0 15px
}

.ending h2 {
    font: normal clamp(28px, 3.6vw, 44px)/1.6 var(--serif);
    letter-spacing: -1.5px;
    margin: 0 0 24px
}

.ending h2 em {
    color: #efc5bf
}

.ending-monogram {
    font: italic 24px var(--roman);
    letter-spacing: 12px;
    color: #e9d5c1
}

.ending-monogram span {
    font-size: 15px;
    color: #ecb8be
}

.ending-caption {
    display: block;
    margin-top: 30px;
    color: #cfada9;
    font: 9px var(--roman);
    letter-spacing: 3px
}

.footer {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 30px;
    padding: 34px 5.5%;
    background: #302a2b;
    color: #f4e9dc
}

.footer-brand {
    font: 22px var(--roman)
}

.footer-brand span {
    color: #ce9fa1;
    font-size: 12px;
    padding: 0 7px
}

.footer-brand small {
    display: block;
    font: 9px var(--roman);
    letter-spacing: 2px;
    color: #d8beae
}

.footer-info {
    font-size: 11px;
    line-height: 1.9;
    color: #bfb5ad
}

.footer-info a {
    color: #ebc5bd;
    text-decoration: underline
}

.back-to-top {
    font: 11px var(--roman);
    border-bottom: 1px solid #b9a798;
    padding-bottom: 6px;
    white-space: nowrap
}

@media(max-width:1290px) {
    .nav {
        gap: 20px
    }

    .header-capsule {
        display: none
    }

    .hero-inner {
        grid-template-columns: 49% 51%;
        min-height: 690px
    }

    .hero-visual {
        height: 600px
    }

    .hero-halo {
        width: 480px;
        height: 480px
    }

    .hero h1 {
        font-size: clamp(48px, 5.1vw, 72px)
    }

    .portrait-iria {
        left: 12%
    }

    .portrait-hilda {
        left: 47%
    }

    .profile-card {
        grid-template-columns: 42% 58%
    }

    .profile-copy {
        padding: 36px 20px 18px
    }

    .profile-copy h3 {
        font-size: 27px
    }

    .page-spread {
        grid-template-columns: 1fr 200px;
        padding: 40px 30px
    }

    .archive-intro {
        padding-right: 35px
    }
}

@media(max-width:1030px) {
    .header {
        padding: 10px 4%
    }

    .nav {
        gap: 15px
    }

    .nav a {
        font-size: 12px
    }

    .logo-name strong {
        font-size: 20px
    }

    .hero-inner {
        grid-template-columns: 1fr 1fr;
        min-height: 580px
    }

    .hero-copy {
        padding-right: 5px
    }

    .hero-visual {
        height: 510px
    }

    .hero-halo {
        width: 390px;
        height: 390px;
        top: 60px
    }

    .hero h1 {
        font-size: 48px
    }

    .hero-en {
        font-size: 19px
    }

    .hero-description {
        font-size: 13px
    }

    .floating-text-top {
        right: 0
    }

    .profile-grid {
        grid-template-columns: 1fr
    }

    .profile-card {
        max-width: 820px;
        margin: auto;
        min-height: 360px;
        width: 100%;
        grid-template-columns: 39% 61%
    }

    .profile-image {
        height: 390px
    }

    .profile-copy {
        padding: 40px
    }

    .profile-copy h3 {
        font-size: 34px
    }

    .storybook {
        grid-template-columns: 220px 1fr
    }

    .story-tab {
        padding: 16px
    }

    .page-spread {
        grid-template-columns: 1fr 150px;
        padding: 35px 23px
    }

    .storybook-aside {
        height: 240px
    }

    .storybook-aside img {
        width: 135px;
        height: 200px
    }

    .storybook-aside span {
        font-size: 41px
    }

    .archive-inner {
        grid-template-columns: 32% 68%
    }

    .archive-intro {
        padding-right: 20px
    }

    .archive-intro h2 {
        font-size: 37px
    }
}

@media(max-width:760px) {
    html {
        scroll-padding-top: 70px
    }

    .top-ribbon {
        height: 25px;
        font-size: 8px;
        letter-spacing: 1.8px
    }

    .header {
        min-height: 72px;
        padding: 8px 5%
    }

    .logo-seal {
        width: 44px;
        height: 44px;
        font-size: 19px
    }

    .logo-name strong {
        font-size: 19px
    }

    .logo-name small {
        font-size: 7px;
        letter-spacing: 1.3px
    }

    .menu-btn {
        display: flex;
        margin-left: auto;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        width: 44px;
        height: 40px;
        border: 1px solid var(--line);
        background: transparent;
        padding: 11px
    }

    .menu-btn span {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--rose-dark)
    }

    .nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fffaf7;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 6% 24px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 20px #40362917
    }

    .nav.open {
        display: flex
    }

    .nav a {
        padding: 11px 4px;
        font-size: 15px
    }

    .nav a:after {
        bottom: 6px
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 58px 6% 30px
    }

    .hero-copy {
        align-self: auto
    }

    .hero h1 {
        font-size: clamp(46px, 9vw, 69px)
    }

    .hero-description {
        font-size: 14px
    }

    .hero-visual {
        width: 100%;
        height: 550px;
        max-width: 570px;
        margin: 30px auto 0
    }

    .hero-halo {
        width: 475px;
        height: 475px;
        top: 43px
    }

    .hero-foot {
        margin-top: 30px
    }

    .hero-bottom {
        padding: 0 6% 20px
    }

    .hero-bottom span:first-child,
    .hero-bottom span:last-child {
        display: none
    }

    .marquee-band {
        height: 45px
    }

    .marquee-band div {
        font-size: 10px
    }

    .section-wrap {
        padding: 80px 6% 90px
    }

    .section-heading h2 {
        font-size: 36px
    }

    .quote-band {
        min-height: 235px
    }

    .quote-band img {
        display: none
    }

    .storybook {
        grid-template-columns: 1fr
    }

    .storybook-rail {
        display: block
    }

    .rail-label,
    .rail-finish {
        display: none
    }

    .storybook-tabs {
        flex-direction: row
    }

    .story-tab {
        grid-template-columns: 1fr;
        padding: 14px 5px;
        text-align: center;
        justify-items: center;
        gap: 2px;
        flex: 1;
        border-left: 0;
        border-top: 0;
        border-bottom: 3px solid transparent
    }

    .story-tab.selected {
        border-bottom-color: #d3ae79
    }

    .story-tab span {
        grid-row: auto;
        font-size: 13px
    }

    .story-tab strong {
        font-size: 12px
    }

    .story-tab small {
        font-size: 8px
    }

    .page-spread {
        grid-template-columns: 1fr 150px
    }

    .archive {
        padding: 84px 6%
    }

    .archive-inner {
        grid-template-columns: 1fr;
        gap: 36px
    }

    .archive-intro {
        padding-right: 0
    }

    .archive-intro h2 {
        font-size: 41px
    }

    .archive-decoration {
        margin-top: 23px
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px
    }

    .gallery-card:last-child {
        grid-column: 1/-1
    }

    .gallery-card:last-child .empty-frame {
        height: 260px
    }

    .footer {
        grid-template-columns: 1fr auto;
        gap: 15px
    }

    .footer-info {
        grid-column: 1/-1;
        grid-row: 2
    }
}

@media(max-width:500px) {
    .top-ribbon {
        gap: 12px
    }

    .hero-inner {
        padding-top: 46px
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.2px;
        margin-bottom: 30px
    }

    .eyebrow-line {
        width: 25px
    }

    .hero-overline {
        font-size: 10px;
        letter-spacing: 2px
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: -3px;
        line-height: 1.4
    }

    .hero-en {
        font-size: 18px;
        margin: 14px 0 22px
    }

    .hero-description {
        font-size: 13px;
        line-height: 2
    }

    .hero-buttons {
        gap: 15px;
        flex-wrap: wrap
    }

    .primary-button {
        font-size: 13px;
        gap: 20px;
        padding-left: 15px
    }

    .underlined-button {
        font-size: 11px
    }

    .hero-foot p {
        font-size: 9px;
        letter-spacing: 1px
    }

    .hero-visual {
        height: 387px;
        margin: 25px auto 0
    }

    .hero-halo {
        width: 315px;
        height: 315px;
        top: 38px
    }

    .portrait {
        border-width: 5px
    }

    .portrait-iria {
        left: 7%;
        top: 7%;
        width: 46%;
        height: 69%;
        transform: rotate(-8deg)
    }

    .portrait-hilda {
        left: 48%;
        top: 15%;
        width: 48%;
        height: 70%;
        transform: rotate(7deg)
    }

    .portrait:before {
        inset: 5px
    }

    .portrait-name {
        font-size: 12px;
        bottom: 10px;
        padding: 5px 2px
    }

    .portrait-name small {
        display: none
    }

    .wax-stamp {
        width: 62px;
        height: 62px;
        left: 43%;
        top: 67%;
        border-width: 3px
    }

    .wax-stamp span {
        font-size: 17px;
        width: 49px;
        height: 49px
    }

    .wax-stamp i {
        font-size: 10px
    }

    .hero-rose {
        width: 90px
    }

    .hero-rose-left {
        left: -5%
    }

    .floating-text-top {
        font-size: 17px;
        right: 0;
        top: 0
    }

    .floating-text-bottom {
        font-size: 7px;
        left: 5%;
        bottom: 2%
    }

    .marquee-band div {
        font-size: 9px;
        letter-spacing: 1.5px
    }

    .marquee-band span {
        margin: 0 11px
    }

    .section-heading {
        margin-bottom: 34px
    }

    .section-heading h2 {
        font-size: 30px;
        letter-spacing: -1.5px
    }

    .section-heading>p {
        font-size: 12px;
        line-height: 1.9
    }

    .profile-card {
        display: block;
        min-height: 0
    }

    .profile-image {
        height: 350px
    }

    .profile-image img {
        object-position: center 24%
    }

    .profile-copy {
        padding: 26px 25px 22px
    }

    .profile-copy h3 {
        font-size: 30px;
        margin: 12px 0 2px
    }

    .profile-roman {
        margin-bottom: 17px
    }

    .profile-copy>p:not(.profile-roman) {
        font-size: 13px
    }

    .content-note {
        font-size: 11px
    }

    .quote-band {
        padding: 40px 6%;
        min-height: 220px
    }

    .quote-band p {
        font-size: 23px;
        letter-spacing: -.8px
    }

    .quote-band .mini-label {
        font-size: 9px
    }

    .storybook-tabs .story-tab strong {
        font-size: 11px
    }

    .storybook-page:before {
        inset: 10px
    }

    .page-spread {
        grid-template-columns: 1fr;
        padding: 40px 23px 25px;
        gap: 4px
    }

    .story-panel h3 {
        font-size: 27px;
        margin: 17px 0
    }

    .story-panel p {
        font-size: 13px
    }

    .storybook-aside {
        height: 132px;
        border-left: 0;
        border-top: 1px solid var(--line);
        width: 100%
    }

    .storybook-aside img {
        height: 135px;
        width: 130px
    }

    .storybook-aside span {
        font-size: 29px
    }

    .storybook-aside small {
        font-size: 8px;
        margin-top: 12px
    }

    .page-footer {
        padding: 14px 22px;
        font-size: 8px
    }

    .archive {
        padding: 75px 6%
    }

    .archive-intro h2 {
        font-size: 37px
    }

    .archive-book {
        padding: 12px 15px 6px
    }

    .archive-book:before {
        display: none
    }

    .archive-book-top,
    .archive-book-bottom {
        font-size: 9px
    }

    .archive-entry {
        grid-template-columns: 34px 1fr 18px;
        gap: 7px;
        padding: 17px 3px
    }

    .entry-index {
        font-size: 18px
    }

    .entry-copy strong {
        font-size: 17px
    }

    .entry-copy small {
        font-size: 10px
    }

    .entry-label {
        display: none
    }

    .entry-arrow {
        font-size: 20px
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 400px
    }

    .gallery-card:last-child {
        grid-column: auto
    }

    .gallery-art,
    .empty-frame,
    .gallery-card:last-child .empty-frame {
        height: 340px
    }

    .ending {
        padding: 45px 5%
    }

    .ending-frame {
        padding: 59px 15px
    }

    .ending p {
        font-size: 9px;
        letter-spacing: 1.5px
    }

    .ending h2 {
        font-size: 27px
    }

    .footer {
        padding: 26px 6%
    }

    .footer-brand {
        font-size: 19px
    }

    .footer-info {
        font-size: 10px
    }

    .back-to-top {
        font-size: 10px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    :before,
    :after {
        transition: none !important;
        animation: none !important
    }
}

/* ===== 메인 화면 디자인 개선 v1 ===== */

.hero {
  background:
    radial-gradient(
      ellipse at 75% 35%,
      rgba(222, 171, 184, 0.4),
      transparent 55%
    ),
    linear-gradient(135deg, #fffaf4, #f0e1dc);
}

.hero h1 {
  color: #533849;
  text-shadow: 0 4px 25px rgba(83, 56, 73, 0.08);
}

.hero-overline {
  color: #a16a7e;
  font-weight: bold;
}

.primary-button {
  border-radius: 6px;
  background: #71475b;
  box-shadow: 0 8px 24px rgba(92, 53, 71, 0.2);
}

.primary-button:hover {
  background: #9e6075;
  box-shadow: 0 12px 30px rgba(92, 53, 71, 0.28);
}

.portrait {
  box-shadow:
    0 22px 48px rgba(63, 42, 49, 0.22),
    0 0 0 1px rgba(172, 140, 92, 0.55);
}
/* ===== 입체감 강화 v2 ===== */

/* 전체 히어로 영역에 더 깊은 빛과 배경층 */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 78% 32%, rgba(233, 188, 201, 0.38), transparent 28%),
    radial-gradient(circle at 18% 70%, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(135deg, #fffaf4 0%, #f6ebe5 45%, #efe0db 100%);
}

/* 미세한 질감 레이어 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(rgba(120, 85, 95, 0.08) 0.6px, transparent 0.6px);
  background-size: 10px 10px;
  mix-blend-mode: multiply;
}

/* 카드 영역 전체를 살짝 앞으로 */
.hero-visual {
  position: relative;
  transform-style: preserve-3d;
}

/* 뒤쪽 원형 후광 강화 */
.hero-halo {
  box-shadow:
    0 0 0 1px rgba(190, 160, 140, 0.25),
    0 30px 80px rgba(122, 77, 93, 0.10),
    inset 0 0 40px rgba(255, 255, 255, 0.22);
}

/* 카드 아래 바닥 그림자 */
.hero-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: 340px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(71, 45, 54, 0.22) 0%, rgba(71, 45, 54, 0.10) 45%, transparent 75%);
  filter: blur(12px);
  z-index: 0;
}

/* 초상 카드 자체 입체감 */
.portrait {
  overflow: hidden;
  border: 10px solid rgba(247, 238, 226, 0.95);
  box-shadow:
    0 30px 60px rgba(56, 34, 43, 0.22),
    0 12px 20px rgba(56, 34, 43, 0.10),
    0 0 0 1px rgba(178, 145, 104, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.60);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.08));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* 카드 표면 반사광 */
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.06) 32%,
      rgba(255,255,255,0.22) 42%,
      rgba(255,255,255,0.02) 56%,
      rgba(255,255,255,0.00) 100%
    );
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 카드마다 깊이 차이 */
.portrait-iria {
  transform: rotate(-9deg) translateZ(22px);
  z-index: 2;
}

.portrait-hilda {
  transform: rotate(8deg) translateZ(8px);
  z-index: 1;
}

/* 마우스 올리면 카드가 살짝 들리게 */
.portrait:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 38px 72px rgba(56, 34, 43, 0.28),
    0 18px 28px rgba(56, 34, 43, 0.12),
    0 0 0 1px rgba(178, 145, 104, 0.62),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

/* 이름 띠도 더 고급스럽게 */
.portrait-name {
  background: linear-gradient(90deg, rgba(54, 34, 43, 0.86), rgba(92, 52, 67, 0.78));
  backdrop-filter: blur(3px);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.12);
}

/* 밀랍 인장 입체감 */
.wax-stamp {
  box-shadow:
    0 10px 18px rgba(90, 48, 61, 0.28),
    0 3px 8px rgba(90, 48, 61, 0.20),
    inset 0 3px 8px rgba(255,255,255,0.18),
    inset 0 -8px 14px rgba(65, 25, 40, 0.22);
  background:
    radial-gradient(circle at 35% 30%, #8e5970 0%, #7b4358 42%, #623042 100%);
}

/* 메인 버튼도 더 두께감 있게 */
.primary-button {
  background: linear-gradient(180deg, #7c5065 0%, #673f53 100%);
  box-shadow:
    0 10px 20px rgba(98, 56, 73, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.primary-button:hover {
  background: linear-gradient(180deg, #916078 0%, #754a5f 100%);
  transform: translateY(-3px);
  box-shadow:
    0 16px 28px rgba(98, 56, 73, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

/* 아래 섹션 카드들도 납작하지 않게 */
.profile-card,
.gallery-card,
.storybook,
.archive-book {
  box-shadow:
    0 18px 32px rgba(74, 47, 57, 0.08),
    0 6px 12px rgba(74, 47, 57, 0.06);
}

/* 모바일에서는 너무 과하지 않게 */
@media (max-width: 760px) {
  .hero-visual::after {
    width: 240px;
    height: 40px;
    bottom: 28px;
  }

  .portrait {
    box-shadow:
      0 18px 34px rgba(56, 34, 43, 0.20),
      0 8px 14px rgba(56, 34, 43, 0.10),
      0 0 0 1px rgba(178, 145, 104, 0.48);
  }

  .portrait:hover {
    transform: none;
  }
}

/* ===== 이리아 × 힐다 로즈 그라데이션 ===== */

/* 메인 배경 */
.hero {
  background:
    radial-gradient(
      ellipse at 78% 38%,
      rgba(216, 166, 185, 0.45),
      transparent 55%
    ),
    linear-gradient(
      115deg,
      #fffaf0 0%,
      #faede8 35%,
      #f3dce0 70%,
      #e6c5d0 100%
    );
}

/* 메인 제목의 강조 글자 */
.hero h1 em {
  color: #ad7187;
}

/* 상단 장식 띠 */
.top-ribbon {
  background: linear-gradient(
    90deg,
    #503442,
    #845368,
    #503442
  );
}

/* 버튼 */
.primary-button {
  background: linear-gradient(
    135deg,
    #9e6b80,
    #65414c
  );
  border: 1px solid #a87b8c;
}

.primary-button:hover {
  background: linear-gradient(
    135deg,
    #b47b94,
    #805166
  );
}

/* 중간 장식 띠 */
.marquee-band {
  background: linear-gradient(
    90deg,
    #563947,
    #96677a,
    #563947
  );
}

/* 관계성 영역 */
.relationship {
  background: linear-gradient(
    180deg,
    #fff8f0 0%,
    #f2e1e2 100%
  );
}

/* 갤러리 배경 */
.gallery {
  background: linear-gradient(
    180deg,
    #fffaf3,
    #f5e6e9
  );
}

/* ===== 이리아 × 힐다 폰트 시스템 ===== */

:root {
  /* 한국어 제목 */
  --serif: "Gowun Batang", "Nanum Myeongjo", serif;

  /* 영어 제목 및 장식 */
  --roman: "Cormorant Garamond", Georgia, serif;

  /* 본문과 버튼 */
  --sans: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* 메인 제목 */
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.06em;
}

/* 영어 장식 문구 */
.hero-en,
.logo-name strong,
.eyebrow,
.mini-label {
  font-family: var(--roman);
}

/* 기본 본문 */
body {
  font-family: var(--sans);
}

/* ======================================
   이리아 × 힐다 실제 일러스트 배치
   A안 : 힐다 메인 + 이리아 SD 카드
====================================== */

/* 힐다 : 뒤쪽의 커다란 초상화 */
.portrait-hilda {
  left: 38%;
  top: 10%;
  width: 55%;
  height: 79%;

  z-index: 2;
  transform: rotate(6deg);

  background: #ffffff;
  border-radius: 46% 46% 10px 10px /
                 20% 20% 10px 10px;
}

.portrait-hilda img {
  object-fit: cover;
  object-position: 55% center;
}

/* 이리아 : 앞쪽의 작은 SD 카드 */
.portrait-iria {
  left: 11%;
  top: 47%;
  width: 34%;
  height: 38%;

  z-index: 4;
  transform: rotate(-8deg);

  border-radius: 12px;
  background: #ffffff;
}

.portrait-iria img {
  width: 100%;
  height: calc(100% - 28px);
  object-fit: contain;
  background: #ffffff;
}

/* 이리아 카드 이름표 */
.portrait-iria .portrait-name {
  bottom: 0;
  background: #694858;
}

/* 카드에 마우스를 올렸을 때 */
.portrait-iria:hover {
  transform:
    rotate(-8deg)
    translateY(-7px)
    scale(1.02);
}

.portrait-hilda:hover {
  transform:
    rotate(6deg)
    translateY(-7px)
    scale(1.02);
}

/* 밀랍 인장은 두 캐릭터 앞쪽 */
.wax-stamp {
  z-index: 5;
  left: 43%;
  top: 69%;
}

/* 캐릭터 소개 : 이리아 */
.profile-iria .profile-image,
.gallery-a .gallery-art {
  background: linear-gradient(
    145deg,
    #f9f5ff,
    #d9defa
  );
}

.profile-iria .profile-image img,
.gallery-a .gallery-art img {
  object-fit: contain;
  background: #ffffff;
}

/* 캐릭터 소개 : 힐다 */
.profile-hilda .profile-image,
.gallery-b .gallery-art {
  background: #f8dde4;
}

.profile-hilda .profile-image img,
.gallery-b .gallery-art img {
  object-fit: cover;
  object-position: 58% center;
}

/* 태블릿 및 모바일 */
@media (max-width: 760px) {
  .portrait-hilda {
    left: 40%;
    top: 11%;
    width: 56%;
    height: 75%;
  }

  .portrait-iria {
    left: 5%;
    top: 46%;
    width: 39%;
    height: 38%;
  }
}

/* 작은 스마트폰 */
@media (max-width: 500px) {
  .portrait-hilda {
    left: 42%;
    top: 11%;
    width: 55%;
    height: 75%;
    border-width: 5px;
  }

  .portrait-iria {
    left: 5%;
    top: 43%;
    width: 41%;
    height: 42%;
    border-width: 5px;
  }

  .wax-stamp {
    left: 43%;
    top: 72%;
  }
}

/* 이리아 프로필 카드 이름만 검정색으로 */
.profile-grid .profile-card:first-child .profile-image-label {
    color: #302a2b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

/* ===== 캐릭터 갤러리 디자인 ===== */

.gallery-card {
  cursor: pointer;
}

.gallery-card:focus-visible {
  outline: 3px solid #9e6075;
  outline-offset: 5px;
}

/* 팝업 전체 */
.art-modal {
  width: min(900px, 94vw);
  max-height: 90vh;
  padding: 20px;
  border: 1px solid #c7ad9b;
  border-radius: 16px;
  color: #503748;

  background: linear-gradient(
    145deg,
    #fffaf3,
    #f5e3e7
  );

  box-shadow: 0 25px 80px rgba(44, 25, 39, 0.4);
}

.art-modal::backdrop {
  background: rgba(30, 20, 30, 0.72);
  backdrop-filter: blur(6px);
}

/* 팝업 상단 */
.art-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
}

.art-modal-header small {
  color: #a2788a;
  font-size: 10px;
  letter-spacing: 2px;
}

.art-modal-title {
  margin: 4px 0 0;
  font: normal 28px var(--serif);
}

.art-close {
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: white;
  background: #72475b;
}

/* 큰 일러스트 보기 */
.art-viewer {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 50px;
  background: white;
  border: 1px solid #ead8d1;
}

.art-main-image {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.art-placeholder {
  text-align: center;
  line-height: 2.2;
  color: #9e6075;
  padding: 65px 10px;
}

/* 이전·다음 버튼 */
.art-prev,
.art-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 42px;
  color: white;
  background: #65414c;
}

.art-prev { left: 8px; }
.art-next { right: 8px; }

/* 하단 썸네일 */
.art-modal-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 14px;
  color: #927586;
  font-size: 12px;
}

.art-thumbnails {
  display: flex;
  gap: 8px;
  max-width: 75%;
  overflow-x: auto;
}

.art-thumb {
  padding: 2px;
  border: 2px solid transparent;
  background: white;
  border-radius: 5px;
}

.art-thumb.selected {
  border-color: #95647c;
}

.art-thumb img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

@media (max-width: 500px) {
  .art-modal {
    padding: 10px;
  }

  .art-modal-title {
    font-size: 21px;
  }

  .art-viewer {
    padding: 12px 40px;
  }
}
