/* Angelis Crystal Gallery: "Prism". A quiet crystal museum on Marquez Street: an entrance hall where a faceted crystal splits light into a rainbow that follows your hand, rooms of exhibits on plinths with wall labels, a visitors' book and a floor plan. */
:root {
  --wall: #f2fafa;
  --white: #ffffff;
  --mist: #e4f3f4;
  --teal: #1f7a84;
  --teal-bright: #36b6c2;
  --teal-soft: #cbe9ec;
  --ink: #18282c;
  --muted: #56676c;
  --rule: rgba(31, 122, 132, .2);
  --rule-strong: rgba(31, 122, 132, .45);
  --error: #a3261b;
  --serif: 'Castoro', 'Iowan Old Style', Georgia, serif;
  --sans: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rainbow: #ff6b6b, #ffb347, #ffe066, #7bd389, #5ec8e5, #7f8cff, #c77dff;
  --px: .72; --py: .45; --ang: 205deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 300 1.0625rem/1.7 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 2 * clamp(18px, 5vw, 64px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--teal); color: #fff; padding: .7rem 1rem; font-weight: 500; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; flex: none; }
[hidden] { display: none !important; }

.room-no { font: 500 .74rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.005em; }
h1 em, h2 em { color: var(--teal); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; }
.lede { font-size: 1.18rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.5rem; background: var(--teal); color: #fff; border: 1px solid var(--teal); text-decoration: none; font: 500 .82rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.btn:hover { background: #17636b; }
.btn--line { background: transparent; color: var(--teal); }
.btn--line:hover { background: var(--teal); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

/* Header: white, one hairline. No filter or transform so the mobile room list is never trapped. */
.header { position: sticky; top: 0; z-index: 60; background: var(--white); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.word { display: flex; flex-direction: column; line-height: 1.05; }
.word span:first-child { font: 400 1.25rem/1 var(--serif); color: var(--ink); }
.word span:last-child { font: 500 .6rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--teal); margin-top: .35rem; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-plan-title, .nav-close-li { display: none; }
.nav-link { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .55rem; text-decoration: none; }
.nav-link .rn { font: 400 1.05rem/1 var(--serif); color: var(--muted); transition: color .2s; }
.nav-link .rt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-link:hover .rn, .nav-link:focus-visible .rn, .nav-link.here .rn { color: var(--teal); }
.nav-link:hover .rt, .nav-link:focus-visible .rt { width: auto; height: auto; clip: auto; overflow: visible; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: .35rem .6rem; background: var(--ink); color: #fff; font: 400 .74rem/1.2 var(--sans); letter-spacing: .04em; pointer-events: none; z-index: 5; }
.nav-link.here .rn { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.cart-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .3rem .35rem .3rem .9rem; background: var(--white); border: 1px solid var(--rule-strong); color: var(--teal); font: 500 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.cart-btn:hover { border-color: var(--teal); }
.cart-count { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 .4rem; background: var(--teal); color: #fff; font: 400 1rem/1 var(--serif); letter-spacing: 0; }
.cart-btn.pop .cart-count { animation: glint .6s ease; }
@keyframes glint { 40% { background: var(--teal-bright); box-shadow: 0 0 0 6px rgba(54, 182, 194, .25); } }
.nav-toggle, .nav-close { display: none; min-width: 44px; height: 44px; place-items: center; padding: 0 .9rem; background: var(--white); border: 1px solid var(--rule-strong); color: var(--teal); font: 500 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.back-link { margin-left: auto; color: var(--teal); font-weight: 500; text-underline-offset: 4px; }

@media (max-width: 1099px) {
  .nav-toggle { display: grid; flex: 0 0 auto; }
  .nav-list { display: none; }
  .nav-list.open { display: grid; position: fixed; inset: 0; z-index: 200; height: 100dvh; overflow-y: auto; align-content: center; grid-template-columns: 1fr 1fr; gap: 0; padding: 5rem clamp(18px, 6vw, 48px) 2.5rem; background: var(--wall); }
  .nav-list.open .nav-plan-title { display: block; grid-column: 1 / -1; font: 400 2rem/1 var(--serif); margin-bottom: 1.2rem; }
  .nav-list.open li:not(.nav-plan-title):not(.nav-close-li) { border: 1px solid var(--rule-strong); margin: 0 -1px -1px 0; background: var(--white); }
  .nav-list.open .nav-link { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 96px; padding: .8rem .9rem; place-items: initial; }
  .nav-list.open .nav-link .rn { font-size: 1.4rem; color: var(--teal); }
  .nav-list.open .nav-link .rt { position: static; width: auto; height: auto; clip: auto; overflow: visible; transform: none; background: none; color: var(--ink); padding: 0; white-space: normal; font-size: .9rem; }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 14px; right: 16px; }
  .nav-close { display: grid; padding: 0; width: 44px; }
}
@media (max-width: 420px) { .cart-word { display: none; } .cart-btn { padding: .3rem; } .word span:first-child { font-size: 1.1rem; } .nav { gap: .5rem; } }

/* Room I: the entrance hall and the prism */
.entrance { background: var(--wall); }
.wall { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 70% 35%, #ffffff 0%, var(--wall) 55%, #e6f4f5 100%); }
.beam { position: absolute; left: 70%; top: 38%; width: 140vmax; height: 30vmin; margin-top: -15vmin; transform-origin: 0 50%; transform: rotate(var(--ang)); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--rainbow)); clip-path: polygon(0 47%, 100% 0, 100% 100%, 0 53%); opacity: .34; filter: blur(6px);
  -webkit-mask: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 85%); mask: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 85%); mix-blend-mode: multiply; }
.caustics { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.caustics span { position: absolute; width: 22vmin; height: 22vmin; border-radius: 50%; opacity: .45; filter: blur(14px); mix-blend-mode: multiply;
  background: conic-gradient(from 0deg, var(--rainbow), #ff6b6b); transition: left .5s cubic-bezier(.2, .8, .2, 1), top .5s cubic-bezier(.2, .8, .2, 1); }
.caustics span:nth-child(1) { left: calc((1 - var(--px)) * 60% + 4%); top: calc((1 - var(--py)) * 50% + 30%); }
.caustics span:nth-child(2) { left: calc((1 - var(--px)) * 40% + 18%); top: calc((1 - var(--py)) * 30% + 8%); width: 12vmin; height: 12vmin; opacity: .35; }
.caustics span:nth-child(3) { left: calc(var(--px) * 30% + 50%); top: calc((1 - var(--py)) * 40% + 52%); width: 9vmin; height: 9vmin; opacity: .4; }
.caustics span:nth-child(4) { left: calc((1 - var(--px)) * 25% + 30%); top: calc(var(--py) * 30% + 60%); width: 16vmin; height: 16vmin; opacity: .25; }
.entrance-grid { position: relative; display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.placard { max-width: 34rem; }
.placard h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 1.02; }
.placard h1 span { display: block; }
.placard h1 em { display: block; font-style: italic; }
.exhibition { margin-top: 1rem; font: italic 400 1.3rem/1.3 var(--serif); color: var(--muted); }
.placard-text { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-strong); display: grid; gap: .8rem; }
.placard-notes { margin-top: 1.1rem; display: grid; gap: .3rem; font-size: .92rem; color: var(--muted); }
.placard-notes li { padding-left: 1.1rem; position: relative; }
.placard-notes li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--teal); }
.crystal-stage { display: grid; justify-items: center; align-content: center; }
.crystal { width: min(300px, 62vw); height: auto; filter: drop-shadow(0 30px 40px rgba(31, 122, 132, .22)); }
.glint { transform-origin: 150px 66px; opacity: .9; }
.stage-hint { margin-top: 1rem; font: italic 400 .95rem/1.3 var(--serif); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .crystal { animation: hover 7s ease-in-out infinite; }
  @keyframes hover { 50% { transform: translateY(-8px); } }
  .glint { animation: sparkle 3.2s ease-in-out infinite; }
  @keyframes sparkle { 0%, 70%, 100% { opacity: 0; transform: scale(.4); } 80% { opacity: 1; transform: scale(1); } }
  .placard > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .placard > :nth-child(2) { animation-delay: .1s; } .placard > :nth-child(3) { animation-delay: .2s; } .placard > :nth-child(4) { animation-delay: .3s; } .placard > :nth-child(n+5) { animation-delay: .4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
@media (max-width: 899px) {
  .beam { left: 50%; top: 72%; }
  .crystal-stage { order: -1; }
  .crystal { width: min(220px, 56vw); }
  .stage-hint { display: none; }
}
@media (min-width: 900px) { .entrance-grid { grid-template-columns: 1.1fr .9fr; align-items: center; min-height: min(84vh, 760px); } }
.gallery-view { position: relative; }
.gallery-view img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.gallery-view figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0 1rem; font: 500 .72rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 599px) { .gallery-view img { aspect-ratio: 4 / 3; } .gallery-view figcaption span:last-child { display: none; } }

/* The collection: rooms with horizontal gallery wings */
.collection { padding: clamp(4rem, 8vw, 6.5rem) 0 1rem; background: var(--white); }
.collection-head { max-width: 1240px; display: grid; gap: .8rem; }
.collection-head p:last-child { max-width: 40rem; color: var(--muted); }
.room { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.room-head { display: grid; grid-template-columns: 1fr auto; gap: .2rem 2rem; align-items: end; padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule); }
.room-head .room-no { margin-bottom: .3rem; grid-column: 1 / -1; }
.room-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.room-intro { grid-column: 1; color: var(--muted); max-width: 36rem; }
.room-count { grid-column: 2; grid-row: 2; font: italic 400 1rem/1.3 var(--serif); color: var(--teal); }
.wing-arrows { grid-column: 2; grid-row: 3; display: flex; gap: .4rem; justify-content: flex-end; }
.wing-btn { width: 44px; height: 44px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--rule-strong); color: var(--teal); }
.wing-btn:hover { border-color: var(--teal); }
.wing-btn:first-child .icon { transform: none; }
.wing { display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); overflow-x: auto; scroll-snap-type: x mandatory; padding: 2.4rem max(clamp(18px, 5vw, 64px), (100% - 1240px) / 2) 2rem; scroll-padding-inline: max(clamp(18px, 5vw, 64px), (100% - 1240px) / 2); scrollbar-width: thin; scrollbar-color: var(--teal-soft) transparent; }
.wing::-webkit-scrollbar { height: 6px; } .wing::-webkit-scrollbar-thumb { background: var(--teal-soft); }
.exhibit { flex: 0 0 clamp(250px, 26vw, 330px); scroll-snap-align: start; display: flex; flex-direction: column; }
.plinth { position: relative; display: flex; flex-direction: column; align-items: center; }
.vitrine { width: 100%; background: var(--wall); box-shadow: 0 26px 30px -26px rgba(24, 40, 44, .45); transition: box-shadow .4s; }
.vitrine img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.plinth-block { width: 78%; height: 46px; background: linear-gradient(180deg, #fbfdfd 0%, #eef6f7 100%); border: 1px solid var(--rule); border-top: 0; box-shadow: inset 0 6px 8px -6px rgba(24, 40, 44, .18); }
.exhibit.in-cart .vitrine, .exhibit:hover .vitrine { box-shadow: 0 30px 34px -24px rgba(31, 122, 132, .55), 0 0 0 1px var(--teal-soft); }
.label { margin-top: 1.1rem; padding: 1rem 1.1rem 1.15rem; background: var(--white); border: 1px solid var(--rule); display: flex; flex-direction: column; flex: 1; }
.cat { font: 500 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.label h4 { margin-top: .35rem; font: 400 1.22rem/1.2 var(--serif); }
.label-desc { margin-top: .35rem; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.label-meta { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.price { font: 400 1.25rem/1 var(--serif); color: var(--ink); }
.cur { font-family: var(--sans); font-weight: 400; margin-right: .06em; }
.avail { font-size: .8rem; color: var(--muted); }
.buy { margin-top: auto; padding-top: .9rem; }
.add-btn { width: 100%; min-height: 44px; padding: .55rem .9rem; background: transparent; border: 1px solid var(--teal); color: var(--teal); font: 500 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.add-btn:hover { background: var(--teal); color: #fff; }
.stepper { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--teal); background: var(--mist); }
.stepper button, .qty button { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--teal); }
.stepper button:hover, .qty button:hover { background: var(--teal-soft); }
.stepper button:disabled, .qty button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { font: 400 1.1rem/1 var(--serif); }
.wing-end { flex: 0 0 120px; display: grid; place-items: center; }
.wing-end span { writing-mode: vertical-rl; font: italic 400 .95rem/1 var(--serif); color: var(--muted); }
@media (max-width: 599px) { .room-head { grid-template-columns: 1fr; } .room-count { grid-column: 1; grid-row: auto; } .wing-arrows { display: none; } .exhibit { flex-basis: 78vw; } }

/* Room VI: the founder's note */
.story { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--wall); }
.story-grid { display: grid; gap: 2.6rem; align-items: center; }
.wall-text h2 { margin-bottom: 1.4rem; }
.wall-text p + p { margin-top: 1rem; }
.story-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-photo figcaption { margin-top: .6rem; font: italic 400 .95rem/1.3 var(--serif); color: var(--muted); }
.principles { margin-top: clamp(3rem, 6vw, 4.5rem); }
.principles h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.principles dl { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.principles dl div { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.principles dt { font: 400 1.2rem/1.2 var(--serif); color: var(--teal); }
.principles dd { margin-top: .35rem; color: var(--muted); }
.goal { margin-top: 2rem; max-width: 46rem; font: italic 400 1.3rem/1.45 var(--serif); }
.goal span { display: block; font: 500 .72rem/1.4 var(--sans); font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } .principles dl { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; } }

/* At the desk: gift wrapping */
.wrapping { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.wrapping-grid { display: grid; gap: 2rem; align-items: center; }
.wrapping-grid figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.wrapping-grid h2 { margin-bottom: 1rem; }
.wrapping-grid p:not(.room-no) { color: var(--muted); }
.wrapping-grid .shelf { display: none; }
@media (min-width: 900px) { .wrapping-grid { grid-template-columns: .9fr 1.1fr .7fr; gap: 3.5rem; } .wrapping-grid .shelf { display: block; margin-top: 8rem; } }

/* Room VII: the visitors' book */
.book { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--wall); }
.book h2 { margin-bottom: 2rem; }
.book-page { background: #fffefb; border: 1px solid var(--rule); box-shadow: 0 30px 40px -34px rgba(24, 40, 44, .4); padding: 1.6rem clamp(1rem, 4vw, 2.6rem) 2.2rem;
  background-image: repeating-linear-gradient(180deg, transparent 0 47px, rgba(31, 122, 132, .16) 47px 48px); background-position: 0 4.3rem; }
.book-cols, .entries li { display: grid; grid-template-columns: minmax(0, 1fr) 9rem 9rem; gap: 1.2rem; align-items: baseline; }
.book-cols { padding-bottom: .8rem; border-bottom: 2px solid var(--rule-strong); font: 500 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.entries li { padding: .85rem 0; min-height: 48px; }
.entries blockquote p { font: italic 400 1.2rem/1.5 var(--serif); }
.who, .from { font: italic 400 1.05rem/1.3 var(--serif); color: var(--muted); }
@media (max-width: 699px) {
  .book-cols { display: none; }
  .book-page { background-image: none; }
  .entries li { grid-template-columns: 1fr; gap: .2rem; border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
  .who::after { content: ','; }
  .entries li { grid-template-areas: 'q q' 'w f'; grid-template-columns: auto 1fr; column-gap: .4rem; }
  .entries blockquote { grid-area: q; } .who { grid-area: w; } .from { grid-area: f; }
}

/* Room VIII: visitor information */
.info { padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem); }
.info-grid { display: grid; gap: 2.4rem; }
.info-side h2 { margin-bottom: 1.6rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font: 500 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); padding-bottom: .6rem; }
.hours th, .hours td { text-align: left; padding: .75rem 0; border-top: 1px solid var(--rule); font-weight: 300; }
.hours td { text-align: right; font-family: var(--serif); }
.today { margin-top: 1rem; font: italic 400 1.02rem/1.4 var(--serif); color: var(--teal); }
.qa { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.qa div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.qa dt { font: 400 1.18rem/1.3 var(--serif); }
.qa dd { margin-top: .35rem; color: var(--muted); }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1.6fr; gap: 5rem; } .qa { grid-template-columns: 1fr 1fr; column-gap: 2.4rem; } }
.getting-here { margin-top: clamp(3rem, 6vw, 4.5rem); }
.getting-here h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.here { font-style: normal; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule-strong); }
.here > div { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.here .k { display: block; font: 500 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: .4rem; }
.here a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--teal); }
.here-addr > a { display: inline-block; margin-top: .5rem; color: var(--teal); font-weight: 500; }
@media (min-width: 800px) { .here { grid-template-columns: 1.4fr 1fr 1fr; column-gap: 2rem; } }

/* Gallery rules (policies) */
.rules { padding: 3rem 0; background: var(--wall); border-top: 1px solid var(--rule); }
.rule-list { display: grid; gap: 1.8rem; }
.rule-list h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.rule-list p { color: var(--muted); font-size: .95rem; }
.rule-list a { display: inline-block; margin-top: .5rem; color: var(--teal); font-weight: 500; text-underline-offset: 4px; }
@media (min-width: 800px) { .rule-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Footer: the floor plan */
.footer { background: var(--white); border-top: 1px solid var(--rule-strong); padding: 3.5rem 0 2rem; }
.footer-top { display: grid; gap: 2.4rem; }
.footer-line { font: italic 400 1.5rem/1.3 var(--serif); }
.footer-line em { color: var(--teal); }
.footer h2 { font: 500 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: .9rem; }
.footer li + li { margin-top: .45rem; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule-strong); }
.plan-room { display: flex; flex-direction: column; justify-content: space-between; gap: .4rem; min-height: 76px; padding: .55rem .6rem; border: 1px solid var(--rule); font-size: .78rem; line-height: 1.25; }
.plan-room .rn { font: 400 1rem/1 var(--serif); color: var(--teal); }
.plan-entrance { grid-column: span 2; background: var(--wall); }
.plan-figurines { grid-column: span 2; grid-row: span 2; }
.plan-testimonials { grid-column: span 2; }
.plan-info { grid-column: span 4; background: var(--wall); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.1fr 1.5fr 1fr 1fr; align-items: start; } }

/* Cart: the collection list, an archival index card */
.cart-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(24, 40, 44, .38); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(440px, 100%); display: flex; flex-direction: column; background: #fffefb; border-left: 1px solid var(--rule-strong); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(31, 122, 132, .12) 31px 32px); }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; background: var(--white); border-bottom: 3px double var(--rule-strong); }
.cart-head h2 { font-size: 1.6rem; }
.cart-close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--rule-strong); color: var(--teal); }
.cart-items { flex: 1; overflow-y: auto; padding: .4rem 1.4rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; background: var(--wall); }
.cart-item h3 { font: 400 1.05rem/1.25 var(--serif); }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); background: var(--white); }
.qty button { width: 40px; height: 40px; }
.qty output { min-width: 2ch; text-align: center; font: 400 1rem/1 var(--serif); }
.cart-item-sub { font: 400 1.05rem/1 var(--serif); }
.cart-remove { margin-top: .3rem; padding: .3rem 0; background: none; border: 0; font-size: .82rem; color: var(--muted); text-decoration: underline; }
.cart-empty { padding: 3rem 0; text-align: center; }
.cart-empty p { font: italic 400 1.4rem/1.3 var(--serif); margin-bottom: 1.2rem; }
.cart-foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 3px double var(--rule-strong); background: var(--white); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; font-size: .92rem; }
.cart-total .price { font-size: 1.45rem; }
.cart-foot .btn { width: 100%; }
.cart-foot p { margin-top: .8rem; font-size: .84rem; color: var(--muted); text-align: center; }

