/* Hallmark · home sheet of the Gallery of Light build, 2026-11-09 */
/* The home page inside the Paper panel: the Sheet with the Push, two doorways, the prints, Aura in the one Midnight room, the metal, gifts, four rooms. Tokens from so.css only; transforms and opacity only; nothing moves at rest. */

/* ---------- the sheet: one word, one piece, two lines, one cue ---------- */
#home { background: var(--paper); }
.sheet-home { position: relative; }
.sheet-stage { position: relative; height: calc(100svh - 56px - 2 * var(--frame)); min-height: 560px; overflow: clip; }
.sheet-word { position: absolute; left: 10%; top: 60%; translate: 0 -0.72em; margin: 0; font-size: clamp(88px, 13.9vw, 200px); line-height: 1; z-index: 1; user-select: none; }
.sheet-piece { position: absolute; left: 54%; top: 52%; translate: -50% -50%; z-index: 2; width: min(84vh, 760px); max-width: 68%; margin: 0; aspect-ratio: 1; overflow: clip; display: grid; place-items: center; }
.sheet-piece img, .sheet-piece canvas { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; transform: scale(var(--piece-zoom, 1.6)); transform-origin: 50% 52%; }
/* The turntable canvas sits exactly over the poster (frame 0) and takes over once its frames are in. */
.sheet-piece canvas { filter: brightness(1.04); mix-blend-mode: multiply; user-select: none; pointer-events: none; }
.sheet-piece.is-spinning img { visibility: hidden; }
/* Sections that host a multiplied packshot paint their own ground: a pinned section carries a transform, which isolates the blend, so the backdrop must be inside it. */
.sheet-home, .sheet-stage { background: var(--paper); }
.sheet-line, .sheet-shop { position: absolute; bottom: 36px; margin: 0; font-size: var(--t-small); z-index: 3; }
.sheet-line { left: var(--gutter); font-weight: 400; }
.sheet-shop { right: var(--gutter); }
.sheet-cue { display: none; }

/* the sell block: a plain second screen under the sheet; on a desktop with motion it sits in the right third of the sheet and the Push fades it in beside the piece */
.sheet-sell { display: grid; gap: var(--space-sm); padding: var(--space-2xl) var(--gutter); max-width: 52ch; border-top: 1px solid var(--hair); }
.sheet-sell .sell-name { font-size: var(--t-name); }
.sheet-sell .sell-mat { font-size: var(--t-small); }
.sheet-sell .sell-ref { display: flex; align-items: center; gap: var(--space-xs); }
.sheet-sell .sell-price { font-size: 16px; font-weight: 500; color: var(--noir); }
.sheet-sell .sell-price small { font-size: var(--t-label); font-weight: 400; margin-left: var(--space-xs); color: var(--ink-2); }
.sheet-sell .sell-story { font-size: var(--t-body); line-height: 1.6; max-width: 40ch; color: var(--ink-2); }
.sheet-sell .pill { justify-self: start; margin-top: var(--space-xs); }
@media (min-width: 1024px) {
  html.js.motion .sheet-home .sheet-sell { position: absolute; top: 0; bottom: 0; left: 62%; right: var(--gutter); max-width: none; padding: 0; border-top: 0; align-content: center; opacity: 0; z-index: 4; }
}

/* ---------- two doorways: silver on paper, watches in the midnight room; the whole door is the link ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100svh; border-top: 1px solid var(--hair); }
.door { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-lg); padding: var(--space-2xl) var(--gutter) var(--space-xl); min-height: 100svh; }
.door-photo { align-self: center; justify-self: center; width: min(62%, 480px); margin: 0; transition: transform var(--dur-short) var(--ease-out); }
.door .tile.door-photo { width: min(50%, 400px); }
.door:hover .door-photo, .door:focus-visible .door-photo { transform: translateY(-2px); }
.door:active .door-photo, .prints .print:active, .aura-tile:active, .gift-plate:active .plate-img { transform: translateY(1px); }
.door-foot { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-lg); }
.door-word { color: inherit; }
.door-watches { border-left: 1px solid var(--hair); }

/* ---------- the prints: five packshots mounted and tilted, in a row wider than the sheet ---------- */
.prints { padding: var(--space-3xl) 0; overflow-x: clip; }
.prints .line { margin-bottom: var(--space-2xl); }
.prints-row { display: flex; justify-content: center; align-items: flex-start; gap: var(--space-xl); padding: var(--space-md) 0 var(--space-lg); }
.prints .print { flex: 0 0 auto; width: clamp(220px, 24vw, 340px); padding-bottom: var(--space-md); transition: transform var(--dur-short) var(--ease-out); }
.prints .print:nth-child(1) { rotate: -1.5deg; margin-top: var(--space-lg); }
.prints .print:nth-child(2) { rotate: 1deg; }
.prints .print:nth-child(3) { rotate: -0.5deg; margin-top: var(--space-xl); }
.prints .print:nth-child(4) { rotate: 1.5deg; margin-top: var(--space-xs); }
.prints .print:nth-child(5) { rotate: -1deg; margin-top: var(--space-lg); }
.prints .print:hover, .prints .print:focus-visible { transform: translateY(-2px); }
.print-name { display: block; padding: var(--space-sm) var(--space-xs) 0; font-size: var(--t-label); font-weight: 500; color: var(--noir); overflow-wrap: break-word; }

