/* ==========================================================================
   Opening scene: the forest, the wordmark between the trees
   ========================================================================== */

.opening { position: relative; height: 250vh; background: #221A10; }   /* the autumn forest floor, so no green shows while it loads */
.opening__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* shown until the forest is drawn (and without JS): the autumn mist light behind dark ground, so the
   opening is warm gold from the first moment, never green */
.opening .forest, .closing .forest {
  background:
    radial-gradient(ellipse 70% 60% at 56% 42%, #F0E3C4 0%, #C9AA78 40%, #6E5A3A 75%, #221A10 100%);
}
.closing .forest { background: radial-gradient(ellipse 70% 60% at 56% 42%, #E6D7CB 0%, #B09A90 40%, #4E3D40 75%, #1B1416 100%); }


.opening__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(34, 26, 16, 0.82) 0%, rgba(34, 26, 16, 0.25) 26%, rgba(34, 26, 16, 0) 44%);
}

.opening__titles {
  position: absolute; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem 3rem;
  padding: 0 var(--gutter) clamp(1.75rem, 5vh, 3.5rem); color: var(--ivory);
}
.opening__slate { font-family: var(--display); font-style: italic; font-size: var(--t-sm); color: var(--ivory-soft); }
.opening__line { max-width: 24ch; font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.2; }
.opening__enter {
  display: inline-flex; align-items: center; gap: 1rem; min-height: 48px;
  font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
}
.opening__enter::after { content: ""; width: 3.5rem; height: 1px; background: currentColor; transition: width 0.5s var(--ease-out); }
.opening__enter:hover::after { width: 5rem; }
.motion-ok .opening__titles > * { animation: rise-soft 1.6s var(--ease-out) both; }
.motion-ok .opening__line { animation-delay: 1.1s !important; }
.motion-ok .opening__slate { animation-delay: 0.8s !important; }
.motion-ok .opening__enter { animation-delay: 1.5s !important; }
@keyframes rise-soft { from { opacity: 0; transform: translateY(10px); } }

.opening__slate { grid-column: 1 / -1; }

/* leaves (petals, snow) falling in front of the trees */
.forest__falling { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* the logo: --q goes 0 (solid) to 1 (gone into the mist); it erodes from the center outwards,
   softening and lifting as it goes, the way the letters of a typed name do */
.wordmark__logo {
  --q: 0;
  display: block; width: min(78vw, 40rem); height: auto;
  opacity: calc(1 - var(--q) * var(--q));
  filter: blur(calc(var(--q) * 14px));
  transform: translate3d(0, calc(var(--q) * -28px), 0) scale(calc(1 + var(--q) * 0.08));
  -webkit-mask-image: radial-gradient(ellipse 70% 95% at 50% 50%, transparent calc(var(--q) * 140% - 40%), #000 calc(var(--q) * 140%));
  mask-image: radial-gradient(ellipse 70% 95% at 50% 50%, transparent calc(var(--q) * 140% - 40%), #000 calc(var(--q) * 140%));
}
.motion-ok .wordmark__logo { will-change: opacity, filter, transform; }


/* the mist turning into the page */
.opening__page { position: absolute; inset: 0; background: var(--lichen); opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .opening { height: 210vh; }
  .opening__titles { grid-template-columns: 1fr; gap: 1rem; }
  .wordmark { margin-bottom: 14vh; }
}

/* ==========================================================================
   The collection: an art-directed gallery
   ========================================================================== */

.collection { position: relative; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem); }
.collection__intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.5rem); align-items: end; margin-bottom: clamp(1rem, 2.4vw, 1.75rem); }
.collection__title { grid-column: 1 / span 8; font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.005em; } /* bold (her wish, 2026-11-07) */
.collection__aside { grid-column: 9 / -1; display: grid; gap: 0.75rem; justify-items: start; padding-bottom: 0.6rem; }
.collection__lede { max-width: 34ch; color: var(--bark-soft); }
.collection__shop { font-weight: 500; color: var(--bark); }

.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  --tile-gap: clamp(1rem, 2.6vw, 2.75rem);
  column-gap: var(--tile-gap); row-gap: clamp(1.75rem, 3vw, 2.5rem); align-items: start;
}

.gallery__interlude {
  grid-column: 1 / -1; padding: clamp(0.5rem, 2vw, 1.5rem) 0; max-width: 22ch; margin-left: auto;
  font-family: var(--display); font-style: italic; font-size: var(--t-xl); line-height: 1.12; text-align: right; color: var(--bark);
}
.gallery__interlude a { text-decoration-color: var(--cherry); text-decoration-thickness: 1px; }
.gallery__interlude a:hover { color: var(--cherry); }

.state { grid-column: 1 / -1; padding: 4rem 0; font-family: var(--display); font-size: var(--t-md); }
.state .btn { margin-top: 1rem; }

@media (max-width: 900px) {
  .collection__title { grid-column: 1 / -1; }
  .collection__aside { grid-column: 1 / -1; margin-top: 0.6rem; gap: 0.5rem; padding-bottom: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__interlude { max-width: none; text-align: left; }
}

/* ==========================================================================
   The field guide: a book of plates
   ========================================================================== */

.guide { background: var(--moss); color: var(--ivory); padding: clamp(4rem, 9vw, 8rem) var(--gutter); overflow-x: clip; } /* a closed book slides to the middle */
/* the heading in its original layout (title on the left, the line about the journal on the right; she asked to keep
   it, 2026-11-07), with "field guide" set in gilded italic in the title; the line only mentions the index where
   there is one */
.guide__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.5rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.guide__title { grid-column: 1 / span 7; font-size: var(--t-2xl); }
.guide__title em { font-style: italic; font-weight: 500; color: #D9B262; }
.guide__lede { grid-column: 9 / -1; align-self: end; max-width: 34ch; color: var(--ivory-soft); }
.guide__lede-wide { display: inline; }
.guide__lede-narrow { display: none; }
@media (max-width: 900px) { .guide__lede-wide { display: none; } .guide__lede-narrow { display: inline; } }

.guide__book { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
/* the index never runs past the book (her wish, 2026-11-07, once the collection grew to 45): it is exactly as tall as
   the book beside it, grouped by collection, and scrolls inside itself (home.js keeps the page you're on in view), its
   top and bottom fading out so it reads as a list that continues */
.guide__index { position: relative; align-self: stretch; min-height: 16rem; }
.guide__index-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.2rem 0.6rem 2rem 0;
  scrollbar-width: thin; scrollbar-color: rgba(242, 234, 228, 0.3) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.2rem, #000 calc(100% - 2.6rem), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 1.2rem, #000 calc(100% - 2.6rem), transparent 100%); }
.guide__index-group { margin: 1.1rem 0 0.35rem; font-family: var(--ui); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-soft); opacity: 0.75; }
.guide__index-group:first-child { margin-top: 0.4rem; }
.guide__index ol { display: grid; gap: 0; counter-reset: none; }
.guide__index button {
  display: grid; grid-template-columns: 3.4rem 1fr; align-items: baseline; width: 100%; min-height: 32px; padding: 0.15rem 0;
  border: 0; background: none; text-align: left; color: var(--ivory-soft); font-family: var(--display); font-size: 1.02rem;
  transition: color 0.3s;
}
.guide__index button:hover { color: var(--ivory); }
.guide__index button[aria-current="true"] { color: var(--ivory); font-style: italic; }
.guide__index .num { font-size: var(--t-xs); font-style: normal; font-family: var(--ui); letter-spacing: 0.04em; }

/* ---------- the book: leather boards, paper pages, gold Treeline covers (field-book.js) ---------- */
.book, .seen { --board: #2E0911; --board-hi: #4A1220; --gold: #D9B262; --paper-1: #F4EDDC; --paper-2: #E4D8BD;
  /* pebbled leather grain, lit from the upper left */
  --leather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.5' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23a4a4a4' surfaceScale='2.6'%3E%3CfeDistantLight azimuth='235' elevation='50'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* (the colours and leather above are shared with the "Seen On" scrapbook) */
.book {
  max-width: 960px; width: 100%; margin: 0 auto; padding: 2.4% 0; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.book:focus-visible { outline: 2px solid var(--ivory); outline-offset: 8px; }
.book__inner { position: relative; transition: transform 0.9s cubic-bezier(0.3, 0.1, 0.2, 1); }
.book[data-mode="landscape"][data-closed="front"] .book__inner { transform: translateX(-25%); }
.book[data-mode="landscape"][data-closed="back"] .book__inner { transform: translateX(25%); }
.book__block { position: relative; z-index: 1; box-shadow: 0 -3px 0 -1px #C99A45, 0 3px 0 -1px #C99A45; } /* gilt page edges */
.book[data-closed="front"] .book__block, .book[data-closed="back"] .book__block { box-shadow: none; }

/* the leather boards of the open book, with a tooled gold border, a spine and a moss ribbon */
.book__boards {
  position: absolute; inset: -2.6% -1.6%; z-index: 0; border-radius: 5px; transition: opacity 0.5s ease;
  background: var(--leather), var(--board); background-blend-mode: overlay, normal;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 0 18px rgba(0, 0, 0, 0.55);
}
.book[data-closed="front"] .book__boards, .book[data-closed="back"] .book__boards { opacity: 0; }
.book__boards::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% - 2.2%); width: 4.4%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.06) 50%, rgba(0, 0, 0, 0.35));
}
.book__boards::after { content: ''; position: absolute; inset: 0.9%; border: 1px solid var(--gold); outline: 1px solid rgba(217, 178, 98, 0.5); outline-offset: -4px; border-radius: 3px; pointer-events: none; }
.book__ribbon { position: absolute; left: calc(50% + 3%); top: 0; width: 1.6%; height: 104%; z-index: 3; background: linear-gradient(90deg, #2A3425, #3E4C35 50%, #2A3425); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 96%, 0 100%); }
.book[data-mode="portrait"] .book__boards { inset: -2.4% -3.2% -2.4% -5%; }
.book[data-mode="portrait"] .book__boards::before { left: 0; width: 5%; }
.book[data-mode="portrait"] .book__ribbon { left: 70%; }

/* pages: sized by the book, so type is set in container units and always fits the page */
.page { background: var(--paper-1); overflow: hidden; container-type: size; color: var(--bark); }
.page--left { background: linear-gradient(90deg, var(--paper-1) 80%, var(--paper-2)), var(--paper-1); }
.page--right { background: linear-gradient(90deg, var(--paper-2), var(--paper-1) 20%), var(--paper-1); }
.book[data-mode="portrait"] .page--left { background: linear-gradient(90deg, var(--paper-2), var(--paper-1) 14%); }
.pg { position: relative; height: 100%; padding: 9cqw 9cqw 8cqw; display: flex; flex-direction: column; gap: 2.4cqw; }
.page--left .pg { justify-content: center; }
.pg__no { font-family: var(--display); font-style: italic; font-size: 4cqw; color: var(--cherry); }
.pg__specimen { position: relative; aspect-ratio: 4 / 5; max-height: 62cqh; margin: 2cqw auto 0; outline: 1px solid var(--rule); outline-offset: 2cqw; background: var(--lichen); }
.pg__specimen img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pg__specimen .photo-slot__drawing { display: none; }
.pg__fig { font-family: var(--display); font-style: italic; font-size: 3.2cqw; color: var(--bark-soft); margin-top: 3.5cqw; text-align: center; }
/* the plant drawn alongside each hijab, larger (her wish, 2026-11-07): the lower right of the notes page */
.pg__drawing { position: absolute; right: -2%; bottom: 1%; width: 52%; color: var(--cherry); opacity: 0.4; pointer-events: none; }
.pg__name { font-family: var(--display); font-weight: 400; font-size: 11.5cqw; line-height: 0.98; letter-spacing: -0.015em; margin-top: 4cqw; }
.pg__kind { font-size: 3.6cqw; color: var(--bark-soft); }
.pg__notes { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1cqw 4cqw; padding-top: 3cqw; border-top: 1px solid var(--rule); font-size: 3.5cqw; }
.pg__notes dt { font-family: var(--display); font-style: italic; color: var(--bark-soft); }
.pg__notes dd { margin: 0; }
.pg__note { position: relative; font-family: var(--display); font-style: italic; font-size: 3.7cqw; line-height: 1.45; color: var(--bark-soft); max-width: 92%; }
.pg__swatches { position: relative; display: flex; gap: 1.6cqw; }
.pg__swatches li { width: 5.5cqw; height: 5.5cqw; border: 1px solid var(--rule); }
.pg__price { position: relative; margin-top: auto; font-family: var(--display); font-size: 5cqw; color: var(--cherry); }
.pg__actions { position: relative; display: flex; flex-wrap: wrap; gap: 2cqw 4cqw; align-items: center; font-size: 3.6cqw; }
.pg__actions .btn { min-height: 44px; padding: 0 4.4cqw; font-size: max(13px, 3.4cqw); }
.pg__actions .form-error:empty { display: none; }
.motion-ok .page--right .botanical :is(path, circle) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s ease-in-out; }
.motion-ok .page--right.is-current .botanical :is(path, circle) { stroke-dashoffset: 0; }

/* covers: deep cherry leather, gold foil, falling leaves (book-cover.js) */
.page--cover { background: var(--board); }
.cover { position: relative; height: 100%; container-type: size; overflow: hidden;
  background: var(--leather), radial-gradient(ellipse at 35% 25%, var(--board-hi), transparent 70%), var(--board);
  background-blend-mode: overlay, normal, normal;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 6cqw 0 6cqw -5cqw rgba(0, 0, 0, 0.45); }
.cover--back { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset -6cqw 0 6cqw -5cqw rgba(0, 0, 0, 0.45); }
.cover::after { /* the satin of polished leather, and darker, handled edges */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 28%, rgba(255, 220, 220, 0.07) 42%, transparent 58%), radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(10, 0, 3, 0.45) 100%);
}
.cover__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__words { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 13cqw 8cqw 0; }
.cover__logo { display: block; width: 34cqw; aspect-ratio: 1035 / 545; margin-bottom: 5cqw;
  background: linear-gradient(135deg, #F3DC9A, #C99A45 40%, #F0D38A 60%, #B0812F);
  -webkit-mask: url(/media/logo/safira-light.svg) center / contain no-repeat; mask: url(/media/logo/safira-light.svg) center / contain no-repeat; }
.cover__big, .cover__small {
  background: linear-gradient(135deg, #F3DC9A, #C99A45 45%, #F0D38A 65%, #B8862F); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}
.cover__big { font-family: var(--display); font-style: italic; font-size: 12cqw; line-height: 1.05; }
.cover__small { font-size: 3.6cqw; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 2.5cqw; }
.fall { animation: fall var(--fd) linear var(--delay) infinite; }
.fall path { fill: rgba(217, 178, 98, 0.22); }
.fall__sway { transform-box: fill-box; transform-origin: 50% -60%; animation: sway var(--sd) ease-in-out var(--delay) infinite alternate; }
.fall__flutter { transform-box: fill-box; transform-origin: center; animation: flutter var(--fl) ease-in-out var(--delay) infinite; }
@keyframes fall { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(var(--dist)); opacity: 0; } }
@keyframes sway { 0% { transform: translateX(calc(var(--amp) * -1)) rotate(-28deg); } 100% { transform: translateX(var(--amp)) rotate(28deg); } }
@keyframes flutter { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(0.15); } 55% { transform: scaleX(-0.2); } }
@media (prefers-reduced-motion: reduce) { .fall, .fall__sway, .fall__flutter { animation: none; } .book__inner { transition: none; } }

/* without the page-turning engine: the pages simply sit side by side and scroll */
.book--static .book__boards { display: none; }
.book--static .book__block { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.book--static .page { flex: 0 0 min(50%, 440px); aspect-ratio: 440 / 580; scroll-snap-align: start; }

.guide__turn { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.guide__turn button {
  min-height: 48px; padding: 0 1.25rem; border: 1px solid var(--rule-light); background: none; color: var(--ivory);
  font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.03em;
}
.guide__turn button:hover:not(:disabled) { border-color: var(--ivory); }
.guide__turn button:disabled { opacity: 0.35; cursor: default; }
.guide__count { font-family: var(--display); font-style: italic; color: var(--ivory-soft); }


/* on a phone the book is the same, only a little narrower, so its leather boards (which reach past the pages,
   furthest on the spine side) sit wholly on the screen with an even margin (her wish, 2026-11-07) */
@media (max-width: 700px) {
  .book { padding-inline: 1.05rem 0.65rem; }
}
@media (max-width: 900px) {
  .guide__head { grid-template-columns: 1fr; }
  .guide__title, .guide__lede { grid-column: 1; }
  .guide__lede { margin-top: 1rem; }
  .guide__book { grid-template-columns: 1fr; }
  .guide__index { display: none; }
  .guide__turn { grid-column: 1; }
  .guide__turn button { padding: 0 0.9rem; white-space: nowrap; }
  .guide__count { text-align: center; font-size: var(--t-sm); }
}

/* ==========================================================================
   Story
   ========================================================================== */

.story { background: var(--cherry-deep); color: var(--ivory); padding: clamp(5rem, 11vw, 10rem) var(--gutter); overflow: hidden; }
.story__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); row-gap: clamp(2.5rem, 6vw, 5rem); }
.story__headline { grid-column: 1 / span 9; grid-row: 1; font-size: clamp(3.2rem, 9.5vw, 10rem); line-height: 0.92; letter-spacing: -0.02em; position: relative; z-index: 1; }
.story__fig--a { grid-column: 9 / -1; grid-row: 1 / span 2; margin-top: 12vw; }
.story__fig--b { grid-column: 1 / span 4; grid-row: 2 / span 2; margin-top: 2vw; }
.story__text { grid-column: 6 / span 5; grid-row: 3; max-width: 36rem; font-family: var(--display); font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.7; }
.story__text p + p { margin-top: 1.1em; }
.story__text .placeholder-tag { font-family: var(--ui); }
.story__sign { font-style: italic; color: var(--ivory-soft); }
.story__sign strong { font-weight: 600; color: var(--ivory); }
/* typing (assets/js/ui/typewriter.js): letters keep their places while hidden and settle in out of a soft
   glow, like ink catching the light; a slim caret blinks after the last one */
.story__text.is-typing .tw { opacity: 0; text-shadow: 0 0 10px rgba(255, 236, 196, 0.95); transition: opacity 0.35s ease-out, text-shadow 0.9s ease-out; }
.story__text.is-typing .tw.is-on { opacity: 1; text-shadow: 0 0 0 rgba(255, 236, 196, 0); }
.story__text .tw.is-caret { box-shadow: 1.5px 0 0 rgba(240, 236, 225, 0.85); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { box-shadow: 1.5px 0 0 transparent; } }
.story__fig .media-slot { width: 100%; }
.fabric-touch { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fabric-touch:active { cursor: grabbing; }
.fabric-touch img, .fabric-touch__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fabric-touch:not(.is-live) { cursor: auto; }
.fabric-touch.is-live { touch-action: none; background: var(--cherry-deep); }
.story__frame:has(.fabric-touch:not(.is-live)) + .fabric-touch__hint { display: none; }
.story__film { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #3a2a14; }
.story__fig figcaption { margin-top: 0.6rem; font-family: var(--display); font-style: italic; font-size: var(--t-xs); color: var(--ivory-soft); }

/* a single fine gold line around each picture, with a little air between, like a gallery print */
.story__frame { position: relative; }
.story__film, .story__frame .fabric-touch { outline: 1px solid rgba(214, 178, 98, 0.85); outline-offset: 10px; }

@media (max-width: 900px) {
  .story__headline { grid-column: 1 / -1; }
  .story__fig--a { grid-column: 4 / -1; grid-row: 2; margin-top: 0; }
  .story__fig--b { grid-column: 1 / span 8; grid-row: 3; margin-top: -14vw; position: relative; z-index: 1; }
  .story__text { grid-column: 1 / -1; grid-row: 4; }
}

/* ==========================================================================
   Closing scene
   ========================================================================== */

.closing { position: relative; height: 190vh; background: var(--understory); }
.closing__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.closing__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(26, 33, 23, 0.95) 0%, rgba(26, 33, 23, 0.6) 34%, rgba(26, 33, 23, 0) 62%); }
.closing .wordmark { color: #2A1C1F; margin-bottom: 26vh; }
.closing .wordmark__logo { width: min(52vw, 32rem); }
.closing__content {
  position: absolute; inset: auto 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); row-gap: 2rem;
  align-items: end; padding: 0 var(--gutter) clamp(2rem, 6vh, 4rem); color: var(--ivory);
}
.closing__cta { grid-column: 1 / span 6; display: grid; gap: 1.25rem; justify-items: start; }
.closing__line { font-family: var(--display); font-size: var(--t-xl); line-height: 1.05; }

@media (max-width: 900px) {
  .closing { height: 170vh; }
  .closing .wordmark { margin-bottom: 52vh; }
  .closing .wordmark__logo { width: min(60vw, 22rem); }
  .closing__cta { grid-column: 1 / -1; }
}

/* ==========================================================================
   Launch sale banner (assets/js/ui/promo.js; wording and prices in config.js)
   ========================================================================== */

.promo {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center;
  /* after the hijabs, running edge to edge down to the field guide */
  margin: clamp(3rem, 7vw, 6rem) calc(var(--gutter) * -1) calc(clamp(3rem, 7vw, 6rem) * -1); padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  background: var(--cherry); color: var(--ivory);
}
.promo__drawing { position: absolute; right: -2%; top: -10%; width: min(34vw, 22rem); color: var(--ivory); opacity: 0.12; pointer-events: none; }
.promo__copy { position: relative; display: grid; gap: 1.1rem; justify-items: start; }
.promo__headline { font-family: var(--display); font-weight: 400; font-size: var(--t-2xl); line-height: 0.98; letter-spacing: -0.015em; }
.promo__text { max-width: 36ch; color: var(--ivory-soft); }
.promo__offers { position: relative; display: grid; gap: 0; }
.promo__offer { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule-light); }
.promo__offer:first-child { border-top: 1px solid var(--rule-light); }
.promo__offer dt { font-family: var(--display); font-style: italic; font-size: var(--t-md); }
.promo__offer dd { margin: 0; text-align: right; }
.promo__now { font-family: var(--display); font-size: var(--t-lg); }
.promo__was { margin-left: 0.3rem; color: var(--ivory-soft); }
.promo__save { display: block; font-size: var(--t-xs); letter-spacing: 0.03em; color: var(--ivory-soft); }
@media (max-width: 900px) {
  .promo { grid-template-columns: 1fr; }
}

/* the ribbon above the hijabs: the sale's name, with the prices together underneath it */
.promo-ribbon { display: grid; gap: 0.3rem; font-family: var(--ui); justify-items: start; margin: 0 0 clamp(1rem, 2vw, 1.5rem); padding: 1.1rem 1.4rem 1.2rem; background: var(--cherry); color: var(--ivory); }
.promo-ribbon__name { font-weight: 500; font-size: var(--t-md); letter-spacing: 0.02em; line-height: 1.25; }
.promo-ribbon__name s { font-weight: 400; }
.promo-ribbon__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0; font-size: var(--t-base); color: var(--ivory-soft); }
.promo-ribbon__prices span + span::before { content: "·"; margin: 0 0.8rem; color: var(--ivory-soft); }
.promo-ribbon b { font-weight: 500; color: var(--ivory); }
.promo-ribbon s { margin-left: 0.2rem; color: var(--ivory-soft); }

