/* Lilyum Design brand, account and private collection layer */
:root {
  --lily-ink: #11100e;
  --lily-paper: #f1ece2;
  --lily-violet: #8067e8;
  --lily-acid: #d8ff3e;
}

[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header { height: 92px; }
.site-header.scrolled { height: 76px; }
.brand-system { gap: 12px; }
.lily-brand-mark {
  width: 58px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.lily-brand-mark::after { display: none; }
.lily-brand-mark svg,.intro-monogram svg,.mobile-menu-signature svg,.mobile-menu-art svg { overflow: visible; }
.emblem-petal { stroke: none; }
.emblem-petal-left { fill: #ff715b; }
.emblem-petal-center { fill: var(--lily-acid); }
.emblem-petal-right { fill: var(--lily-violet); }
.emblem-d,.emblem-l,.emblem-baseline { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.emblem-d { stroke-width: 1.65; }
.emblem-l { stroke-width: 2.1; }
.emblem-baseline { stroke-width: .8; opacity: .46; }
.emblem-nib { fill: #e7c47e; stroke: currentColor; stroke-width: .65; stroke-linejoin: round; }
.emblem-heart { fill: var(--lily-acid); stroke: #11100e; stroke-width: .8; }
.brand-name { grid-template-columns: auto auto; column-gap: .42em; row-gap: 3px; align-items: baseline; letter-spacing: 0; }
.brand-name b { font: 600 18px/.9 var(--serif); letter-spacing: .045em; }
.brand-name > span { font: 700 8px/1 Inter, sans-serif; letter-spacing: .3em; }
.brand-name small { grid-column: 1 / -1; font-size: 5.5px; letter-spacing: .25em; opacity: .62; }

.intro-monogram { width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.025); }
.intro-monogram svg { width: 86%; height: 86%; }

.header-auth-actions { display: flex; align-items: center; gap: 5px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 100px; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.header-auth-actions button { min-height: 31px; border: 0; border-radius: 100px; padding: 0 12px; background: transparent; color: #fff; font-size: 8px; font-weight: 700; cursor: pointer; }
.header-auth-actions .header-register { background: #fff; color: #111; }
.site-header.scrolled .header-auth-actions { background: rgba(255,255,255,.04); }
.user-dot.authenticated { background: var(--lily-acid); border-color: var(--lily-acid); box-shadow: inset 0 0 0 5px #111; }

.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; width: auto; height: 100%; opacity: 1; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.055) 25%), linear-gradient(180deg, transparent 78%, #0d0d0d); }

/* Colorful lily system: a quiet classical motif with contemporary color. */
.lily-motif { --bloom-left: #ff715b; --bloom-center: #d8ff3e; --bloom-right: #8067e8; --bloom-line: currentColor; position: absolute; z-index: 0; display: block; pointer-events: none; color: currentColor; animation: lilyFloat 8s ease-in-out infinite alternate; }
.lily-motif svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 22px 32px rgba(20,16,13,.12)); }
.bloom-petal { stroke: none; transform-box: fill-box; transform-origin: center bottom; animation: lilyPetal 5.5s ease-in-out infinite alternate; }
.bloom-petal-left { fill: var(--bloom-left); }
.bloom-petal-center { fill: var(--bloom-center); animation-delay: -.8s; }
.bloom-petal-right { fill: var(--bloom-right); animation-delay: -1.6s; }
.bloom-stem { fill: none; stroke: var(--bloom-line); stroke-width: 1.2; stroke-linecap: round; }
.bloom-leaf { fill: none; stroke: var(--bloom-line); stroke-width: .9; stroke-linejoin: round; opacity: .82; }
.bloom-heart { fill: var(--bloom-center); stroke: var(--bloom-line); stroke-width: .55; }
.motif-hero { right: 1.5vw; bottom: 1.5vh; width: clamp(180px, 20vw, 320px); height: clamp(180px, 20vw, 320px); color: rgba(244,239,230,.64); opacity: .52; transform: rotate(11deg); }
.stand { position: relative; isolation: isolate; }
.stand .section-heading,.stand .stand-rail,.stand .rail-controls { position: relative; z-index: 1; }
.motif-stand { right: -52px; top: 62px; width: clamp(170px, 18vw, 280px); height: clamp(170px, 18vw, 280px); color: rgba(17,16,14,.5); opacity: .24; transform: rotate(19deg); }
.manifesto { isolation: isolate; }
.motif-manifesto { left: 4vw; bottom: -20px; width: clamp(180px, 25vw, 390px); height: clamp(180px, 25vw, 390px); color: rgba(244,239,230,.64); opacity: .34; transform: rotate(-13deg); }
.manifesto-word,.manifesto-copy { position: relative; z-index: 1; }
.ai-visual,.ai-console { position: relative; z-index: 1; }
.motif-ai { right: -62px; top: 16px; width: clamp(210px, 22vw, 350px); height: clamp(210px, 22vw, 350px); color: rgba(244,239,230,.62); opacity: .28; transform: rotate(24deg); }
.motif-final { left: clamp(-80px,-4vw,-35px); top: 5%; width: clamp(250px, 31vw, 480px); height: clamp(250px, 31vw, 480px); color: rgba(255,255,255,.7); opacity: .35; transform: rotate(-20deg); }
@keyframes lilyFloat { from { translate: 0 -5px; } to { translate: 0 12px; } }
@keyframes lilyPetal { from { scale: .98 1; rotate: -1deg; } to { scale: 1.035 .98; rotate: 1.5deg; } }

.lily-click-bloom { --bloom-left: #ff715b; --bloom-center: #d8ff3e; --bloom-right: #8067e8; --bloom-line: rgba(17,16,14,.75); position: fixed; left: 0; top: 0; z-index: 180; width: 62px; height: 62px; pointer-events: none; transform: translate(-50%,-50%) scale(.2) rotate(-22deg); animation: lilyClickBloom .78s cubic-bezier(.16,1,.3,1) forwards; filter: drop-shadow(0 10px 15px rgba(0,0,0,.2)); }
.lily-click-bloom svg { width: 100%; height: 100%; overflow: visible; }
.lily-click-bloom::before,.lily-click-bloom::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--bloom-center); top: 28px; left: 28px; animation: lilyPollen .7s ease-out forwards; }
.lily-click-bloom::after { background: var(--bloom-left); animation-delay: .06s; rotate: 120deg; }
@keyframes lilyClickBloom { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.15) rotate(-25deg); } 28% { opacity: 1; } 72% { opacity: .92; transform: translate(-50%,-72%) scale(1) rotate(7deg); } 100% { opacity: 0; transform: translate(-50%,-105%) scale(1.18) rotate(12deg); } }
@keyframes lilyPollen { to { translate: 34px -30px; scale: .25; opacity: 0; } }

.payment-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 18px; border: 1px solid #d6d0c6; background: rgba(255,255,255,.74); cursor: pointer; }
.payment-switch span { display: grid; gap: 5px; }
.payment-switch b { font-size: 10px; }
.payment-switch small { color: #888178; font-size: 8px; }
.payment-switch input { position: absolute; opacity: 0; pointer-events: none; }
.payment-switch i { position: relative; flex: 0 0 auto; width: 52px; height: 28px; border-radius: 99px; background: #cbc5bc; transition: .3s; }
.payment-switch i::after { content: ''; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: .3s cubic-bezier(.16,1,.3,1); }
.payment-switch input:checked + i { background: #111; box-shadow: inset 0 0 0 1px #d8ff3e; }
.payment-switch input:checked + i::after { translate: 24px 0; background: var(--lily-acid); }
.payment-switch:has(input:focus-visible) { outline: 2px solid var(--lily-violet); outline-offset: 2px; }
.setting-field code { padding: 2px 4px; color: #5f4ab5; background: #eee9fa; font: 7px var(--mono); }
.payment-check { display: flex; align-items: center; gap: 12px; min-height: 62px; margin: 6px 0 15px; padding: 13px 16px; border: 1px dashed #c8c1b7; color: #777067; background: rgba(255,255,255,.45); }
.payment-check > span { width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.payment-check p { display: grid; gap: 3px; margin: 0; }
.payment-check b { font-size: 9px; color: #332f2b; }
.payment-check small { font-size: 8px; }
.payment-check.valid { color: #3c8151; border-style: solid; border-color: rgba(60,129,81,.3); background: rgba(220,240,224,.45); }
.payment-check.invalid { color: #a33d32; border-style: solid; border-color: rgba(163,61,50,.28); background: rgba(249,225,220,.54); }
.commerce-actions { display: flex; justify-content: flex-end; gap: 9px; }
.admin-secondary-btn { border: 1px solid #111; background: transparent; color: #111; padding: 13px 16px; font: 700 8px var(--mono); cursor: pointer; }

.auth-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-width: 1040px;
  height: min(720px, calc(100dvh - 28px));
  max-height: 720px;
  border: 0;
  padding: 0;
  color: #111;
  background: var(--lily-paper);
  overflow: hidden;
  box-shadow: 0 40px 130px rgba(0, 0, 0, .48);
}

.auth-dialog::backdrop { background: rgba(9, 9, 8, .88); backdrop-filter: blur(14px); }
.auth-dialog[open] { display: grid; grid-template-columns: 1fr 1fr; animation: authEnter .55s cubic-bezier(.16, 1, .3, 1); }

@keyframes authEnter { from { opacity: 0; transform: translateY(18px) scale(.985); } }

.auth-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid #cbc4b9;
  border-radius: 50%;
  background: rgba(241, 236, 226, .82);
  color: #111;
  font-size: 21px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.auth-art {
  position: relative;
  padding: 38px;
  overflow: hidden;
  color: #f4f0e8;
  background:
    radial-gradient(circle at 76% 23%, var(--lily-acid) 0 1.3%, transparent 1.6%),
    radial-gradient(ellipse at 64% 58%, rgba(128,103,232,.8), transparent 32%),
    linear-gradient(145deg, #3e342b, #121414 56%, #29212d);
}

.auth-art::before { content: ''; position: absolute; inset: 8%; border: 1px solid rgba(244,240,232,.17); border-radius: 49% 51% 44% 56%; transform: rotate(18deg); }
.auth-art::after { content: ''; position: absolute; inset: 0; opacity: .22; 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='.45'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.auth-art > span { position: relative; z-index: 2; font: 8px var(--mono); letter-spacing: .16em; color: rgba(244,240,232,.62); }
.auth-art > p { position: absolute; left: 38px; bottom: 38px; z-index: 2; margin: 0; font: 600 clamp(38px, 4vw, 62px)/.94 var(--serif); letter-spacing: -2px; }
.auth-art > p em { color: var(--lily-acid); }
.auth-lily { position: absolute; inset: 10% 8% 16%; display: grid; place-items: center; }
.auth-lily svg { width: 65%; height: 72%; fill: none; stroke: rgba(244,240,232,.72); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 24px 34px rgba(0,0,0,.22)); }

.auth-content { padding: clamp(48px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; overflow: auto; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 42px; }
.auth-brand > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #111; background: var(--lily-acid); }
.auth-brand b,.auth-brand small { display: block; }
.auth-brand b { font: 800 10px Inter; letter-spacing: .16em; }
.auth-brand small { margin-top: 4px; font: 6px var(--mono); letter-spacing: .18em; color: #8e877d; }
.auth-content > .index { color: var(--lily-violet); }
.auth-content h2 { margin: 12px 0 28px; font: 600 clamp(40px, 4.4vw, 64px)/.88 var(--serif); letter-spacing: -3px; }
.auth-content h2 em { color: var(--lily-violet); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #cfc8bd; margin-bottom: 22px; }
.auth-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 12px 4px; color: #8a837a; font: 700 8px var(--mono); cursor: pointer; }
.auth-tabs button.active { border-color: #111; color: #111; }
.auth-form { display: none; gap: 12px; }
.auth-form.active { display: grid; }
.auth-form label { display: grid; gap: 7px; color: #7d766e; font: 7px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.auth-form input:not([type='checkbox']) { width: 100%; border: 1px solid #d2cbc0; background: rgba(255,255,255,.66); padding: 13px 14px; color: #111; font: 500 11px Inter; outline: 0; }
.auth-form input:focus { border-color: var(--lily-violet); box-shadow: 0 0 0 3px rgba(128,103,232,.1); }
.auth-form > button { display: flex; justify-content: space-between; border: 0; background: #111; color: #fff; padding: 15px 17px; margin-top: 4px; font-weight: 700; cursor: pointer; }
.auth-form > button:disabled { opacity: .55; cursor: wait; }
.auth-consent { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: 9px !important; text-transform: none !important; line-height: 1.5; }
.auth-consent input { margin: 2px 0 0; accent-color: var(--lily-violet); }
.auth-message { min-height: 18px; margin: 12px 0 0; color: #9b3f36; font-size: 9px; line-height: 1.5; }
.auth-message.success { color: #3c7b50; }
.auth-note { color: #9a9389; font-size: 8px; line-height: 1.55; }

#accountEmail { display: block; margin-top: 7px; color: #948b80; font: 7px var(--mono); letter-spacing: .08em; }
.account-logout { width: 100%; margin-top: 20px; border: 1px solid #cfc8bd; background: transparent; padding: 13px; color: #756e66; font: 700 7px var(--mono); cursor: pointer; }
.account-admin-entry { width: 100%; margin: -8px 0 18px; border: 0; border-radius: 12px; padding: 15px 16px; background: #111; color: #fff; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; }
.account-admin-entry span { display: grid; gap: 4px; font: 700 10px Inter, sans-serif; }
.account-admin-entry small { color: var(--lily-acid); font: 6px var(--mono); letter-spacing: .14em; }
.account-admin-entry b { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; color: var(--lily-acid); font-size: 14px; }
.price-watch { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 5px 7px; border-radius: 99px; background: #ece7dd; color: #756c62; font: 6px var(--mono); letter-spacing: .04em; }
.price-watch.changed { background: #e8f3c7; color: #49601a; }
.price-watch.changed::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #72912f; box-shadow: 0 0 0 3px rgba(114,145,47,.12); }
.account-required { text-align: center; padding: 35px 20px; }
.account-required button { border: 0; background: #111; color: #fff; padding: 13px 17px; margin-top: 12px; cursor: pointer; }

.admin-dialog:not(.authorized) { display: none; }
.admin-dialog.authorized[open] { display: block; }

@media (max-width: 760px) {
  .auth-dialog { height: min(760px, calc(100dvh - 16px)); width: calc(100vw - 16px); }
  .auth-dialog[open] { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-content { padding: 56px 24px 32px; justify-content: flex-start; }
  .auth-brand { margin-bottom: 30px; }
  .auth-content h2 { font-size: 50px; }
  .auth-close { top: 14px; right: 14px; }
  .hero::after { width: 38vw; right: -8vw; bottom: 5vh; }
}

@media (max-width: 1120px) and (min-width: 961px) {
  .site-header .desktop-nav { gap: 16px; }
  .site-header .desktop-nav a { font-size: 8px; }
  .header-auth-actions button { padding-inline: 9px; }
  .site-header .desktop-explore span { display: none; }
}

@media (max-width: 640px) {
  .site-header { height: 74px; padding-left: 4vw; }
  .site-header.scrolled { height: 68px; }
  .site-header .header-auth-actions { display: none !important; }
  .brand-system { gap: 7px; }
  .brand-name b { font-size: 15px; }
  .brand-name > span { font-size: 6.5px; }
  .brand-name small { display: block; font-size: 4px; letter-spacing: .16em; }
  .lily-brand-mark { width: 44px; height: 47px; }

  .mobile-menu {
    --menu-line: rgba(26,23,20,.14);
    padding: calc(78px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 94% 12%, rgba(128,103,232,.10), transparent 25%),
      radial-gradient(circle at 4% 92%, rgba(119,91,60,.08), transparent 30%),
      #f3eee4;
  }
  .mobile-menu::before { content: ''; position: absolute; right: -42px; top: 84px; width: 170px; height: 190px; opacity: .045; pointer-events: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 0 64 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23110f0d' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M32 66V35M32 38C23 30 21 17 25 6c6 4 9 14 7 27M32 38C41 30 43 17 39 6c-6 4-9 14-7 27M32 43C20 44 11 36 9 25c10-1 19 5 23 15M32 43c12 1 21-7 23-18-10-1-19 5-23 15M20 56c4-6 8-8 12-8s8 2 12 8M23 62h18'/%3E%3C/g%3E%3C/svg%3E"); }
  .mobile-menu-top { min-height: 44px; padding: 0 0 10px; border-color: var(--menu-line); position: relative; z-index: 1; }
  .mobile-menu-signature { display: flex; align-items: center; gap: 8px; color: #151310; }
  .mobile-menu-signature svg { width: 39px; height: 42px; }
  .mobile-menu-signature span { font: 600 8px/1 Inter, sans-serif; letter-spacing: .17em; }
  .mobile-menu-signature b { font: 600 13px/1 var(--serif); letter-spacing: .05em; margin-right: 3px; }
  .mobile-menu-top > small { font: 6px var(--mono); letter-spacing: .12em; }
  .mobile-menu-body { position: relative; z-index: 1; }
  .mobile-menu nav { margin-top: 2px; }
  .mobile-menu nav a { min-height: 54px; grid-template-columns: 26px 1fr 28px; border-color: var(--menu-line); }
  .mobile-menu nav a span { color: #989087; font-size: 6px; }
  .mobile-menu nav a b { font: 600 clamp(29px, 8.7vw, 39px)/1 var(--serif); letter-spacing: -1.8px; }
  .mobile-menu nav a i { width: 25px; height: 25px; border-color: var(--menu-line); font-size: 9px; transition: .3s; }
  .mobile-menu nav a:active i { background: #111; color: var(--lily-acid); }
  .mobile-menu-art { height: 88px; margin: 12px 0; padding: 0 16px; border-radius: 14px; display: grid; grid-template-columns: 60px 1fr; align-items: center; overflow: hidden; color: #f3eee4; background: linear-gradient(135deg,#181713,#2c2622); }
  .mobile-menu-art::after { content: ''; position: absolute; inset: 0; opacity: .13; 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='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  .mobile-menu-art svg { width: 58px; height: 68px; z-index: 1; color: #f3eee4; }
  .mobile-menu-art > div { position: relative; z-index: 1; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.15); }
  .mobile-menu-art small { color: #9d948a; font: 5px var(--mono); letter-spacing: .15em; }
  .mobile-menu-art p { margin: 5px 0 0; font: 600 19px/.98 var(--serif); }
  .mobile-menu-art em { color: #d9c7a9; }

  .mobile-menu-foot { display: grid; gap: 9px; position: relative; z-index: 1; margin-top: auto; }
  .mobile-menu-foot > .mobile-auth-card { display: grid; grid-template-columns: 1fr 1.08fr; gap: 12px; align-items: end; padding: 13px; border: 1px solid var(--menu-line); border-radius: 13px; background: rgba(255,255,255,.28); }
  .mobile-auth-card > p { margin: 0; font-size: 8px; line-height: 1.45; color: #6d665f; }
  .mobile-auth-card > p small { display: block; margin-bottom: 5px; color: #171410; font: 700 5px var(--mono); letter-spacing: .11em; }
  .mobile-auth-card > div { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5px; }
  .mobile-auth-card button { min-height: 39px; border: 1px solid #24201c; border-radius: 100px; background: transparent; color: #151310; font: 700 7px Inter, sans-serif; }
  .mobile-auth-card .mobile-register { display: flex; justify-content: space-between; align-items: center; padding-inline: 12px; background: #151310; color: #fff; }
  .mobile-auth-card .mobile-register span { color: var(--lily-acid); }
  .mobile-menu-foot > .mobile-member-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .mobile-member-actions button { min-height: 44px; border: 1px solid var(--menu-line); border-radius: 100px; background: transparent; color: #151310; font: 700 8px Inter, sans-serif; }
  .mobile-member-actions #mobileAdmin { background: #151310; color: #fff; }
  .mobile-member-actions #mobileAdmin span { color: var(--lily-acid); }
  .mobile-menu-foot > .mobile-menu-meta { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
  .mobile-menu-meta button,.mobile-menu-meta a { border: 0; background: transparent; color: #756e67; padding: 0; font: 600 7px Inter, sans-serif; text-decoration: none; }
  .mobile-menu-meta a { display: flex; gap: 9px; align-items: center; }
  .mobile-menu-meta a span { color: var(--lily-violet); margin: 0; font-size: 11px; }

  .auth-dialog { border-radius: 20px 20px 0 0; margin: auto 0 0; width: 100vw; height: min(760px, 94dvh); }
  .auth-content { padding: 58px 20px calc(24px + env(safe-area-inset-bottom)); }
  .auth-brand { margin-bottom: 22px; }
  .auth-content h2 { margin-bottom: 22px; font-size: clamp(45px, 13vw, 56px); }
  .auth-tabs { position: sticky; top: -58px; z-index: 2; background: var(--lily-paper); }
  .auth-tabs button { min-height: 46px; font-size: 8px; }
  .auth-form input:not([type='checkbox']) { border-radius: 9px; padding: 14px; }
  .auth-form > button { min-height: 50px; align-items: center; border-radius: 9px; }
  .motif-hero { right: -56px; bottom: 8vh; width: 190px; height: 190px; opacity: .38; }
  .motif-stand { right: -64px; top: 35px; width: 165px; height: 165px; opacity: .19; }
  .motif-manifesto { left: -58px; width: 230px; height: 230px; opacity: .26; }
  .motif-ai { right: -86px; top: 10px; width: 230px; height: 230px; opacity: .22; }
  .motif-final { left: -100px; top: 10%; width: 270px; height: 270px; opacity: .27; }
  .lily-click-bloom { width: 52px; height: 52px; }
  .commerce-actions { display: grid; grid-template-columns: 1fr; }
  .commerce-actions button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lily-motif,.lily-motif .bloom-petal { animation: none; }
  .lily-click-bloom { display: none; }
}

/* AI Studio — hidden visual feast */
.visual-feast-overlay {
  --bloom-left: #ff715b;
  --bloom-center: #d8ff3e;
  --bloom-right: #8067e8;
  --bloom-line: #f5efe7;
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  color: #f7f2e9;
  background:
    radial-gradient(circle at 50% 48%, rgba(216,255,62,.18), transparent 21%),
    radial-gradient(circle at 18% 25%, rgba(255,113,91,.42), transparent 34%),
    radial-gradient(circle at 82% 74%, rgba(128,103,232,.52), transparent 38%),
    #0d0d0d;
  animation: visualFeastScene 4.3s cubic-bezier(.16,1,.3,1) both;
}

.visual-feast-overlay::before,
.visual-feast-overlay::after {
  content: '';
  position: absolute;
  width: min(88vw, 950px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  animation: visualFeastOrbit 7s linear infinite;
}

.visual-feast-overlay::after {
  width: min(58vw, 630px);
  border-color: rgba(216,255,62,.48);
  animation-direction: reverse;
  animation-duration: 4.5s;
}

.visual-feast-aura {
  position: absolute;
  width: min(118vw, 1260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 15deg, rgba(216,255,62,.22) 0 7deg, transparent 7deg 21deg, rgba(128,103,232,.22) 21deg 28deg, transparent 28deg 43deg, rgba(255,113,91,.19) 43deg 50deg, transparent 50deg 68deg);
  filter: blur(8px);
  animation: visualFeastSpin 9s linear infinite, visualFeastPulse 1.25s ease-in-out infinite alternate;
}

.visual-feast-lily {
  position: relative;
  z-index: 2;
  width: clamp(240px, 34vw, 520px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 30px rgba(216,255,62,.28)) drop-shadow(0 38px 70px rgba(0,0,0,.45));
  animation: visualFeastLily 4.3s cubic-bezier(.16,1,.3,1) both;
}

.visual-feast-lily .bloom-petal { animation: visualFeastPetal 1s cubic-bezier(.16,1,.3,1) both; }
.visual-feast-lily .bloom-petal-center { animation-delay: .08s; }
.visual-feast-lily .bloom-petal-right { animation-delay: .16s; }
.visual-feast-lily .bloom-stem,
.visual-feast-lily .bloom-leaf { stroke: var(--bloom-line); stroke-width: 1.35; fill: none; }
.visual-feast-lily .bloom-heart { fill: #fff; }

.visual-feast-title {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  width: min(92vw, 980px);
  transform: translate(-50%,-50%);
  text-align: center;
  mix-blend-mode: screen;
  animation: visualFeastCopy 4.3s cubic-bezier(.16,1,.3,1) both;
}

.visual-feast-title span {
  display: block;
  margin-bottom: 16px;
  color: var(--lily-acid);
  font: 600 clamp(7px, .85vw, 11px)/1 var(--mono);
  letter-spacing: .32em;
}

.visual-feast-title strong {
  display: block;
  color: #fff;
  font: 600 clamp(64px, 12.7vw, 190px)/.72 var(--serif);
  letter-spacing: -.075em;
  text-shadow: 0 0 50px rgba(255,255,255,.18);
}

.visual-feast-title em { color: var(--lily-acid); font-weight: 600; }

.visual-feast-particles { position: absolute; inset: 0; z-index: 4; }
.visual-feast-particles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(4px, .55vw, 9px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: hsl(calc(var(--i) * 31deg + 62deg) 92% 68%);
  box-shadow: 0 0 18px currentColor;
  animation: visualFeastParticle 1.25s var(--delay) ease-in-out infinite alternate;
}

.ai-feast-preview {
  --bloom-left: #ff715b;
  --bloom-center: #d8ff3e;
  --bloom-right: #8067e8;
  --bloom-line: #f6f0e7;
  position: relative;
  min-height: 285px;
  margin: 0 0 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,113,91,.72), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(128,103,232,.8), transparent 39%),
    #111;
}

.ai-feast-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .35;
  background: repeating-conic-gradient(from 40deg at 50% 50%, rgba(216,255,62,.18) 0 5deg, transparent 5deg 20deg);
  animation: visualFeastSpin 14s linear infinite;
}

.ai-feast-preview svg {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  overflow: visible;
  filter: drop-shadow(0 20px 32px rgba(0,0,0,.4));
}

.ai-feast-preview .bloom-stem,
.ai-feast-preview .bloom-leaf { fill: none; stroke: var(--bloom-line); stroke-width: 1.4; }
.ai-feast-preview .bloom-heart { fill: #fff; }
.ai-feast-preview span,
.ai-feast-preview strong { position: relative; z-index: 2; }
.ai-feast-preview span { color: var(--lily-acid); font: 600 7px var(--mono); letter-spacing: .24em; }
.ai-feast-preview strong { font: 600 clamp(28px, 4vw, 54px)/.86 var(--serif); letter-spacing: -.045em; }
.ai-feast-orbit { position: absolute; width: 250px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; animation: visualFeastOrbit 8s linear infinite; }
.visual-feast-result { border-color: rgba(216,255,62,.48); box-shadow: 0 24px 80px rgba(128,103,232,.13); }

@keyframes visualFeastScene {
  0% { opacity: 0; clip-path: circle(0 at 50% 50%); }
  12%,78% { opacity: 1; clip-path: circle(76% at 50% 50%); }
  100% { opacity: 0; clip-path: circle(0 at 50% 50%); }
}

@keyframes visualFeastLily {
  0% { opacity: 0; transform: scale(.08) rotate(-24deg); }
  22% { opacity: .92; transform: scale(1.2) rotate(4deg); }
  68% { opacity: .52; transform: scale(1) rotate(-2deg); }
  100% { opacity: 0; transform: scale(1.45) rotate(8deg); }
}

@keyframes visualFeastPetal {
  0% { transform: scale(.1) rotate(-16deg); }
  55% { transform: scale(1.14) rotate(3deg); }
  100% { transform: scale(1); }
}

@keyframes visualFeastCopy {
  0%,12% { opacity: 0; filter: blur(18px); transform: translate(-50%,-45%) scale(.82); }
  28%,72% { opacity: 1; filter: blur(0); transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; filter: blur(14px); transform: translate(-50%,-55%) scale(1.12); }
}

@keyframes visualFeastOrbit { to { transform: rotate(360deg); } }
@keyframes visualFeastSpin { to { transform: rotate(360deg); } }
@keyframes visualFeastPulse { to { transform: scale(1.09); opacity: .65; } }
@keyframes visualFeastParticle {
  from { opacity: .2; transform: translate3d(-12px,18px,0) scale(.5); }
  to { opacity: 1; transform: translate3d(14px,-24px,0) scale(1.4); }
}

@media (max-width: 640px) {
  .visual-feast-title strong { font-size: clamp(60px, 23vw, 102px); line-height: .76; }
  .visual-feast-title span { margin-bottom: 12px; letter-spacing: .2em; }
  .visual-feast-lily { width: 78vw; }
  .visual-feast-overlay::before { width: 140vw; }
  .visual-feast-overlay::after { width: 88vw; }
  .ai-feast-preview { min-height: 235px; }
  .ai-feast-preview svg { width: 108px; height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-feast-overlay { animation: visualFeastFade 2.2s ease both; }
  .visual-feast-overlay *,
  .ai-feast-preview *,
  .ai-feast-preview::before { animation: none !important; }
}

@keyframes visualFeastFade {
  0%,100% { opacity: 0; }
  15%,78% { opacity: 1; }
}

/* Lilyum UI 2.0 — refined desktop and mobile interface */
:root {
  --ui-radius-sm: 12px;
  --ui-radius: 18px;
  --ui-radius-lg: 28px;
  --ui-ease: cubic-bezier(.16,1,.3,1);
  --ui-hairline: rgba(17,16,14,.12);
}

.line-arrow {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: currentColor;
  vertical-align: middle;
  transition: transform .35s var(--ui-ease);
}

.line-arrow::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7.5px;
  width: 11px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
}

.line-arrow::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 4.5px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.line-arrow.is-left { transform: rotate(180deg); }
.line-arrow.is-down { transform: rotate(90deg); }

.site-header {
  top: 12px;
  left: 16px;
  right: 16px;
  width: auto;
  height: 74px;
  padding: 0 clamp(18px,2.2vw,34px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(13,13,13,.62);
  box-shadow: 0 18px 60px rgba(0,0,0,.14);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  transition: height .45s var(--ui-ease), top .45s var(--ui-ease), background .45s, border-color .45s, box-shadow .45s;
}

.site-header.scrolled {
  top: 8px;
  height: 68px;
  background: rgba(13,13,13,.88);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 20px 64px rgba(0,0,0,.24);
}

.site-header .lily-brand-mark { width: 49px; height: 52px; }
.site-header .desktop-nav {
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  background: rgba(255,255,255,.045);
}
.site-header .desktop-nav a { padding: 9px 13px; border-radius: 100px; font-size: 9px; letter-spacing: .01em; transition: color .25s, background .25s; }
.site-header .desktop-nav a::after { display: none; }
.site-header .desktop-nav a:hover { color: #111; background: var(--lily-acid); }
.header-actions { gap: 7px; }
.header-auth-actions { border-color: rgba(255,255,255,.12); }
.desktop-explore,.icon-btn,.cart-trigger,.lang-toggle { min-height: 38px; }

.primary-btn,.ghost-btn,.analyze-btn,.gallery-launch,.save-brief,
.auth-form > button,.profile-form button,.panel-action,.cart-foot > button,
.gallery-copy button,.commission-link {
  border-radius: 100px;
}

.primary-btn,.ghost-btn,.analyze-btn,.gallery-launch,.save-brief,
.auth-form > button,.profile-form button,.panel-action,.cart-foot > button,
.gallery-copy button,.commission-link,.underlink,.desktop-menu-foot a {
  align-items: center;
}

.primary-btn:hover .line-arrow,.ghost-btn:hover .line-arrow,.gallery-launch:hover .line-arrow,
.underlink:hover .line-arrow,.commission-link:hover .line-arrow,.panel-action:hover .line-arrow,
.auth-form > button:hover .line-arrow,.cart-foot > button:hover .line-arrow,
.gallery-copy button:hover .line-arrow,.desktop-menu-foot a:hover .line-arrow { transform: translateX(3px); }
.work-back:hover .line-arrow,.checkout-back:hover .line-arrow { transform: rotate(180deg) translateX(3px); }

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline: 2px solid var(--lily-acid);
  outline-offset: 3px;
}

.stage-card,.stand-art,.work-art,.archive-art,.portrait-art {
  border-radius: var(--ui-radius);
}
.stage-card { overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.stand-card,.work-card,.archive-card { transition: transform .55s var(--ui-ease); }
.stand-info,.work-info,.archive-card > div:last-child { padding-inline: 4px; }
.work-tag { border-radius: 100px; padding: 7px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.fav-btn { width: 42px; height: 42px; border-color: rgba(255,255,255,.3); background: rgba(17,17,17,.45); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.filter-pills,.project-types {
  width: max-content;
  max-width: 100%;
  padding: 4px;
  gap: 3px;
  border: 1px solid var(--ui-hairline);
  border-radius: 100px;
  background: rgba(255,255,255,.35);
}
.filter-pills button,.project-types button,.mood-row button { border-radius: 100px; border-color: transparent; }
.gallery-launch { display: inline-flex; gap: 10px; border: 1px solid #181614; background: #181614; color: #fff; padding: 11px 14px 11px 16px; }
.gallery-launch span { margin: 0; color: var(--lily-acid); }

.rail-controls button,.gallery-nav button {
  display: grid;
  place-items: center;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.rail-controls button:hover { color: #fff; background: #111; border-color: #111; transform: scale(1.04); }

.process-grid { gap: 12px; border-top: 0; }
.process-grid article,.process-grid article:not(:first-child) {
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(17,16,14,.08);
  border-radius: var(--ui-radius);
  background: rgba(255,255,255,.3);
}
.process-grid article i { width: 54px; height: 54px; margin: 34px 0; display: grid; place-items: center; border: 1px solid rgba(128,103,232,.22); border-radius: 50%; font-size: 28px; background: rgba(255,255,255,.42); }

.prompt-box,.reference-upload,.result-card,.settings-card,.catalog-sync {
  border-radius: var(--ui-radius);
}
.prompt-box { padding: 18px; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.055); transition: border-color .3s, background .3s, box-shadow .3s; }
.prompt-box:focus-within { border-color: rgba(216,255,62,.55); background: rgba(255,255,255,.075); box-shadow: 0 0 0 4px rgba(216,255,62,.055); }
.reference-upload { overflow: hidden; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.045); }
.reference-upload > label { border-color: rgba(255,255,255,.12); }
.analyze-btn { min-height: 58px; padding: 0 20px; transition: transform .28s var(--ui-ease), box-shadow .28s; }
.analyze-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(216,255,62,.14); }
.result-card { padding: clamp(20px,3vw,30px); }
.route-visual { border-radius: var(--ui-radius-sm); }
.save-brief { display: flex; justify-content: space-between; min-height: 48px; padding-inline: 16px; }

.work-dialog,.auth-dialog,.checkout-dialog { border-radius: var(--ui-radius-lg); }
.cart-drawer { border-radius: 26px 0 0 26px; }
.commission-link { display: inline-flex; gap: 10px; text-decoration: none; border: 1px solid #cfc8bd; padding: 13px 15px; }
.profile-form button { display: flex; justify-content: space-between; }
.panel-action { display: flex; justify-content: space-between; }
.desktop-menu-foot a { display: inline-flex; gap: 7px; }
.desktop-menu-foot .line-arrow { color: var(--lily-acid); }
.final-cta { margin: 0 16px 16px; border-radius: var(--ui-radius-lg); }

@media (hover:hover) and (pointer:fine) {
  .stand-card:hover,.work-card:hover,.archive-card:hover { transform: translateY(-6px); }
  .mobile-menu nav a:hover i { color: #111; background: var(--lily-acid); border-color: var(--lily-acid); }
}

@media (max-width: 960px) {
  .site-header { left: 10px; right: 10px; top: 9px; height: 68px; padding: 0 15px; border-radius: 18px; }
  .site-header.scrolled { top: 7px; height: 64px; }
  .site-header .lily-brand-mark { width: 43px; height: 46px; }
  .menu-btn { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
  .menu-btn span { width: 16px; transition: transform .35s var(--ui-ease); }
  .menu-btn.active span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-btn.active span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .ai-studio { gap: 38px; }
}

@media (max-width: 640px) {
  .site-header { left: 8px; right: 8px; top: 8px; height: 62px; padding: 0 12px; border-radius: 17px; }
  .site-header.scrolled { top: 6px; height: 60px; }
  .site-header .brand-system { gap: 6px; }
  .site-header .lily-brand-mark { width: 38px; height: 41px; }
  .site-header .brand-name b { font-size: 14px; }
  .site-header .brand-name > span { font-size: 6px; }
  .site-header .brand-name small { display: none; }
  .header-actions { gap: 5px; }
  .cart-trigger { min-height: 38px; padding-inline: 9px; border-radius: 100px; background: rgba(255,255,255,.055); }

  .mobile-menu {
    padding: calc(84px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 100% 0, rgba(128,103,232,.12), transparent 28%),
      linear-gradient(180deg,#f7f3eb 0%,#efe9de 100%);
  }
  .mobile-menu::before { right: -55px; top: 72px; width: 190px; height: 210px; opacity: .055; }
  .mobile-menu-top { min-height: 38px; padding: 0 4px 9px; }
  .mobile-menu-signature svg { width: 34px; height: 36px; }
  .mobile-menu-signature span { font-size: 7px; }
  .mobile-menu-body { min-height: 0; }
  .mobile-menu nav { margin-top: 4px; }
  .mobile-menu nav a {
    min-height: 58px;
    grid-template-columns: 27px 1fr 34px;
    padding: 7px 4px;
    border-color: rgba(17,16,14,.11);
  }
  .mobile-menu nav a span { color: #8d867d; font-size: 6px; }
  .mobile-menu nav a b { font-size: clamp(29px,8.4vw,37px); letter-spacing: -1.6px; }
  .mobile-menu nav a i { width: 32px; height: 32px; border-color: rgba(17,16,14,.13); background: rgba(255,255,255,.35); }
  .mobile-menu nav a .line-arrow { width: 14px; height: 14px; color: #191714; }
  .mobile-menu.open nav a:nth-child(5) { transition-delay: .42s; }
  .mobile-menu nav a:active { padding-left: 9px; }
  .mobile-menu nav a:active i { background: #151310; color: var(--lily-acid); }
  .mobile-menu nav a:active .line-arrow { color: var(--lily-acid); }

  .mobile-menu-art { height: 76px; margin: 10px 0; grid-template-columns: 50px 1fr; border-radius: 16px; }
  .mobile-menu-art svg { width: 48px; height: 56px; }
  .mobile-menu-art p { font-size: 17px; }
  .mobile-menu-foot { gap: 8px; }
  .mobile-menu-foot > .mobile-auth-card { grid-template-columns: 1fr; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.42); }
  .mobile-auth-card > div { grid-template-columns: 1fr 1.2fr; }
  .mobile-auth-card button { min-height: 42px; }
  .mobile-auth-card .mobile-register { padding-inline: 14px; }
  .mobile-menu-meta { padding: 0 4px; }
  .mobile-menu-meta a { min-height: 36px; }
  .mobile-menu-meta .line-arrow,.mobile-register .line-arrow,.mobile-member-actions .line-arrow { color: var(--lily-violet); }

  .hero { padding: 108px 18px 68px; }
  .hero h1 { font-size: clamp(55px,15vw,76px); line-height: .88; letter-spacing: -3.5px; }
  .hero-lead { font-size: 13px; line-height: 1.65; margin: 24px 0; }
  .hero-cta { gap: 9px; }
  .hero-cta .primary-btn,.hero-cta .ghost-btn { min-height: 54px; border-radius: 100px; padding-inline: 18px; }
  .hero-proof { margin-top: 32px; }
  .hero-stage { min-height: 440px; }
  .main-card { width: 91%; right: 0; border-radius: 18px; }
  .back-card { border-radius: 18px; }
  .floating-note { border-radius: 10px; }

  .section { padding: 76px 18px; }
  .section-heading { margin-bottom: 35px; }
  .section-heading h2,.ai-console h2,.about-copy h2 { font-size: clamp(44px,12.6vw,59px); line-height: .94; letter-spacing: -2.7px; }
  .section-heading > p { font-size: 12px; }
  .stand-rail { gap: 14px; }
  .stand-card { min-width: calc(100vw - 52px); }
  .stand-card:nth-child(even) { margin-top: 34px; }
  .stand-art { height: min(68dvh,520px); min-height: 410px; border-radius: 18px; }
  .rail-controls { margin-top: 28px; }
  .rail-controls button { width: 46px; height: 46px; background: rgba(255,255,255,.28); }

  .works-tools { justify-items: stretch; gap: 10px; }
  .filter-pills { width: 100%; }
  .filter-pills button { flex: 1; min-height: 38px; }
  .gallery-launch { width: 100%; min-height: 48px; justify-content: space-between; padding-inline: 16px; border-bottom: 0; }
  .work-card,.work-card:nth-child(n) { margin-bottom: 30px; }
  .work-art,.work-card:nth-child(n) .work-art { height: min(126vw,540px); border-radius: 18px; }
  .work-info { padding: 13px 4px 0; }
  .archive-grid { gap: 12px; }
  .archive-card .archive-art { border-radius: 14px; }

  .ai-studio { padding-inline: 18px; }
  .ai-visual { height: 340px; }
  .ai-sphere { width: min(66vw,270px); height: min(66vw,270px); }
  .project-types { width: 100%; border-radius: 16px; display: grid; grid-template-columns: 1fr 1fr; }
  .project-types button { min-height: 40px; }
  .prompt-box { padding: 16px; border-radius: 16px; }
  .prompt-box textarea { min-height: 126px; font-size: 14px; }
  .reference-upload { border-radius: 16px; grid-template-columns: 112px 1fr; }
  .mood-row > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mood-row button { min-height: 40px; }
  .analyze-btn { min-height: 56px; border-radius: 100px; }
  .result-card { border-radius: 18px; }

  .process-grid { gap: 9px; }
  .process-grid article,.process-grid article:not(:first-child) { min-height: 0; padding: 22px; border: 1px solid rgba(17,16,14,.08); border-radius: 16px; }
  .process-grid article i { margin: 20px 0; }
  .portrait-art { border-radius: 18px; }
  .final-cta { min-height: 520px; margin: 0 8px 8px; padding-inline: 18px; border-radius: 24px; }
  .final-cta h2 { font-size: clamp(56px,14.5vw,76px); }
  footer { padding: 42px 20px calc(32px + env(safe-area-inset-bottom)); }
  footer > div { flex-wrap: wrap; justify-content: center; }

  .work-dialog,.checkout-dialog { border-radius: 0; }
  .cart-drawer { border-radius: 22px 0 0 22px; padding: 18px; }
  .work-dialog-bar { padding-inline: 16px; }
  .work-back,.checkout-back { display: inline-flex; align-items: center; gap: 8px; }
}

@media (max-width: 380px), (max-height: 720px) and (max-width: 640px) {
  .mobile-menu { padding-top: calc(76px + env(safe-area-inset-top)); }
  .mobile-menu nav a { min-height: 51px; }
  .mobile-menu nav a b { font-size: 28px; }
  .mobile-menu-art { display: none; }
  .mobile-menu-foot > .mobile-auth-card { grid-template-columns: 1fr 1.1fr; }
  .mobile-auth-card > p { font-size: 7px; }
}

/* Lilyum UI 2.1 — bespoke controls and nocturne mobile navigation */
.button-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  margin-left: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  background: transparent;
  transition: transform .35s var(--ui-ease), color .3s, background .3s, border-color .3s;
}

.button-icon .line-arrow { width: 14px; height: 14px; flex-basis: 14px; }
.primary-btn .button-icon,.analyze-btn .button-icon { color: var(--lily-acid); border-color: #111; background: #111; }
.ghost-btn .button-icon { color: var(--lily-acid); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.055); }
.button-icon.is-spark::before,.button-icon.is-spark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%,-50%);
}
.button-icon.is-spark::after { transform: translate(-50%,-50%) rotate(90deg); }
.button-icon.is-spark { transform: rotate(45deg); }
.button-icon.is-spark::before { box-shadow: 0 -3px 0 -0.2px currentColor, 0 3px 0 -0.2px currentColor; }
.hero-cta .primary-btn,.hero-cta .ghost-btn { justify-content: space-between; }
.hero-cta .primary-btn:hover .button-icon { transform: translateX(3px); }
.hero-cta .ghost-btn:hover .button-icon { transform: rotate(135deg); }
.analyze-btn .button-icon { margin: 0; }

@media (max-width: 640px) {
  .mobile-menu {
    --menu-line: rgba(244,239,230,.12);
    color: #f4efe6;
    background:
      radial-gradient(circle at 96% 7%, rgba(128,103,232,.22), transparent 30%),
      radial-gradient(circle at 4% 88%, rgba(255,113,91,.12), transparent 34%),
      linear-gradient(155deg,#0c0d0d 0%,#151414 58%,#19151d 100%);
    box-shadow: inset 0 1px rgba(255,255,255,.05);
  }
  .mobile-menu::before { opacity: .09; filter: invert(1); }
  .mobile-menu::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(76px + env(safe-area-inset-top));
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg,var(--lily-acid),rgba(128,103,232,.55),transparent 72%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .9s .12s var(--ui-ease);
  }
  .mobile-menu.open::after { transform: scaleX(1); }
  .mobile-menu-top { color: #f4efe6; border-color: transparent; }
  .mobile-menu-signature { color: #f4efe6; }
  .mobile-menu-top > small { color: rgba(244,239,230,.44); }
  .mobile-menu nav { padding-top: 6px; }
  .mobile-menu nav a {
    position: relative;
    color: #f4efe6;
    border-color: var(--menu-line);
    transition: opacity .45s, transform .55s var(--ui-ease), padding .35s var(--ui-ease), background .3s;
  }
  .mobile-menu nav a::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 10px;
    background: var(--lily-acid);
    transform: scaleY(0);
    transition: transform .35s var(--ui-ease);
  }
  .mobile-menu nav a span { color: rgba(244,239,230,.38); }
  .mobile-menu nav a b { color: #f4efe6; font-weight: 500; }
  .mobile-menu nav a i { border-color: rgba(244,239,230,.13); background: rgba(255,255,255,.045); }
  .mobile-menu nav a .line-arrow { color: var(--lily-acid); }
  .mobile-menu nav a:active { padding-left: 10px; background: rgba(255,255,255,.035); }
  .mobile-menu nav a:active::before { transform: scaleY(1); }
  .mobile-menu nav a:active i { color: #111; border-color: var(--lily-acid); background: var(--lily-acid); }
  .mobile-menu nav a:active .line-arrow { color: #111; }

  .mobile-menu-art {
    color: #151310;
    border: 1px solid rgba(255,255,255,.08);
    background:
      radial-gradient(circle at 16% 40%, rgba(216,255,62,.6), transparent 18%),
      radial-gradient(circle at 86% 20%, rgba(128,103,232,.35), transparent 32%),
      linear-gradient(135deg,#f1ece2,#d9d0c3);
    box-shadow: 0 20px 55px rgba(0,0,0,.28);
  }
  .mobile-menu-art::after { opacity: .08; }
  .mobile-menu-art svg { color: #151310; }
  .mobile-menu-art > div { border-color: rgba(17,16,14,.14); }
  .mobile-menu-art small { color: #6f685f; }
  .mobile-menu-art p { color: #151310; }
  .mobile-menu-art em { color: var(--lily-violet); }

  .mobile-menu-foot > .mobile-auth-card {
    color: #f4efe6;
    border-color: rgba(244,239,230,.11);
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(12px);
  }
  .mobile-auth-card > p { color: rgba(244,239,230,.58); }
  .mobile-auth-card > p small { color: #f4efe6; }
  .mobile-auth-card button { color: #f4efe6; border-color: rgba(244,239,230,.18); background: rgba(255,255,255,.025); }
  .mobile-auth-card .mobile-register { color: #111; border-color: var(--lily-acid); background: var(--lily-acid); }
  .mobile-auth-card .mobile-register .line-arrow { color: #111; }
  .mobile-member-actions button { color: #f4efe6; border-color: rgba(244,239,230,.16); }
  .mobile-member-actions #mobileAdmin { color: #111; background: var(--lily-acid); }
  .mobile-member-actions #mobileAdmin .line-arrow { color: #111; }
  .mobile-menu-meta button,.mobile-menu-meta a { color: rgba(244,239,230,.55); }
  .mobile-menu-meta a .line-arrow { color: var(--lily-acid); }

  .hero-cta .button-icon { width: 32px; height: 32px; flex-basis: 32px; margin-left: 10px; }
}

/* Lilyum commerce 3.0 — Safari-safe artwork detail and a calmer sales flow */
body.sale-open { overflow: hidden; }

.work-dialog {
  position: fixed !important;
  inset: 0 !important;
  width: min(1180px, calc(100vw - 32px));
  height: min(860px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto !important;
  padding: 0;
  overflow: hidden;
  color: #151310;
  background: #f4f1e9;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  box-shadow: 0 44px 130px rgba(0,0,0,.52);
  isolation: isolate;
  overscroll-behavior: contain;
}

.work-dialog[open] {
  display: grid;
  grid-template-rows: 60px minmax(0,1fr);
  animation: sale-dialog-in .42s cubic-bezier(.16,1,.3,1) both;
}

.work-dialog::backdrop {
  background: rgba(6,6,6,.76);
  -webkit-backdrop-filter: blur(13px) saturate(.72);
  backdrop-filter: blur(13px) saturate(.72);
  animation: sale-backdrop-in .3s ease both;
}

@keyframes sale-dialog-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sale-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.work-dialog .work-dialog-bar {
  position: relative;
  inset: auto;
  grid-row: 1;
  height: 60px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  color: #171512;
  background: rgba(244,241,233,.96);
  border-bottom: 1px solid rgba(17,16,14,.11);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.work-dialog-bar small { font-size: 7px; letter-spacing: .13em; }
.work-dialog .work-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; }
.work-dialog .work-back span { margin: 0; }

.work-dialog .work-detail {
  grid-row: 2;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0,1.03fr) minmax(390px,.97fr);
  overflow: hidden;
}

.work-dialog .detail-art {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #171615;
}

.work-dialog .detail-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,transparent 64%,rgba(0,0,0,.52));
}

.work-dialog .detail-art img { width: 100%; height: 100%; display: block; object-fit: cover; }

.detail-art-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: rgba(255,255,255,.88);
  font: 7px/1.2 var(--mono);
  letter-spacing: .1em;
}

.detail-art-caption b { color: var(--lily-acid); font-weight: 500; }

.work-dialog .detail-info {
  height: 100%;
  min-height: 0;
  padding: clamp(34px,4vw,54px) clamp(30px,4vw,52px) 42px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(17,16,14,.28) transparent;
}

.sale-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17,16,14,.12);
}

.sale-eyebrow .index { margin: 0; }
.sale-availability { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #625e56; font: 7px var(--mono); letter-spacing: .09em; }
.sale-availability i { width: 6px; height: 6px; border-radius: 50%; background: var(--lily-acid); box-shadow: 0 0 0 4px rgba(216,255,62,.2); }

.work-dialog .detail-info h2 {
  max-width: 12ch;
  margin: 27px 0 0;
  font: 600 clamp(43px,4.3vw,68px)/.92 var(--serif);
  letter-spacing: -3px;
}

.work-dialog .detail-info > p { max-width: 54ch; margin: 20px 0 0; color: #706a62; font-size: 11px; line-height: 1.8; }
.work-dialog .detail-story { margin-top: 28px; padding-left: 15px; border-left: 1px solid #d6cfc3; }
.work-dialog .detail-story span { color: var(--lily-violet); font: 7px var(--mono); }
.work-dialog .detail-story p { margin: 10px 0 0; color: #858077; font-size: 9px; line-height: 1.7; }

.sale-price-row { margin: 29px 0 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.sale-price-row .detail-price { margin: 0; color: #151310; font: 600 clamp(30px,3vw,42px)/1 var(--serif); letter-spacing: -1.5px; }
.sale-price-row small { padding-bottom: 4px; color: #898279; font: 7px/1.4 var(--mono); text-align: right; }

.work-dialog .product-options { gap: 9px; }
.work-dialog .product-options label { color: #79736b; }
.work-dialog .product-options select { min-height: 44px; border-color: rgba(17,16,14,.15); border-radius: 10px; background-color: rgba(255,255,255,.62); }
.work-dialog .detail-meta { margin-top: 20px; }
.work-dialog .detail-meta div { padding: 14px 0; }
.work-dialog .detail-meta b { font-size: 10px; }

.sale-assurance {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 17px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(17,16,14,.11);
}

.sale-assurance span { display: flex; align-items: center; gap: 7px; color: #706a62; font: 7px/1.35 var(--mono); }
.sale-assurance i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--lily-violet); }

.work-dialog .detail-actions { margin-top: 22px; display: grid; grid-template-columns: 1.35fr .85fr; gap: 8px; }
.work-dialog .detail-actions button { min-height: 54px; padding: 0 18px; border-radius: 100px; }
.work-dialog .detail-actions .request-work { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #151310; }
.work-dialog .request-work .line-arrow { width: 16px; color: var(--lily-acid); }
.work-dialog .detail-actions .favorite-work { border: 1px solid rgba(17,16,14,.18); background: transparent; }
.work-dialog .commission-link { min-height: 48px; margin-top: 10px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 100px; color: #625e56; font-size: 9px; }
.work-dialog .commission-link .line-arrow { width: 15px; }

@media (max-width: 1180px) and (min-width: 761px) {
  .work-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); border-radius: 20px; }
  .work-dialog .work-detail { grid-template-columns: minmax(0,1fr) minmax(380px,.88fr); }
  .work-dialog .detail-info { padding: 32px 28px 30px; }
  .work-dialog .detail-info h2 { font-size: clamp(42px,5.4vw,58px); }
  .work-dialog .detail-story { margin-top: 22px; }
  .sale-price-row { margin-top: 24px; }
  .sale-assurance { grid-template-columns: 1fr 1fr; }
  .sale-assurance span:last-child { display: none; }
}

@media (max-width: 760px) {
  .work-dialog {
    inset: 0 !important;
    width: 100vw;
    height: 100dvh;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
  }

  .work-dialog[open] { grid-template-rows: calc(60px + env(safe-area-inset-top)) minmax(0,1fr); }
  .work-dialog .work-dialog-bar { position: relative; top: auto; height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; }
  .work-dialog .work-back { min-height: 40px; color: #fff; border-color: #151310; background: #151310; }
  .work-dialog .work-detail { display: block; height: 100%; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .work-dialog .detail-art { width: 100%; height: min(48dvh,460px); min-height: 285px; }
  .detail-art-caption { left: 16px; right: 16px; bottom: 15px; }
  .work-dialog .detail-info { height: auto; min-height: 0; padding: 28px 18px calc(32px + env(safe-area-inset-bottom)); overflow: visible; }
  .sale-eyebrow { padding-bottom: 14px; }
  .work-dialog .detail-info h2 { margin-top: 23px; font-size: clamp(42px,13vw,58px); letter-spacing: -2.8px; }
  .work-dialog .detail-info > p { font-size: 12px; }
  .work-dialog .detail-story { margin-top: 23px; }
  .sale-price-row { margin: 25px 0 18px; }
  .sale-price-row .detail-price { font-size: 36px; }
  .sale-assurance { grid-template-columns: 1fr 1fr; }
  .sale-assurance span:last-child { display: none; }
  .work-dialog .detail-actions { position: static; grid-template-columns: 1fr; margin: 22px 0 0; padding: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .work-dialog .detail-actions button { min-height: 54px; }
  .work-dialog .detail-actions .favorite-work { grid-row: 2; }
  .work-dialog .commission-link { margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-dialog[open],.work-dialog::backdrop { animation: none; }
}

/* A hidden letter for Ecren — opened only by its private phrase */
body.ecren-note-open { overflow: hidden; }

.ecren-note-dialog {
  --note-ink: #f6f0e7;
  --note-gold: #e7c47e;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  color: var(--note-ink);
  background: #100f11;
  border: 0;
  border-radius: 0;
  isolation: isolate;
}

.ecren-note-dialog[open] { display: block; animation: ecren-scene-in .7s ease both; }
.ecren-note-dialog::backdrop { background: #080808; }

.ecren-note-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: max(86px,calc(58px + env(safe-area-inset-top))) 8vw max(62px,calc(40px + env(safe-area-inset-bottom)));
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 50% 45%, rgba(231,196,126,.13), transparent 24%),
    radial-gradient(circle at 11% 16%, rgba(255,113,91,.22), transparent 31%),
    radial-gradient(circle at 88% 82%, rgba(128,103,232,.3), transparent 36%),
    linear-gradient(135deg,#0d0d0e 0%,#181317 52%,#111113 100%);
}

.ecren-note-scene::before {
  content: '';
  position: fixed;
  inset: 18px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(231,196,126,.26);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.018);
}

.ecren-note-scene::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .18;
  background:
    repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),rgba(255,255,255,.045) 20%),
    repeating-linear-gradient(0deg,transparent 0,transparent calc(25% - 1px),rgba(255,255,255,.03) 25%);
  -webkit-mask-image: radial-gradient(circle at center,#000,transparent 85%);
  mask-image: radial-gradient(circle at center,#000,transparent 85%);
}

.ecren-note-content {
  position: relative;
  z-index: 6;
  width: min(880px,88vw);
  display: grid;
  justify-items: center;
  text-align: center;
  animation: ecren-letter-in 1.25s .2s cubic-bezier(.16,1,.3,1) both;
}

.ecren-note-kicker {
  margin: 0 0 25px;
  color: var(--lily-acid);
  font: 500 clamp(7px,.7vw,10px)/1.4 var(--mono);
  letter-spacing: .34em;
}

.ecren-note-content h2 {
  margin: 0;
  color: #fff;
  font: 600 clamp(64px,9vw,142px)/.79 var(--serif);
  letter-spacing: -.075em;
  text-wrap: balance;
}

.ecren-note-content h2 em {
  display: inline-block;
  color: var(--note-gold);
  font-weight: 600;
  text-shadow: 0 16px 60px rgba(231,196,126,.16);
}

.ecren-note-rule { width: min(480px,72vw); margin: clamp(28px,4vh,48px) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; color: var(--note-gold); }
.ecren-note-rule span { height: 1px; background: linear-gradient(90deg,transparent,rgba(231,196,126,.62)); transform-origin: right; animation: ecren-rule-in 1.1s 1s cubic-bezier(.16,1,.3,1) both; }
.ecren-note-rule span:last-child { background: linear-gradient(90deg,rgba(231,196,126,.62),transparent); transform-origin: left; }
.ecren-note-rule b { font-size: 11px; }

.ecren-note-copy {
  max-width: 760px;
  margin: 0;
  color: rgba(246,240,231,.82);
  font: 400 clamp(15px,1.22vw,19px)/1.9 Inter,sans-serif;
  letter-spacing: .005em;
  text-wrap: pretty;
}

.ecren-note-content footer {
  width: min(620px,76vw);
  margin-top: clamp(34px,5vh,58px);
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: rgba(246,240,231,.46);
  border-top: 1px solid rgba(246,240,231,.13);
  font: 7px/1.4 var(--mono);
  letter-spacing: .1em;
}

.ecren-note-content footer b { color: var(--note-gold); font-weight: 500; }

.ecren-note-close {
  position: fixed;
  top: max(34px,calc(18px + env(safe-area-inset-top)));
  right: max(34px,calc(18px + env(safe-area-inset-right)));
  z-index: 20;
  min-height: 44px;
  padding: 0 10px 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--note-ink);
  border: 1px solid rgba(246,240,231,.25);
  border-radius: 100px;
  background: rgba(14,14,15,.48);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font: 600 8px Inter,sans-serif;
  letter-spacing: .08em;
  transition: color .3s,background .3s,border-color .3s;
}

.ecren-note-close i { position: relative; width: 26px; height: 26px; display: block; border-radius: 50%; background: rgba(255,255,255,.08); }
.ecren-note-close i::before,.ecren-note-close i::after { content: ''; position: absolute; left: 7px; right: 7px; top: 12px; height: 1px; background: currentColor; transform: rotate(45deg); }
.ecren-note-close i::after { transform: rotate(-45deg); }
.ecren-note-close:hover { color: #111; border-color: var(--lily-acid); background: var(--lily-acid); }

.ecren-note-seal {
  position: fixed;
  left: clamp(36px,5vw,82px);
  bottom: clamp(38px,6vh,74px);
  z-index: 5;
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--note-gold);
  border: 1px solid rgba(231,196,126,.42);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(231,196,126,.045),0 18px 50px rgba(0,0,0,.28);
  transform: rotate(-8deg);
  animation: ecren-seal-in .8s 1.1s cubic-bezier(.16,1,.3,1) both;
}

.ecren-note-seal::before { content: ''; position: absolute; inset: 7px; border: 1px dashed rgba(231,196,126,.28); border-radius: 50%; }
.ecren-note-seal span,.ecren-note-seal i { font: 5px var(--mono); letter-spacing: .22em; }
.ecren-note-seal strong { margin: -2px 0; font: 600 38px/.9 var(--serif); }
.ecren-note-seal i { font-style: normal; }

.ecren-note-lily {
  --bloom-left: #ff715b;
  --bloom-center: #d8ff3e;
  --bloom-right: #8067e8;
  --bloom-line: rgba(246,240,231,.72);
  position: fixed;
  z-index: 3;
  width: clamp(180px,23vw,390px);
  height: auto;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 28px 55px rgba(0,0,0,.35));
  animation: ecren-lily-in 1.4s .35s cubic-bezier(.16,1,.3,1) both;
}

.ecren-note-lily .bloom-petal { animation: ecren-petal-breathe 4.8s 1.7s ease-in-out infinite alternate; }
.ecren-note-lily .bloom-stem,.ecren-note-lily .bloom-leaf { stroke: var(--bloom-line); }
.ecren-note-lily.lily-one { left: -5vw; top: 2vh; transform: rotate(25deg); }
.ecren-note-lily.lily-two { right: -6vw; bottom: -5vh; width: clamp(210px,27vw,450px); transform: rotate(-24deg) scaleX(-1); animation-delay: .55s; }

.ecren-orbit { position: fixed; z-index: 2; pointer-events: none; border: 1px solid rgba(231,196,126,.17); border-radius: 50%; animation: ecren-orbit-spin 28s linear infinite; }
.ecren-orbit::before { content: ''; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--lily-acid); box-shadow: 0 0 20px rgba(216,255,62,.5); }
.ecren-orbit.orbit-one { width: min(83vw,1020px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.ecren-orbit.orbit-two { width: min(57vw,700px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); border-color: rgba(128,103,232,.22); animation-direction: reverse; animation-duration: 20s; }

.ecren-confetti { position: fixed; inset: 0; z-index: 10; overflow: hidden; pointer-events: none; }
.ecren-confetti i {
  position: absolute;
  left: var(--x);
  top: -12vh;
  width: var(--w);
  height: var(--h);
  border-radius: 2px 8px 2px 8px;
  background: var(--confetti);
  box-shadow: 0 0 12px color-mix(in srgb,var(--confetti) 46%,transparent);
  opacity: .88;
  animation: ecren-confetti-fall var(--duration) var(--delay) linear infinite;
}

@keyframes ecren-scene-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ecren-letter-in { from { opacity: 0; transform: translateY(34px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ecren-rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ecren-seal-in { from { opacity: 0; transform: rotate(-20deg) scale(.6); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes ecren-lily-in { from { opacity: 0; transform: rotate(8deg) scale(.35); } to { opacity: 1; } }
@keyframes ecren-petal-breathe { from { transform: rotate(-1.8deg) scale(.98); } to { transform: rotate(1.8deg) scale(1.035); } }
@keyframes ecren-orbit-spin { to { rotate: 360deg; } }
@keyframes ecren-confetti-fall { from { transform: translate3d(0,-12vh,0) rotate(0); } to { transform: translate3d(var(--drift),124dvh,0) rotate(var(--turn)); } }

@media (max-width: 760px) {
  .ecren-note-scene { display: block; padding: calc(100px + env(safe-area-inset-top)) 22px calc(58px + env(safe-area-inset-bottom)); }
  .ecren-note-scene::before { inset: 9px; }
  .ecren-note-content { width: 100%; }
  .ecren-note-kicker { margin-bottom: 21px; font-size: 6px; letter-spacing: .25em; }
  .ecren-note-content h2 { font-size: clamp(50px,15.6vw,74px); line-height: .82; letter-spacing: -.065em; }
  .ecren-note-rule { margin: 29px 0; }
  .ecren-note-copy { max-width: 34em; font-size: 14px; line-height: 1.85; }
  .ecren-note-content footer { width: 100%; margin-top: 36px; align-items: flex-start; flex-direction: column; gap: 7px; text-align: left; }
  .ecren-note-close { top: calc(20px + env(safe-area-inset-top)); right: 18px; }
  .ecren-note-seal { position: relative; left: auto; bottom: auto; width: 76px; margin: 34px auto 0; }
  .ecren-note-seal strong { font-size: 31px; }
  .ecren-note-lily.lily-one { left: -70px; top: 5vh; width: 190px; opacity: .65; }
  .ecren-note-lily.lily-two { right: -90px; bottom: -20px; width: 230px; opacity: .7; }
  .ecren-orbit.orbit-one { width: 138vw; }
  .ecren-orbit.orbit-two { width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  .ecren-note-dialog[open],.ecren-note-content,.ecren-note-rule span,.ecren-note-seal,.ecren-note-lily,.ecren-note-lily .bloom-petal,.ecren-orbit { animation: none; }
  .ecren-confetti { display: none; }
}

/* Mobile archive only — compact portrait cards in a vertical reading flow */
@media (max-width: 960px) {
  #archive .archive-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }

  #archive .archive-card,
  #archive .archive-card:nth-child(n) {
    width: 100%;
    min-width: 0;
    margin: 0;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: clamp(150px,32vw,250px) minmax(0,1fr);
    align-items: stretch;
    gap: 16px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 17px;
    background: rgba(255,255,255,.035);
  }

  #archive .archive-art,
  #archive .archive-card .archive-art {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 11px;
  }

  #archive .archive-art > img,
  #archive .archive-art > .generated-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #archive .archive-card > div:last-child {
    min-width: 0;
    padding: 9px 4px 8px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 0;
  }

  #archive .archive-card > div:last-child > span { width: 100%; line-height: 1.5; }
  #archive .archive-card h3 { margin-top: 10px; font-size: clamp(17px,3.5vw,23px); line-height: 1.08; overflow-wrap: anywhere; }
  #archive .archive-card i { margin-top: auto; padding-top: 18px; }
}

@media (max-width: 520px) {
  #archive .archive-grid { gap: 11px; }
  #archive .archive-card,
  #archive .archive-card:nth-child(n) {
    grid-template-columns: clamp(112px,39vw,168px) minmax(0,1fr);
    gap: 12px;
    padding: 8px;
    border-radius: 15px;
  }
  #archive .archive-card h3 { font-size: clamp(15px,4.6vw,20px); }
  #archive .archive-card.process .archive-art::after,
  #archive .archive-card.sketch .archive-art::after { inset: 7px; letter-spacing: 1px; }
}