/* ---------- Aura: the word with one pendant on a white tile covering a letter ---------- */
.aura { min-height: 100svh; display: grid; align-content: center; padding: var(--space-3xl) 0; }
.aura-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.aura-stage { position: relative; justify-self: start; }
.aura-word { margin: 0; }
.aura-tile { position: absolute; left: 64%; top: 28%; width: clamp(120px, 38%, 260px); z-index: 2; transition: transform var(--dur-short) var(--ease-out); }
.aura-tile .tile { padding: var(--space-sm); }
.aura-tile:hover, .aura-tile:focus-visible { transform: translateY(-2px); }
.aura-copy { display: grid; gap: var(--space-lg); justify-items: start; max-width: 46ch; font-size: 14px; line-height: 1.65; }

/* ---------- the metal: 925 as architecture, the stamp as the section mark, three lines ---------- */
.metal { min-height: 60svh; display: grid; align-content: center; padding: var(--space-3xl) 0; border-top: 1px solid var(--hair); }
.metal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.metal-grid.has-photo { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.metal-mark { font-size: 22px; color: var(--rose-blue); margin: 0 0 var(--space-lg); }
.metal-word { margin: 0 0 var(--space-xl); }
.metal-lines { display: grid; gap: var(--space-md); max-width: 46ch; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.metal-lines li { border-top: 1px solid var(--hair); padding-top: var(--space-md); }
.metal-photo { width: min(100%, 420px); justify-self: end; margin: 0; }

/* ---------- gifts: two plates, two price bands, a still life, a line for buyers abroad ---------- */
.gifts { min-height: 80svh; display: grid; align-content: center; padding: var(--space-3xl) 0; }
.gift-plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); margin: var(--space-2xl) 0 var(--space-xl); }
.gift-plate { padding: var(--space-lg) var(--space-lg) var(--space-md); }
.gift-plate .plate-img { width: min(100%, 520px); margin: 0 auto; transition: transform var(--dur-short) var(--ease-out); }
.gift-plate:hover .plate-img, .gift-plate:focus-visible .plate-img { transform: translateY(-2px); }
.gift-label { display: block; margin-top: var(--space-md); font-size: var(--t-small); font-weight: 500; color: var(--noir); }
.gift-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.gift-row.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.gift-bands { display: grid; gap: var(--space-lg); }
.gift-bands .chip { height: 44px; padding: 0 var(--space-md); }
.gift-diaspora { font-size: var(--t-small); color: var(--ink-2); max-width: 60ch; }
.gift-still { width: 100%; margin: 0; }