/* ==========================================================================
   The lock box: the packaging every hijab ships in, opening as its band scrolls past (assets/js/ui/chest.js)
   ========================================================================== */

/* the band holds still under the header for a short scroll while the key turns and the lid opens */
.lockbox-pin { position: relative; height: calc(100svh - var(--header-h) + 80vh); background: #141b11; }
.lockbox {
  position: sticky; top: var(--header-h); min-height: calc(100svh - var(--header-h));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem);
  align-items: center; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); overflow: hidden; isolation: isolate; color: var(--ivory);
  /* wine velvet under a soft spotlight, the box's own polka dots echoed faintly behind it */
  background: radial-gradient(ellipse 60% 75% at 72% 52%, #6b2637 0%, #3f1420 48%, #220b12 100%);
}
.lockbox::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(243, 242, 238, 0.07) 0 7px, transparent 7.6px) 0 0 / 34px 34px,
    radial-gradient(circle, rgba(243, 242, 238, 0.07) 0 7px, transparent 7.6px) 17px 17px / 34px 34px;
  -webkit-mask: radial-gradient(ellipse 55% 80% at 72% 50%, #000, transparent 75%); mask: radial-gradient(ellipse 55% 80% at 72% 50%, #000, transparent 75%); }
.lockbox::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: 0.6; }
.lockbox__text { grid-column: 1 / span 5; align-self: start; margin-top: clamp(0.5rem, 5vh, 3.5rem); display: grid; gap: 1rem; justify-items: start; }
.lockbox__kicker { font-size: var(--t-xs); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivory-soft); }
.lockbox__title { font-size: var(--t-xl); line-height: 1.05; }
.lockbox__body { max-width: 30rem; font-family: var(--display); font-style: italic; font-weight: 600; font-size: var(--t-md); line-height: 1.4; color: var(--ivory); }
.lockbox__link { margin-top: 0.4rem; padding-bottom: 0.2rem; border-bottom: 1px solid currentColor; color: var(--ivory); text-decoration: none;
  font-size: var(--t-xs); letter-spacing: 0.28em; text-transform: uppercase; }