/* Order page */
.order-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); background: var(--wall); }
.order-intro { max-width: 40rem; margin-bottom: 2.2rem; }
.order-intro h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; margin-bottom: .9rem; }
.order-intro .lede { color: var(--muted); }
.order { display: grid; gap: 2rem; align-items: start; }
.order-form { background: var(--white); border: 1px solid var(--rule); padding: 2rem clamp(1.1rem, 4vw, 2.2rem); }
.order-form h2, .summary h2 { font-size: 1.7rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 500; font-size: .92rem; }
.field label span { font-weight: 300; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule-strong); border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-hint { margin-top: .35rem; font-size: .82rem; color: var(--muted); }
.field-error { margin-top: .35rem; font-size: .88rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }
.order-submit { width: 100%; margin-top: .6rem; }
.summary { background: #fffefb; border: 1px solid var(--rule-strong); padding: 2rem clamp(1.1rem, 4vw, 2rem); background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(31, 122, 132, .1) 31px 32px); }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: .8rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.summary td small { display: block; margin-top: .2rem; color: var(--muted); font-size: .84rem; }
.summary td:last-child { text-align: right; font-family: var(--serif); white-space: nowrap; padding-left: 1rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; }
.summary-total .price { font-size: 1.5rem; color: var(--teal); }
.summary-note { margin-top: 1.2rem; }
.summary-note a { color: var(--teal); text-underline-offset: 4px; }
.sent { max-width: 44rem; background: var(--white); border: 1px solid var(--rule); padding: 2.4rem clamp(1.1rem, 4vw, 2.4rem); }
.sent h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 1rem; }
.sent-copy { margin-top: 2rem; }
.sent-copy pre { margin-top: 1rem; padding: 1rem; background: var(--wall); border: 1px solid var(--rule); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; }
@media (min-width: 900px) { .order { grid-template-columns: 1.4fr 1fr; gap: 3rem; } .summary { position: sticky; top: 96px; } }

/* Legal pages */
.legal-head { background: var(--wall); border-bottom: 1px solid var(--rule); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.5rem); }
.legal-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.legal-body { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.6rem; margin: 2.2rem 0 .7rem; }
.legal p + p { margin-top: .9rem; }
.legal ul, .legal ol { padding-left: 1.3rem; list-style: disc; margin-top: .6rem; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: .45rem; }
.legal a { color: var(--teal); text-underline-offset: 3px; overflow-wrap: anywhere; }

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