/* ---------- four rooms: the branches part from template-parts/branches.php ---------- */
/* The branches part belongs to the pages builder and its sheet (pages.css) is not loaded on the home page, so the grid it needs here is drawn in this file, scoped to .rooms-section. */
.rooms-section { min-height: 50svh; padding: var(--space-3xl) 0; border-top: 1px solid var(--hair); }
.rooms-section .line { margin-bottom: var(--space-2xl); }
.rooms-section .branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.rooms-section .branch { display: grid; gap: var(--space-2xs); align-content: start; border-top: 1px solid var(--hair); padding-top: var(--space-md); font-size: var(--t-small); color: var(--ink-2); }
.rooms-section .branch h3 { font-size: var(--t-sub); color: var(--noir); margin-bottom: var(--space-xs); }
.rooms-section .branch img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair); margin-bottom: var(--space-sm); }
.rooms-section .branch a { color: var(--noir); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- phones: one image and one decision per screen ---------- */
@media (max-width: 900px) {
  .sheet-stage { height: calc(100svh - 56px); min-height: 0; }
  .sheet-word { left: var(--gutter); top: 24%; font-size: 88px; }
  .sheet-piece { top: 56%; left: 50%; width: min(80vw, 55vh); max-width: none; }
  .sheet-line { left: var(--gutter); bottom: 56px; }
  .sheet-shop { left: var(--gutter); right: auto; bottom: 28px; }
  .sheet-cue { display: none; }
  .sheet-sell { padding: var(--space-xl) var(--gutter) var(--space-2xl); max-width: none; }
  .doors { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .door { min-height: 88svh; padding: var(--space-xl) var(--gutter); }
  /* Silver first, then watches, on phones too (client, 17 Nov 2026). */
  .door-photo { width: min(72%, 360px); }
  .door .tile.door-photo { width: min(64%, 320px); }
  .door-foot { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .prints { padding: var(--space-2xl) 0; }
  .prints .line { margin-bottom: var(--space-xl); }
  .prints-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); padding: 0 var(--gutter); }
  .prints .print { width: auto; margin-top: 0; }
  .prints .print:nth-child(5) { display: none; }
  .prints .print { rotate: none; }
  .prints .print:nth-child(odd) { rotate: -1deg; }
  .prints .print:nth-child(even) { rotate: 1deg; margin-top: var(--space-lg); }
  .aura, .metal, .gifts, .rooms-section { min-height: 0; padding: var(--space-2xl) 0; }
  .aura-grid, .metal-grid.has-photo, .gift-row.has-photo { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .gift-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); margin: var(--space-xl) 0 var(--space-lg); }
  .gift-plate { padding: var(--space-md) var(--space-md) var(--space-sm); }
  .gift-plate .plate-img { width: 100%; aspect-ratio: 1; }
  .door { min-height: 72svh; }
  .aura .word, .metal .word { font-size: clamp(88px, 24vw, 120px); }
  .aura-tile { left: 56%; top: 20%; width: clamp(96px, 44%, 160px); }
  .metal-photo, .gift-still { justify-self: start; width: min(100%, 320px); }
  .rooms-section .branches { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- reduced motion: nothing lifts, nothing fades ---------- */
@media (prefers-reduced-motion: reduce) {
  .door-photo, .prints .print, .aura-tile, .gift-plate .plate-img { transition: none; }
  .door:hover .door-photo, .door:focus-visible .door-photo, .door:active .door-photo, .prints .print:hover, .prints .print:focus-visible, .prints .print:active, .aura-tile:hover, .aura-tile:focus-visible, .aura-tile:active, .gift-plate:hover .plate-img, .gift-plate:focus-visible .plate-img, .gift-plate:active .plate-img { transform: none; }
  html.js.motion .sheet-sell { opacity: 1; }
}

/* Review pass: the word Silver overlaps the ring by the same amount at every desktop width. The ring spans the middle of its square frame, so the word's right edge is tied to the frame's width. */
@media (min-width: 901px) {
  .sheet-word { left: auto; right: calc(46% + min(84vh, 760px, 68%) * 0.27); }
}
@media (max-width: 900px) {
  .door-watches { border-left: 0; border-top: 1px solid var(--hair); }
}

/* ---------- the bracelet first screen: a film of the model, the Kenya Bracelet, its buying form ---------- */
/* At rest (no scripting, reduced motion): the first frame stands still and the buying block sits under it. */
.story-home, .story-pin { position: relative; background: var(--paper); }
.story-film { position: relative; overflow: clip; background: #E9E5DC; }
.story-film img, .story-film canvas { display: block; width: 100%; height: min(86svh, 900px); object-fit: cover; object-position: 20% 30%; user-select: none; }
@media (max-aspect-ratio: 1/1) { .story-film img, .story-film canvas { object-position: 50% 30%; } }
.story-film canvas { position: absolute; inset: 0; height: 100%; }
.story-fly { display: none; }
.story-intro { display: grid; gap: var(--space-sm); padding: var(--space-xl) var(--gutter) 0; }
.story-title { font-size: clamp(40px, 6.2vw, 104px); line-height: 0.98; max-width: 9ch; }
.story-line { margin: 0; font-size: var(--t-small); }
.story-shop { justify-self: start; font-size: var(--t-small); }
.story-sell { display: grid; gap: var(--space-sm); padding: var(--space-xl) var(--gutter) var(--space-2xl); max-width: 52ch; }
.story-sell .sell-name { font-size: var(--t-name); }
.story-sell .sell-mat { font-size: var(--t-small); margin: 0; }
.story-sell .sell-ref { display: flex; align-items: center; gap: var(--space-xs); margin: 0; }
.story-sell .sell-story { font-size: var(--t-body); line-height: 1.6; max-width: 40ch; color: var(--ink-2); margin: 0; }
.story-sizes { list-style: none; margin: var(--space-xs) 0; padding: 0; border-top: 1px solid var(--hair); }
.story-sizes a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); align-items: baseline; padding: var(--space-sm) 0; border-bottom: 1px solid var(--hair); color: var(--noir); text-decoration: none; }
.story-sizes .size-name { font-weight: 500; }
.story-sizes .size-price { font-weight: 500; text-align: right; }
.story-sizes .size-stock { grid-column: 1 / -1; font-size: var(--t-label); color: var(--ink-2); }
.story-buy { display: grid; gap: var(--space-md); justify-items: start; margin-top: var(--space-xs); }
.story-buy form.cart { margin: 0; width: 100%; display: grid; gap: var(--space-md); }
.story-buy form.cart .quantity { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.story-buy .single_add_to_cart_button { width: 100%; justify-content: center; }

/* With motion: one pinned screen. The film fills it; the script scrubs the frames and flies the bracelet. */
html.js.motion .story-pin { height: calc(100svh - 56px - 2 * var(--frame)); min-height: 560px; overflow: clip; }
html.js.motion .story-film { position: absolute; inset: 0; will-change: opacity; }
html.js.motion .story-film img, html.js.motion .story-film canvas { height: 100%; }
html.js.motion .story-film picture { display: contents; }
html.js.motion .story-film img { position: relative; z-index: 1; }
html.js.motion .story-fly { display: block; position: absolute; left: 0; top: 0; width: var(--fw, 60vw); aspect-ratio: var(--car, 3.0714); transform-origin: 50% 50%; will-change: transform; z-index: 3; pointer-events: none; opacity: 0; }
html.js.motion .story-fly > canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 7px rgb(40 30 10 / 0.2)); -webkit-mask-image: linear-gradient(#000 var(--cut, 58%), transparent calc(var(--cut, 58%) + 5%)); mask-image: linear-gradient(#000 var(--cut, 58%), transparent calc(var(--cut, 58%) + 5%)); }
html.js.motion .story-fly > .story-photo { position: absolute; left: 50%; top: 50%; width: 104.6%; max-width: none; height: auto; aspect-ratio: 1; translate: -50.48% -49.56%; rotate: 180deg; opacity: 0; mix-blend-mode: multiply; filter: brightness(1.07) contrast(1.04); -webkit-mask-image: linear-gradient(transparent 36%, #000 44%, #000 56%, transparent 64%), linear-gradient(90deg, transparent 2%, #000 7%, #000 93%, transparent 98%); mask-image: linear-gradient(transparent 36%, #000 44%, #000 56%, transparent 64%), linear-gradient(90deg, transparent 2%, #000 7%, #000 93%, transparent 98%); -webkit-mask-composite: source-in; mask-composite: intersect; }
html.js.motion .story-intro { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--space-md); padding: 0; z-index: 4; }
html.js.motion .story-intro .story-line, html.js.motion .story-intro .story-shop { display: none; }
html.js.motion .story-title { font-size: clamp(28px, 8vw, 40px); max-width: none; }
html.js.motion .story-sell { position: absolute; left: var(--gutter); right: var(--gutter); top: 36%; max-width: none; padding: 0; opacity: 0; visibility: hidden; z-index: 4; }
@media (min-width: 1024px) and (min-aspect-ratio: 1/1) {
  html.js.motion .story-intro { left: 56%; right: var(--gutter); top: 50%; translate: 0 -50%; gap: var(--space-md); }
  html.js.motion .story-intro .story-line, html.js.motion .story-intro .story-shop { display: block; }
  html.js.motion .story-title { font-size: clamp(56px, 6.2vw, 104px); max-width: 9ch; }
  html.js.motion .story-sell { left: var(--gutter); right: auto; width: min(30%, 420px); top: 0; bottom: 0; align-content: center; }
}

/* phones: the title has its own band of wall above the film, so it never sits on her hair */
@media (max-aspect-ratio: 1/1) {
  html.js.motion .story-film { background: #DFDBD2; --film-top: 68px; }
  html.js.motion .story-film img, html.js.motion .story-film canvas { position: absolute; left: 0; top: var(--film-top); width: 100%; height: calc(100% - var(--film-top)); object-position: 50% 0%; -webkit-mask-image: linear-gradient(transparent, #000 44px); mask-image: linear-gradient(transparent, #000 44px); }
  html.js.motion .story-intro { top: 18px; }
}
/* phones: the doorways are as tall as their piece, not a screen each, so no blank screen sits between them */
@media (max-width: 900px) {
  .door { min-height: 0; padding: var(--space-lg) var(--gutter) var(--space-xl); gap: var(--space-md); }
  .door-silver .door-photo img { aspect-ratio: 1 / 1; height: auto; object-fit: contain; }
}
/* phones: the workshop pieces sit straight on the page, with no mounted card, shadow or tilt around them */
@media (max-width: 900px) {
  .prints .print, .prints .print:nth-child(n) { background: transparent; box-shadow: none; rotate: none; margin-top: 0; padding: 0 0 var(--space-md); }
  .prints .print-name { padding-left: 0; padding-right: 0; }
  .metal-photo.print, .gift-still.print { background: transparent; box-shadow: none; padding: 0; }
}