.lockbox__stage { grid-column: 6 / -1; position: relative; height: clamp(380px, 66vh, 580px); perspective: 2300px; perspective-origin: 60% 36%; }
html:not(.motion-ok) .lockbox-pin { height: auto; }
html:not(.motion-ok) .lockbox { position: relative; top: 0; }
.lockbox .chest { left: 62%; top: 47%; }

/* Background trials: the forest at night with fireflies, and blush stone with a linen tabletop */
.lockbox--forest { background: radial-gradient(ellipse 55% 70% at 72% 55%, rgba(255, 214, 140, 0.22), transparent 70%), linear-gradient(180deg, #121a10, #1f2a1b 60%, #141b11); }
.lockbox--forest::before { -webkit-mask: none; mask: none; background:
    radial-gradient(circle at 12% 30%, rgba(255, 222, 140, 0.9) 0 1.5px, rgba(255, 210, 120, 0.25) 3px, transparent 9px),
    radial-gradient(circle at 34% 78%, rgba(255, 222, 140, 0.8) 0 1.5px, rgba(255, 210, 120, 0.22) 3px, transparent 8px),
    radial-gradient(circle at 48% 18%, rgba(255, 222, 140, 0.7) 0 1px, rgba(255, 210, 120, 0.2) 3px, transparent 7px),
    radial-gradient(circle at 58% 70%, rgba(255, 222, 140, 0.9) 0 1.5px, rgba(255, 210, 120, 0.25) 3px, transparent 9px),
    radial-gradient(circle at 88% 22%, rgba(255, 222, 140, 0.8) 0 1.5px, rgba(255, 210, 120, 0.22) 3px, transparent 8px),
    radial-gradient(circle at 94% 76%, rgba(255, 222, 140, 0.7) 0 1px, rgba(255, 210, 120, 0.2) 3px, transparent 7px),
    radial-gradient(circle at 70% 10%, rgba(255, 222, 140, 0.6) 0 1px, rgba(255, 210, 120, 0.18) 3px, transparent 6px),
    radial-gradient(circle at 24% 56%, rgba(255, 222, 140, 0.6) 0 1px, rgba(255, 210, 120, 0.18) 3px, transparent 6px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.55)); }
/* with motion on, live fireflies (assets/js/ui/fireflies.js) take the place of the still ones */
.motion-ok .lockbox--forest::before { background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.55)); }
.lockbox__fireflies { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
:not(.lockbox--forest) > .lockbox__fireflies { display: none; }
.lockbox--blush { color: var(--bark);
  background: linear-gradient(180deg, transparent 68%, rgba(51, 38, 31, 0.12) 68.3%, transparent 69%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px) 0 68% / 100% 32% no-repeat,
    linear-gradient(180deg, #e8dcd3 0 68%, #efe6dc 68%, #e2d5c8 100%); }
.lockbox--blush::before { -webkit-mask: radial-gradient(ellipse 50% 60% at 72% 40%, #000, transparent 75%); mask: radial-gradient(ellipse 50% 60% at 72% 40%, #000, transparent 75%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), transparent 70%); }
.lockbox--blush .lockbox__kicker, .lockbox--blush .lockbox__body { color: var(--bark-soft); }
.lockbox--blush .lockbox__link { color: var(--cherry); }

/* Phones: the words on top and the box underneath, both on one screen while it holds, as on the
   laptop. Sized on the small viewport height (svh) so Safari's address bar and toolbar never cut it;
   the words are set a little smaller so the box keeps as much of the screen as possible. */
@media (max-width: 640px) {
  .lockbox { height: calc(100svh - var(--header-h)); grid-template-rows: auto minmax(0, 1fr); row-gap: 0.75rem; align-items: stretch;
    padding-top: clamp(1rem, 3svh, 1.75rem); padding-bottom: clamp(0.75rem, 2.5svh, 1.5rem); }
  .lockbox__text, .lockbox__stage { grid-column: 1 / -1; }
  .lockbox__text { margin-top: 0; gap: 0.5rem; }
  .lockbox__kicker { font-size: 0.7rem; }
  .lockbox__title { font-size: clamp(1.55rem, 7.2vw, 2rem); }
  .lockbox__body { font-size: clamp(0.98rem, 4.2vw, 1.1rem); line-height: 1.38; }
  .lockbox__link { margin-top: 0.1rem; }
  .lockbox__stage { height: auto; min-height: 0; perspective-origin: 50% 30%; }
  html:not(.motion-ok) .lockbox { height: auto; }
  html:not(.motion-ok) .lockbox__stage { height: min(62svh, 520px); }
  .lockbox .chest { left: 56%; top: 54%; }   /* nudged right (the turned box leans left); the lid opens into the space above */
}

.chest { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.chest__body, .chest__lid, .chest__lidbox { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.cf, .chest__pool, .chest__shadow, .chest__contact, .chest__key { position: absolute; left: 0; top: 0; box-sizing: border-box; }
.cf { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* black with white polka dots, in a brushed-aluminium frame with silver corner caps and rivets */
.cf--dots {
  border: 7px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 18px rgba(0, 0, 0, 0.35);
  outline: 1px solid rgba(255, 255, 255, 0.22); outline-offset: -1px;   /* a crisp highlight on the very edge of the metal */
  border-image: linear-gradient(135deg, #eef0f2, #9ba1a7 28%, #f6f7f8 48%, #8b9197 72%, #dfe2e5) 1;
  background:
    var(--grain-tile),
    radial-gradient(circle, #f3f2ee 0 8.5px, transparent 9.3px) 0 0 / 40px 40px,
    radial-gradient(circle, #f3f2ee 0 8.5px, transparent 9.3px) 20px 20px / 40px 40px,
    #0c0c0c;
}
.cf--dots::before { content: ""; position: absolute; inset: -7px; pointer-events: none;
  background:
    radial-gradient(circle, #fff 0 1.6px, #7c8288 2.4px, #c9cdd1 3.2px, transparent 3.8px) left 4px top 4px / 16px 16px no-repeat,
    radial-gradient(circle, #fff 0 1.6px, #7c8288 2.4px, #c9cdd1 3.2px, transparent 3.8px) right 4px top 4px / 16px 16px no-repeat,
    radial-gradient(circle, #fff 0 1.6px, #7c8288 2.4px, #c9cdd1 3.2px, transparent 3.8px) left 4px bottom 4px / 16px 16px no-repeat,
    radial-gradient(circle, #fff 0 1.6px, #7c8288 2.4px, #c9cdd1 3.2px, transparent 3.8px) right 4px bottom 4px / 16px 16px no-repeat,
    linear-gradient(140deg, #fbfbfc, #aab0b5 46%, #e6e8ea 70%, #8c9298) left top / 24px 24px no-repeat,
    linear-gradient(220deg, #fbfbfc, #aab0b5 46%, #e6e8ea 70%, #8c9298) right top / 24px 24px no-repeat,
    linear-gradient(40deg, #fbfbfc, #aab0b5 46%, #e6e8ea 70%, #8c9298) left bottom / 24px 24px no-repeat,
    linear-gradient(320deg, #fbfbfc, #aab0b5 46%, #e6e8ea 70%, #8c9298) right bottom / 24px 24px no-repeat; }
/* light falls from the upper left: the top brightest, the front lit, the sides in shade */
.cf--dots::after { content: ""; position: absolute; inset: -7px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.28)); }
/* a glossy finish: a soft highlight across the lid */
.cf--top::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0.05) 54%, transparent 64%), linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.12)); }
.cf--front::after { background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.07) 34%, transparent 46%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.3)); }
.cf--side::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.5)); }
.cf--back::after { background: rgba(0, 0, 0, 0.45); }
.cf--base { background: #080808; }
.cf--lidfront { transform-style: preserve-3d; }

/* inside: matte black lining, catching only a little of the light from the front; the far wall and the
   floor sit deeper in shade, and the top of every wall is finished with a strip of brushed silver */
.cf--lining { background: var(--grain-tile), linear-gradient(180deg, #232325, #0d0d0e 70%, #070708); box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.55); }
.cf--lining-back { background: var(--grain-tile), linear-gradient(180deg, #19191a, #09090a 60%, #050506); }
.cf--lining-side { background: var(--grain-tile), linear-gradient(180deg, #1c1c1e, #0a0a0b 65%, #060607); }
.cf--floor { background: var(--grain-tile), radial-gradient(ellipse at 50% 72%, #1d1d1f, #0a0a0b 70%, #050505); box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.85); }
.cf--underside { background: var(--grain-tile), radial-gradient(ellipse at 50% 55%, #252527, #0c0c0d 75%); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6); }
.cf--rim { background: linear-gradient(90deg, #858b91, #f3f4f5 28%, #b4b9be 55%, #eceef0 78%, #8a9096); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28); }

/* the clasp: a latch plate on the body, the hasp hanging from the lid over it */
.chest__latch { position: absolute; left: 50%; top: -6px; width: 58px; height: 62px; transform: translateX(-50%); border-radius: 5px;
  background: linear-gradient(180deg, #f7f8f9, #b6bbc0 40%, #eef0f1 60%, #9298a0); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.chest__latch::after { content: ""; position: absolute; left: 50%; top: 30px; width: 12px; height: 20px; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 5px, #0a0a0a 0 4px, #5d6268 4.8px, transparent 5.5px), linear-gradient(#0a0a0a, #0a0a0a) 50% 7px / 4px 12px no-repeat; }
.chest__hasp { position: absolute; left: 50%; bottom: -26px; width: 64px; height: 52px; margin-left: -32px; transform-origin: 50% 0; border-radius: 6px 6px 8px 8px;
  background:
    linear-gradient(180deg, transparent 0 18px, rgba(0, 0, 0, 0.25) 18px 20px, transparent 20px),
    linear-gradient(90deg, #8f959b, #f4f5f6 30%, #c3c7cb 55%, #eff1f2 75%, #8a9096);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.35); }

/* a name plate where the reference has its maker's badge */
.chest__plate { position: absolute; left: 36px; bottom: 24px; padding: 5px 14px 6px; border-radius: 3px;
  background: linear-gradient(180deg, #f2f3f4, #a9afb4 55%, #e2e5e7); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  font-family: var(--display); font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; color: #5d6268; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }


/* on the ground: a pool of warm light around the box, its soft shadow falling back and to the right, and the dark line where it touches down */
.chest__pool { background: radial-gradient(ellipse at center, rgba(255, 226, 170, 0.24), rgba(255, 214, 150, 0.08) 36%, transparent 64%); }
/* soft edges come from the gradients and a box-shadow, not filter: blur, which is slow to redraw on shapes turning in 3D */
.chest__shadow { border-radius: 50%; background: radial-gradient(ellipse at 60% 44%, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 40%, rgba(0, 0, 0, 0.18) 60%, transparent 74%); }
.chest__contact { border-radius: 14px; background: rgba(0, 0, 0, 0.85); box-shadow: 0 0 12px 5px rgba(0, 0, 0, 0.8); }


/* the key: a silver key with a ring bow, drawn flat and turned edge-on in 3D; its tip is its origin */
.chest__key { width: 214px; height: 80px; margin: -26px 0 0 -214px; transform-origin: 214px 26px; transform-style: preserve-3d; opacity: 0;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45)); }
.chest__key > span { position: absolute; display: block; }
.key__bow { left: 0; top: -16px; width: 84px; height: 84px; border-radius: 50%; border: 15px solid transparent; box-sizing: border-box;
  background: linear-gradient(140deg, #fbfbfc, #9aa0a6 45%, #eceef0 65%, #858b91) border-box;
  -webkit-mask: radial-gradient(circle, transparent 0 17px, #000 17.8px); mask: radial-gradient(circle, transparent 0 17px, #000 17.8px); }
.key__shaft { left: 78px; top: 20px; width: 136px; height: 12px; border-radius: 1px 3px 3px 1px;
  background: linear-gradient(180deg, #f6f7f8, #a7adb2 55%, #d9dcdf); }
.key__bit { left: 168px; top: 29px; width: 36px; height: 24px;
  background:
    linear-gradient(90deg, transparent 0 6px, rgba(0, 0, 0, 0.55) 6px 7px, transparent 7px 13px, rgba(0, 0, 0, 0.55) 13px 14px, transparent 14px),
    linear-gradient(180deg, #e9ebed, #959ba1);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 78% 70%, 78% 100%, 55% 100%, 55% 55%, 30% 55%, 30% 100%, 0 100%); }

/* ==========================================================================
   Seen On: a dark cherry scrapbook page, like an antique fashion magazine kept in a Victorian rose garden.
   Photographs sit as physical prints (torn-edge, mounted, plain, an oval cameo) among a few dark roses,
   thorny vines, tape, lace, a stamp, a wax-sealed note and a pressed flower. assets/js/ui/seen-on.js places
   everything: prints come in as --x/--y/--w/--r/--z and --ratio (their own shape), phones use --mspan/--mw/--mr.
   ========================================================================== */
.seen {
  --cream: #EADFC8; --antique-gold: #C9A86A; --oxblood: #3A0A12; --wine: #5A1220; --ink: #3A1A14;
  --paper: var(--grain), radial-gradient(ellipse at 30% 25%, rgba(255, 250, 235, 0.35), transparent 60%),
    radial-gradient(circle at 82% 78%, rgba(150, 100, 50, 0.16), transparent 35%), linear-gradient(170deg, #EFE5CF, #DCCBA6);
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(ellipse 75% 60% at 50% 42%, rgba(128, 22, 40, 0.5), transparent 72%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(10, 2, 5, 0.78) 100%),
    var(--leather),
    linear-gradient(170deg, #3E0B16, #250610 55%, #15030A);
  background-blend-mode: normal, normal, overlay, normal;
  color: var(--cream);
}
.seen[hidden] { display: none; }
/* film grain over the whole page, and a fine double gold rule like a magazine's border */
.seen::after { content: ""; position: absolute; z-index: 20; inset: 0; background: var(--grain); mix-blend-mode: screen; opacity: 0.85; pointer-events: none; }
.seen::before {
  content: ""; position: absolute; z-index: 0; inset: clamp(0.6rem, 1.4vw, 1.1rem); pointer-events: none;
  border: 1px solid rgba(201, 168, 106, 0.32); box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(201, 168, 106, 0.16);
}

/* the masthead */
.seen__masthead { position: relative; z-index: 6; text-align: center; margin-bottom: clamp(0.9rem, 1.2vw, 1rem); }
.seen__kicker { margin: 0 0 1rem; font-family: var(--ui); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--antique-gold); }
.seen__title {
  margin: 0 -0.3em 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 1; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}
.seen__divider { width: min(19rem, 72%); margin: 1.1rem auto 0; }
.seen__divider svg { display: block; width: 100%; height: auto; max-width: none; overflow: visible; }

/* the page the prints are laid out on */
.seen__row { position: relative; z-index: 2; max-width: 68rem; margin: 0 auto; }
/* a page and the sheet inside it that holds the layout */
.seen__page:not(.is-current, .is-leaving) { display: none; }
.seen__sheet { position: relative; display: block; aspect-ratio: 16 / 7.7; }

/* more than one page: each page is a sheet in a small pile, the edges of the pages beneath showing */
.seen--paged .seen__sheet {
  background: var(--leather), radial-gradient(ellipse at 50% 40%, #4C101C, #2C0811 80%); background-blend-mode: overlay, normal;
  border: 1px solid rgba(201, 168, 106, 0.24); border-radius: 3px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
}
.seen--paged .seen__row::before, .seen--paged .seen__row::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px; border: 1px solid rgba(201, 168, 106, 0.18);
  background: linear-gradient(170deg, #3A0B15, #23060D); transform: translate(5px, 6px);
}
.seen--paged .seen__row::after { z-index: -2; transform: translate(10px, 11px); opacity: 0.8; }
/* changing pages: the old page lies over the new one while the rose petals blow it away */
.seen__page.is-leaving { position: absolute; z-index: 30; inset: 0 0 auto 0; pointer-events: none; }
.seen__petals { position: absolute; z-index: 40; inset: 0; pointer-events: none; }
.seen__petals span { position: absolute; left: 0; top: 0; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.4)); }
.seen__petals svg { display: block; max-width: none; }

/* a handwritten "next page" in the page's corner */
.seen__more {
  position: absolute; right: 1.2rem; bottom: 0.7rem; z-index: 25; padding: 0.2rem 0.3rem; border: 0; background: none; cursor: pointer;
  font-family: var(--script); font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: var(--cream); transition: color 0.3s, transform 0.4s var(--ease-out);
}
.seen__more:hover { color: #fff; transform: translateX(4px); }
.seen__more:focus-visible { outline: 2px solid var(--antique-gold); outline-offset: 3px; }

/* the page buttons */
.seen__pager { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: clamp(0.8rem, 3vw, 2rem); margin: clamp(1.4rem, 2.5vw, 2rem) auto 0; }
.seen__pager[hidden] { display: none; }
/* numbered: 1, 2 ... in gold rings, the current page filled */
.seen__num {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgba(201, 168, 106, 0.6); border-radius: 50%;
  background: none; cursor: pointer; font-family: var(--display); font-size: 1.15rem; line-height: 1; color: var(--cream); transition: background 0.3s, color 0.3s;
}
.seen__num:hover { border-color: var(--antique-gold); color: #fff; }
.seen__num[aria-current="page"] { background: var(--antique-gold); border-color: var(--antique-gold); color: var(--oxblood); }
.seen__num:focus-visible { outline: 2px solid var(--antique-gold); outline-offset: 3px; }

/* three photographs to a page, in a row (seen-on.js page) */
.seen .seen__row { max-width: 60rem; }
.seen .seen__sheet { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(1rem, 3vw, 2.4rem); padding: 1.6rem 1.2rem 3.4rem; }
.seen .seen__slot { position: relative; left: auto; top: auto; width: 100%; align-self: start; transform: rotate(var(--mr)); }
/* "Safira, out in the world." centred under the photographs, a short gold rule either side (it sat off to the right; her wish, 2026-11-08) */
.seen__lede { position: relative; z-index: 3; max-width: 82rem; margin: clamp(1rem, 2vw, 1.4rem) auto 0; text-align: center; font-family: var(--script); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.2; color: var(--cream); }
.seen__lede::before, .seen__lede::after { content: ""; display: inline-block; width: clamp(1.6rem, 4vw, 3rem); height: 1px; margin: 0 0.9rem; vertical-align: middle; background: var(--antique-gold); opacity: 0.6; }

/* reviews (seen-on.js reviewsHtml), laid out the way hijab and fashion shops do (her wish, 2026-11-07): one row of
   compact paper cards you swipe through (arrows on a laptop), never taller than one card. Each is mainly words: stars,
   the review in the clean body face (cut short after a few lines), the name in the display face and the hijab worn,
   with the reviewer's photo, if any, beside the name. A card opens the whole review, photo large, in a dialog. */
/* close under "Safira, out in the world." so the reviews start higher up (her wish, 2026-11-08) */
.seen__reviews { position: relative; z-index: 3; max-width: 82rem; margin: clamp(1.1rem, 2vw, 1.6rem) auto 0; text-align: center; }
.seen__reviews[hidden] { display: none; }
/* set like the "Seen On" title, smaller: clear capitals, widely spaced, with a line of script under it */
.seen__reviews-title { margin: 0 -0.3em 0.6rem 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); }
/* "In your own words." in the display face's italic (the script face was hard to read here; her wish, 2026-11-07) */
.seen__reviews-lede { margin: 0 0 clamp(1.8rem, 3.5vw, 2.6rem); font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.3; letter-spacing: 0.02em; color: var(--antique-gold); }
.seen__stars { flex: none; font-size: 0.95rem; letter-spacing: 0.1em; line-height: 1; color: #A8803A; white-space: nowrap; }
.seen__stars span { color: rgba(58, 26, 20, 0.2); }
/* the average, once there are reviews */
.seen__score { margin: -0.8rem 0 1.3rem; font-family: var(--ui); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--cream); }
.seen__score .seen__stars { color: var(--antique-gold); margin-right: 0.35rem; }
.seen__score .seen__stars span { color: rgba(234, 223, 200, 0.25); }
.seen__score strong { font-weight: 500; }
/* the row: cards side by side, scrolling sideways and snapping card by card; on a phone the next card peeks in */
.seen__carousel { position: relative; display: flex; align-items: center; gap: 0.6rem; max-width: 78rem; margin: 0 auto; }
.seen__track { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(15.5rem, 78vw, 19rem); gap: 1.1rem; align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0.4rem; padding: 0.6rem 0.4rem 1.1rem;
  scrollbar-width: none; text-align: left; }
.seen__track::-webkit-scrollbar { display: none; }
.seen__carousel.is-still .seen__track { justify-content: center; }
.seen__carousel.is-still .seen__arrow { visibility: hidden; }
.seen__arrow { flex: none; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(201, 168, 106, 0.6); border-radius: 50%; background: rgba(42, 6, 14, 0.4);
  font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--cream); cursor: pointer; transition: background 0.3s, color 0.3s, opacity 0.3s; }
.seen__arrow:hover:not(:disabled) { background: var(--antique-gold); color: var(--oxblood); }
.seen__arrow:disabled { opacity: 0.3; cursor: default; }
.seen__arrow:focus-visible { outline: 2px solid var(--antique-gold); outline-offset: 3px; }
.seen__card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.7rem; min-height: 13.5rem; padding: 1.25rem 1.3rem 1.1rem;
  background: var(--paper); color: var(--ink); box-shadow: 0 14px 22px -14px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.3); cursor: pointer;
  transition: transform 0.3s ease; }
.seen__card:hover { transform: translateY(-3px); }
.seen__card:focus-visible { outline: 2px solid var(--antique-gold); outline-offset: 3px; }
.seen__card-words { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
  font-family: var(--ui); font-size: 0.97rem; line-height: 1.6; color: #2E1A16; -webkit-font-smoothing: antialiased; }
.seen__card-foot { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; padding-top: 0.8rem; border-top: 1px solid rgba(90, 18, 32, 0.16); }
.seen__card-photo { flex: none; width: 3.4rem; height: 3.4rem; overflow: hidden; border-radius: 0.35rem; box-shadow: 0 0 0 2px #FBF6EA, 0 2px 5px rgba(0, 0, 0, 0.3); }
.seen__card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seen__card-name { min-width: 0; margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.2; color: var(--wine); }
.seen__card-name small { display: block; margin-top: 0.2rem; font-family: var(--ui); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(58, 26, 20, 0.62); }
.seen__card-name a { color: inherit; text-underline-offset: 3px; }
.seen__card.is-example { outline: 1px dashed rgba(90, 18, 32, 0.5); outline-offset: -0.4rem; }
.seen__card-example { font-family: var(--ui); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--wine); }
/* until there are reviews: one line inviting the first */
.seen__reviews-empty { margin: 0 auto; max-width: 30rem; font-family: var(--ui); font-size: 0.98rem; line-height: 1.55; color: var(--cream); }
/* a whole review, opened from its card: the photo large beside (or above, on a phone) the words */
.seen-rev { width: min(46rem, 92vw); max-height: 92dvh; margin: auto; padding: 0; overflow: auto; border: 0;
  background: linear-gradient(170deg, #F3EAD6, #E6D6B6); color: #2E1A10; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); animation: rise-in 0.5s var(--ease-out) both; }
.seen-rev.is-closing { animation: sink-out 0.3s ease-in both; }
.seen-rev::backdrop { background: rgba(20, 4, 8, 0.82); }
.seen-rev__body { display: grid; gap: 1.4rem; padding: clamp(1.6rem, 5vw, 2.6rem); }
.seen-rev__body.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.seen-rev__photo { width: 100%; max-height: 70dvh; object-fit: cover; aspect-ratio: 4 / 5; box-shadow: 0 0 0 6px #FBF6EA, 0 12px 24px -10px rgba(0, 0, 0, 0.5); }
.seen-rev__words p { margin: 0.8rem 0 0; font-family: var(--ui); font-size: 1.05rem; line-height: 1.7; }
.seen-rev__words .seen__card-name { margin-top: 1.2rem; font-size: 1.3rem; }
@media (max-width: 700px) { .seen-rev__body.has-photo { grid-template-columns: 1fr; } .seen__arrow { display: none; } }
.seen__review-btn {
  margin-top: clamp(1.8rem, 3vw, 2.4rem); min-height: 48px; padding: 0 1.8rem; border: 1px solid var(--antique-gold); background: none; cursor: pointer;
  font-family: var(--ui); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream);
  transition: background 0.3s, color 0.3s;
}
.seen__review-btn:hover { background: var(--antique-gold); color: var(--oxblood); }
.seen__review-btn:focus-visible { outline: 2px solid var(--antique-gold); outline-offset: 3px; }

/* a print */
.seen__slot { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z); margin: 0; transform: rotate(var(--r)); transition: transform 0.6s var(--ease-out); }
.seen__slot[hidden] { display: none; }
.seen__open {
  position: relative; z-index: 1; display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); transition: filter 0.6s var(--ease-out);
}
button.seen__open { cursor: zoom-in; }
button.seen__open:focus-visible { outline: 2px solid var(--antique-gold); outline-offset: 6px; }
.seen__print { position: relative; display: block; padding: 5%; background: var(--paper); }
.seen__photo { position: relative; display: block; aspect-ratio: var(--ratio); overflow: hidden; background: #2A0910; }
.seen__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a faint darkening at the corners, as on an old print (laid over the photograph, which itself is untouched) */
.seen__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 1.6rem rgba(40, 8, 12, 0.35); pointer-events: none; }
.seen__slot--deckle .seen__print { padding: 6.5%; }
/* a cabinet card: a thick mount with a gilt line round the photograph and a printed label below */
.seen__slot--mount .seen__print { padding: 7% 7% 2%; background: var(--grain), linear-gradient(170deg, #E9DCBE, #D4C29C); }
.seen__slot--mount .seen__photo { outline: 1px solid rgba(160, 125, 70, 0.7); outline-offset: 3px; }
.seen__label { display: block; padding: 0.7em 0 0.2em; text-align: center; font-family: var(--display); font-style: italic; font-size: clamp(0.56rem, 0.75vw, 0.76rem); letter-spacing: 0.08em; color: #6E4B38; white-space: nowrap; }
/* a Victorian oval cameo */
.seen__slot--oval .seen__print { padding: 9% 9% 2%; background: var(--grain), radial-gradient(ellipse at 50% 40%, #5E1524, #3A0A12 75%); border: 1px solid rgba(201, 168, 106, 0.45); }
.seen__slot--oval .seen__photo { border-radius: 50%; box-shadow: 0 0 0 3px #B8975A, 0 0 0 4px #3A0A12, 0 0 0 5px rgba(201, 168, 106, 0.6); }
.seen__slot--oval .seen__label { color: var(--antique-gold); }

/* an empty spot (preview only) */
.seen__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; padding: 0.4rem;
  border: 1px dashed rgba(201, 168, 106, 0.55); border-radius: inherit; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(234, 223, 200, 0.035) 0 8px, transparent 8px 16px), #2B0A11;
  font-family: var(--display); font-style: italic; font-size: clamp(0.8rem, 1.1vw, 1rem); color: var(--cream);
}
.seen__plus { font-style: normal; font-size: 1.6rem; line-height: 1; color: var(--antique-gold); }
.seen__empty small { font-family: var(--ui); font-style: normal; font-size: 0.6rem; letter-spacing: 0.06em; opacity: 0.6; }

/* the caption (the hijab's name), handwritten on a strip of tape stuck across the print's lower edge when it's
   looked at: straight sides, torn ends, like the tape holding the print down */
.seen__caption {
  position: absolute; left: 50%; top: 100%; z-index: 4; padding: 0.35em 1.4em 0.3em; white-space: nowrap;
  background: rgba(228, 214, 178, 0.82); color: #2E1A10; filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.45));
  clip-path: polygon(3% 0, 97% 0, 100% 12%, 97.5% 26%, 100% 42%, 96.5% 58%, 99.5% 74%, 97% 88%, 100% 100%,
    2.5% 100%, 0 86%, 3% 70%, 0.5% 55%, 3.5% 40%, 0 25%, 2.5% 12%);
  font-family: var(--script); font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  opacity: 0; transform: translate(-50%, -35%) rotate(-3deg); transition: opacity 0.4s ease, transform 0.5s var(--ease-out); pointer-events: none;
}
.seen__caption a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  .seen__slot:is(:hover, :focus-within) { z-index: 12; transform: translateY(-8px) rotate(calc(var(--r) * 0.4)); }
  .seen__slot:is(:hover, :focus-within) .seen__open { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 4px 5px rgba(0, 0, 0, 0.4)); }
  .seen__slot:is(:hover, :focus-within) .seen__caption { opacity: 1; transform: translate(-50%, -62%) rotate(-3deg); pointer-events: auto; }
  .seen__caption a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}
/* phones and tablets can't hover, so a photograph's name is always showing there */
@media (hover: none) {
  .seen__slot:not(.is-empty) .seen__caption { opacity: 1; transform: translate(-50%, -62%) rotate(-3deg); pointer-events: auto; }
}

/* what's stuck to a print: aged tape, worn rose stickers, a thorny vine, a ribbon */
.seen__tape, .seen__rose, .seen__vine, .seen__ribbon { position: absolute; z-index: 2; transform: rotate(var(--t)); pointer-events: none; }
/* a strip of old paper tape torn off the roll: straight sides, ragged torn ends, thin enough that the print's
   corner shows through it, lying a little proud of the paper */
.seen__tape { aspect-ratio: 3.2 / 1; filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.4)); }
.seen__tape::before {
  content: ''; position: absolute; inset: 0;
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255, 252, 238, 0.22), transparent 35%, transparent 70%, rgba(90, 70, 40, 0.12)),
    rgba(226, 212, 176, 0.6);
  clip-path: polygon(3% 0, 97% 0, 100% 10%, 97.5% 22%, 100% 36%, 96.5% 50%, 99.5% 64%, 97% 78%, 100% 90%, 97.5% 100%,
    2.5% 100%, 0 88%, 3% 75%, 0.5% 61%, 3.5% 47%, 0 33%, 2.5% 19%, 0 7%);
}
.seen__rose, .seen__ribbon { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.45)); }
/* a vine climbs from behind its print, so only its leaves and tendrils show round the edges */
.seen__vine { z-index: 0; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4)); }
.seen__rose svg, .seen__ribbon svg, .seen__vine svg { display: block; width: 100%; height: auto; max-width: none; overflow: visible; }
.seen__vine svg { transform-origin: 50% 100%; }

/* a little life: the vines sway and the roses breathe, slowly */
@media (prefers-reduced-motion: no-preference) {
  .seen__vine svg { animation: seen-sway 9s ease-in-out infinite alternate; }
  .seen__rose svg { animation: seen-breathe 11s ease-in-out infinite alternate; }
  .seen__rose:nth-child(odd) svg { animation-delay: -5s; }
}
@keyframes seen-sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.6deg); } }
@keyframes seen-breathe { from { transform: rotate(-2deg) scale(1); } to { transform: rotate(2.5deg) scale(1.03); } }

/* phones and small tablets: the prints flow down the page in two columns, each with what's stuck to it */
@media (max-width: 900px) {
  .seen__row { max-width: 40rem; }
  .seen__sheet { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 1.2rem; padding: 0.6rem 0.5rem 0; }
  .seen--paged .seen__sheet { padding: 1.4rem 0.9rem 3.4rem; }
  .seen__more { font-size: 1.2rem; }
  .seen__pager { gap: 0.6rem; }
  .seen__lede { max-width: 40rem; }
  .seen__slot { position: relative; left: auto; top: auto; width: var(--mw); justify-self: center; align-self: start; grid-column: span var(--mspan); transform: rotate(var(--mr)); }
  /* shorter strips, so the tape on two prints side by side doesn't cross in the gap between them */
  .seen__tape { scale: 0.75; }
  .seen__label { font-size: 0.6rem; }
  .seen__lede { margin-top: 1.2rem; }
  /* on a phone the three photographs sit two across, the first (or last) one full width */
  .seen .seen__sheet { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.1rem; padding: 1.2rem 0.8rem 3.2rem; }
  .seen .seen__slot { width: var(--mw); justify-self: center; grid-column: span var(--mspan); }
}

/* an empty spot's "Add yours" reads as an invitation; it lifts like the prints when looked at */
.seen__slot.is-empty .seen__open { cursor: pointer; }
.seen__slot.is-empty .seen__empty > span:nth-child(2) { font-size: 1.15em; }
.seen__file { opacity: 0.4 !important; }

/* "Add yours": the form for visitors' own photos and videos, a sheet of old letter paper. It lives outside
   .seen, so its colours are written out here. */
.seen-add {
  width: min(34rem, 92vw); max-height: 92dvh; margin: auto; padding: 0; overflow: auto; border: 0;
  background: linear-gradient(170deg, #F3EAD6, #E6D6B6); color: #2E1A10; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  animation: rise-in 0.5s var(--ease-out) both;
}
.seen-add.is-closing { animation: sink-out 0.3s ease-in both; }
.seen-add::backdrop { background: rgba(20, 4, 8, 0.82); }
.seen-add__form, .seen-add__done { display: grid; gap: 0.85rem; padding: clamp(1.5rem, 5vw, 2.5rem); }
.seen-add [hidden] { display: none; }
.seen-add__close { position: absolute; top: 0.6rem; right: 0.6rem; width: 2.75rem; height: 2.75rem; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: #5A1220; cursor: pointer; }
.seen-add__kicker { font-family: var(--ui); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: #8A5A3A; }
.seen-add__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.1; color: #3A0A12; }
.seen-add__lede { font-size: 0.95rem; line-height: 1.5; }
.seen-add__note { font-size: 0.8rem; color: #8A5A3A; }
/* the label and its "(optional)" note on one line, the field full width beneath */
.seen-add__field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.35rem; font-size: 0.85rem; font-weight: 500; }
.seen-add__field span { font-weight: 400; color: #7A5A44; }
.seen-add__field input, .seen-add__field select, .seen-add__field textarea { flex: 1 0 100%; }
.seen-add__field input:not([type=file]), .seen-add__field select, .seen-add__field textarea {
  width: 100%; min-height: 44px; padding: 0.5rem 0.7rem; border: 1px solid rgba(90, 18, 32, 0.35); background: rgba(255, 252, 244, 0.85); font-weight: 400;
}
.seen-add__field textarea { resize: vertical; font: inherit; font-weight: 400; line-height: 1.45; }
.seen-add__field input:focus-visible, .seen-add__field select:focus-visible, .seen-add__field textarea:focus-visible { outline: 2px solid #5A1220; outline-offset: 1px; }
.seen-add__label { font-weight: 500; color: inherit !important; }
.seen-add__label span { font-weight: 400; color: #7A5A44; }
/* the stars: five to tap, filling up to the one chosen (they're written 5 to 1 and laid out in reverse, so a
   star and the ones before it light together) */
.seen-add__rate { margin: 0; padding: 0; border: 0; }
.seen-add__rate legend { padding: 0; font-size: 0.85rem; font-weight: 500; }
.seen-add__stars { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; margin-top: 0.2rem; }
.seen-add__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seen-add__stars label { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; font-size: 1.9rem; line-height: 1; color: rgba(90, 18, 32, 0.22); cursor: pointer; transition: color 0.15s, transform 0.2s; }
.seen-add__stars label:hover, .seen-add__stars label:hover ~ label, .seen-add__stars input:checked ~ label { color: #B08A3E; }
.seen-add__stars label:hover { transform: scale(1.12); }
.seen-add__stars input:focus-visible + label { outline: 2px solid #5A1220; outline-offset: -2px; }
.seen-add__field input[type=file] { font-size: 0.85rem; font-weight: 400; }
.seen-add__consent { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-size: 0.82rem; line-height: 1.45; }
.seen-add__consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: #5A1220; }
.seen-add__send { justify-self: start; }
/* a review asks for the words first: stars, the review, name, which hijab, then the optional photo (seen-on.js data-step) */
.seen-add__form.is-review [data-step="1"] { order: 1; } .seen-add__form.is-review [data-step="2"] { order: 2; }
.seen-add__form.is-review [data-step="3"] { order: 3; } .seen-add__form.is-review [data-step="4"] { order: 4; }
.seen-add__form.is-review [data-step="5"] { order: 5; } .seen-add__form.is-review [data-step="6"] { order: 6; }
.seen-add__form.is-review [data-step="7"] { order: 7; } .seen-add__form.is-review [data-step="8"] { order: 8; }
.seen-add__form.is-review [data-step="9"] { order: 9; }
.seen-add__words textarea { min-height: 8.5rem; font-size: 1rem; }
.seen-add__done .btn { justify-self: start; }

/* the photo viewer: a tapped photograph shown big on a dark backdrop */
/* the viewer is just the photograph's size, so its name and the close button sit with the photograph */
.seen-view { width: fit-content; height: fit-content; max-width: 92vw; max-height: 92vh; margin: auto; padding: 0; border: 0; background: none; overflow: visible; }
.seen-view::backdrop { background: rgba(20, 4, 8, 0.86); }
.seen-view__img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; border: 0.6rem solid #EFE5CF; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
/* the name, on a strip of tape across the photograph's lower edge, as on the page */
.seen-view__caption {
  position: absolute; left: 50%; bottom: 0; margin: 0; padding: 0.35em 1.5em 0.3em; white-space: nowrap;
  transform: translate(-50%, 45%) rotate(-3deg); background: rgba(228, 214, 178, 0.88); color: #2E1A10;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.5)); font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-family: "Pinyon Script", "Snell Roundhand", cursive; /* the viewer sits outside .seen, where --script is set */
  clip-path: polygon(3% 0, 97% 0, 100% 12%, 97.5% 26%, 100% 42%, 96.5% 58%, 99.5% 74%, 97% 88%, 100% 100%,
    2.5% 100%, 0 86%, 3% 70%, 0.5% 55%, 3.5% 40%, 0 25%, 2.5% 12%);
}
.seen-view__caption:empty { display: none; }
.seen-view__close { position: absolute; top: -0.9rem; right: -0.9rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: #EFE5CF; color: #5A1220; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); }
.seen-view__close:focus-visible { outline: 2px solid #C9A86A; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .seen__slot, .seen__open, .seen__caption { transition: none; } }

/* ==========================================================================
   The inner circle: "Be the first to know" (assets/js/ui/inner-circle.js)
   ========================================================================== */
.circle-band[hidden] { display: none; }
.circle-band { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 1rem; padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); text-align: center; color: #F2E6D2;
  background: var(--grain), radial-gradient(ellipse 70% 70% at 50% 40%, #4A0D1A, #2A0710 60%, #14030A); }
.circle-band::before { content: ""; position: absolute; inset: clamp(0.6rem, 1.4vw, 1.1rem); pointer-events: none;
  border: 1px solid rgba(201, 168, 106, 0.32); box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(201, 168, 106, 0.15); }
.circle-band__roses { position: absolute; inset: 0; pointer-events: none; }
/* one large rose engraved in fine gold lines, faint behind the words */
.circle-band__engraved { position: absolute; left: 50%; top: 50%; width: min(380px, 66vw); transform: translate(-50%, -50%); opacity: 0.36; }
.circle-band__title { position: relative; margin: 0; font: 400 clamp(2.1rem, 5.5vw, 3.8rem)/1.05 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: #FBF1E0; }
.circle-band__lede { position: relative; max-width: 34rem; margin: 0; font: italic 400 clamp(1.02rem, 2vw, 1.22rem)/1.55 var(--display); color: rgba(242, 230, 210, 0.86); }
.circle-band__perks { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin: 0.2rem 0 0.6rem; padding: 0; list-style: none;
  font: 400 0.8rem var(--ui); letter-spacing: 0.06em; color: rgba(242, 230, 210, 0.75); }
.circle-band__perks li::before { content: "❦ "; color: #C9A86A; }
.circle-band__form { position: relative; display: grid; justify-items: center; width: 100%; }


/* ==========================================================================
   My Story on its own page (chapter.js): it starts below the fixed header
   ========================================================================== */
.chapter main { padding-top: var(--header-h); }
