:root {
  color-scheme: light;
  --wine: #4b1225;
  --ivory: #f8f1e6;
  --paper: #eee2ce;
  --gutter: clamp(24px, 3.7vw, 72px);
  --headline-size: clamp(44px, 4.55vw, 88px);
  --camera-scale: 1;
  --evening-opacity: 0;
  --celebration-opacity: 0;
  --wedding-opacity: 0;
  --celebration-edge: -10%;
  --day-title-opacity: 1;
  --evening-title-opacity: 0;
  --celebration-title-opacity: 0;
  --wedding-title-opacity: 0;
  --veil-opacity: 0;
  --veil-x: 0%;
  --celebration-veil-opacity: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--wine);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scrollbar-gutter: stable; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button, summary { touch-action: manipulation; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.scene-title:focus, .hero-stage:focus { outline: none; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 16px 20px; background: var(--ivory); color: var(--wine); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* All complete scenes are the baseline. Motion progressively enhances them. */
.hero-story { position: relative; }
.hero-stage { position: relative; isolation: isolate; }
.look-scene { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; }
.daytime-scene { color: var(--wine); background: #e4d1b6; }
.evening-scene { color: var(--ivory); background: #2d151e; }
.celebration-scene { color: var(--wine); background: #e8d6b8; }
.wedding-scene { color: var(--wine); background: #e9dad6; }
.scene-artwork { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-visual { position: absolute; inset: 0; overflow: hidden; }
.hero-visual picture { display: block; width: 100%; height: 100%; }
.hero-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(var(--camera-scale)); transform-origin: 53% 0%; }
.hero-tone { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #f7edda12, transparent 42%, transparent 75%, #f7edda08); }
.evening-scene .hero-tone { background: linear-gradient(0deg, #210b20df, transparent 18%), linear-gradient(90deg, #1b071a20, transparent 43%, transparent 78%, #1b071a10); }
.celebration-scene .hero-tone { background: linear-gradient(0deg, #210b20df, transparent 18%), linear-gradient(90deg, #f7edda0c, transparent 43%, transparent 78%, #f7edda08); }
.wedding-scene .hero-tone { background: linear-gradient(0deg, #210b20df, transparent 18%), linear-gradient(90deg, #f8eeeb0c, transparent 43%, transparent 78%, #f8eeeb08); }
.celebration-scene .scene-controls, .wedding-scene .scene-controls { color: var(--ivory); }
.image-error { position: absolute; top: 64%; left: var(--gutter); max-width: 260px; margin: 0; font-size: 13px; line-height: 1.6; }
.artwork-unavailable .hero-image { visibility: hidden; }

.motion-enabled .hero-story { height: 560vh; height: 560svh; }
.motion-enabled .hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; }
.motion-enabled .look-scene { position: absolute; inset: 0; height: 100%; min-height: 0; background: transparent; pointer-events: none; overflow: visible; }
.motion-enabled .daytime-scene { z-index: 1; }
.motion-enabled .evening-scene { z-index: 2; }
.motion-enabled .celebration-scene { z-index: 3; }
.motion-enabled .wedding-scene { z-index: 4; }
.motion-enabled .evening-scene .scene-artwork { opacity: var(--evening-opacity); }
.motion-enabled .celebration-scene .scene-artwork { opacity: var(--celebration-opacity); }
.motion-enabled .wedding-scene .scene-artwork { opacity: var(--wedding-opacity); }
.motion-enabled .daytime-scene .hero-copy { opacity: var(--day-title-opacity); }
.motion-enabled .evening-scene .hero-copy { opacity: var(--evening-title-opacity); }
.motion-enabled .celebration-scene .hero-copy { opacity: var(--celebration-title-opacity); }
.motion-enabled .wedding-scene .hero-copy { opacity: var(--wedding-title-opacity); }
.motion-enabled .static-look, .motion-enabled .scene-controls { display: none; }
.shared-action, .hero-controls, .transition-veil, .celebration-veil { display: none; }
.motion-enabled .shared-action, .motion-enabled .transition-veil, .motion-enabled .celebration-veil { display: block; }
.motion-enabled .hero-controls { display: grid; }
.transition-veil { position: absolute; top: 0; bottom: 0; left: -30%; width: 160%; z-index: 5; pointer-events: none; background: linear-gradient(105deg, transparent 15%, #25111d88 38%, #f7e7c925 52%, transparent 72%); opacity: var(--veil-opacity); transform: translateX(var(--veil-x)); }
.celebration-veil { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(180deg, transparent calc(var(--celebration-edge) - 7%), #f9e7c788 var(--celebration-edge), transparent calc(var(--celebration-edge) + 7%)); opacity: var(--celebration-veil-opacity); }

/* A brief spatial reveal keeps the change of hand pose from doubling. */
@supports (mask-image: linear-gradient(#000, transparent)) or (-webkit-mask-image: linear-gradient(#000, transparent)) {
  .motion-enabled .celebration-scene .scene-artwork {
    opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--celebration-edge) - 10%), transparent calc(var(--celebration-edge) + 10%));
    mask-image: linear-gradient(180deg, #000 calc(var(--celebration-edge) - 10%), transparent calc(var(--celebration-edge) + 10%));
  }
}

.site-header { position: absolute; inset: 23px var(--gutter) auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; z-index: 10; }
.brand { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; }
.brand-name { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; line-height: 1.1; font-weight: 400; letter-spacing: .25em; padding-left: .25em; }
.brand-division { margin-top: 4px; font-size: 9px; line-height: 1.5; letter-spacing: .6em; padding-left: .6em; }
.header-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 40px); font-size: 14px; }
.header-nav > a, .occasion-menu > summary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.header-nav > a { position: relative; }
.header-nav > a::after { content: ''; position: absolute; bottom: 7px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.header-nav > a:hover::after { transform: scaleX(1); }
.bag-link { min-width: 44px; }
.occasion-menu { position: relative; }
.occasion-menu summary { list-style: none; gap: 7px; cursor: pointer; }
.occasion-menu summary::-webkit-details-marker { display: none; }
.occasion-menu summary svg { width: 13px; height: 13px; transition: transform 180ms ease; }
.occasion-menu[open] summary svg { transform: rotate(180deg); }
.occasion-panel { position: absolute; top: 51px; right: -20px; width: 210px; padding: 8px 18px; border: 1px solid #4b122521; background: #fbf5eafa; color: var(--wine); box-shadow: 0 12px 40px #2110191c; }
.occasion-panel a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.occasion-panel a + a { border-top: 1px solid #4b12251a; }
.occasion-panel a span:last-child { font-size: 11px; }
.occasion-panel a[aria-current] span:first-child { text-decoration: underline; text-underline-offset: 5px; }
.motion-enabled .hero-stage[data-header-theme="dark"] .site-header,
.motion-enabled .hero-stage[data-controls-theme="dark"] .hero-controls { color: var(--ivory); }

.hero-copy { position: absolute; top: 28.5%; left: var(--gutter); z-index: 4; }
.scene-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: var(--headline-size); font-weight: 400; line-height: 1.07; letter-spacing: -.05em; }
.scene-title span { display: block; white-space: nowrap; }
.primary-action { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 50px; padding: 14px 24px; background: var(--wine); border: 1px solid var(--wine); border-radius: 3px; color: var(--ivory); font-size: 14px; line-height: 1.4; letter-spacing: .015em; transition: background-color 180ms ease, box-shadow 180ms ease; }
.primary-action:hover { background: #632037; box-shadow: 0 5px 18px #4b12251a; }
.primary-action:focus-visible { outline-color: var(--wine); }
.hero-copy .primary-action { margin-top: 28px; min-width: 190px; }
.shared-action { position: absolute; top: calc(28.5% + var(--headline-size) * 2.14 + 28px); left: var(--gutter); z-index: 7; }
.shared-action .primary-action { min-width: 190px; transition: box-shadow 180ms ease; }
.action-arrow { font-size: 18px; line-height: 1; }
.evening-scene .primary-action,
.hero-stage[data-action-theme="dark"] .shared-action .primary-action { color: var(--wine); background: var(--ivory); border-color: var(--ivory); }
.evening-scene .primary-action:hover,
.hero-stage[data-action-theme="dark"] .shared-action .primary-action:hover { background: #fffaf2; box-shadow: 0 5px 18px #18081240; }
.evening-scene .primary-action:focus-visible,
.hero-stage[data-action-theme="dark"] .shared-action .primary-action:focus-visible { outline-color: var(--ivory); }

.hero-controls, .scene-controls { position: absolute; bottom: 21px; left: var(--gutter); right: var(--gutter); align-items: center; gap: 24px; z-index: 7; }
.hero-controls { grid-template-columns: 1fr auto 1fr; }
.scene-controls { display: flex; justify-content: space-between; }
.occasion-nav { display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.occasion-nav a { min-height: 44px; display: inline-flex; align-items: center; position: relative; opacity: .55; }
.occasion-nav a:hover, .occasion-nav a:focus-visible, .occasion-nav a[aria-current] { opacity: 1; }
.occasion-nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: .16em; bottom: 7px; height: 1px; background: currentColor; }
.occasion-nav > span { width: 24px; height: 1px; background: currentColor; opacity: .3; }
.scroll-cue, .motion-toggle { background: transparent; min-height: 44px; padding: 8px 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 10px; letter-spacing: .1em; }
.scroll-cue { grid-column: 2; }
.scroll-cue svg { width: 17px; height: 21px; }
.motion-toggle { justify-self: end; grid-column: 3; }
.motion-icon { width: 15px; height: 15px; }
.play-mark { display: block; }
.pause-mark { display: none; }
.motion-enabled .pause-mark { display: block; }
.motion-enabled .play-mark { display: none; }
.motion-toggle:disabled { opacity: .6; }

.preview-footer { min-height: 158px; padding: 36px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #f4ede2; border-top: 1px solid #4b122510; }
.preview-note { display: flex; flex-direction: column; gap: 9px; font-size: 11px; line-height: 1.4; letter-spacing: .025em; }
.preview-note span:last-child { color: #79605f; font-size: 10px; }
.footer-actions { display: flex; gap: 32px; align-items: center; }
.footer-actions a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; }
.footer-actions a:hover { text-decoration: underline; text-underline-offset: 5px; }

.dialog-open { overflow: hidden; }
.look-dialog { width: min(780px, calc(100vw - 40px)); max-height: calc(100svh - 40px); padding: 0; border: 0; color: var(--wine); background: var(--ivory); overflow: auto; }
.look-dialog::backdrop { background: #28151ca8; backdrop-filter: blur(5px); }
.dialog-layout { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 460px; }
.dialog-portrait { min-width: 0; overflow: hidden; }
.dialog-portrait img { display: block; width: 100%; height: 100%; min-height: 460px; object-fit: cover; object-position: 50% 34%; }
.dialog-copy { padding: 68px 38px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.dialog-eyebrow { font-size: 9px; letter-spacing: .24em; }
.dialog-copy h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 36px; line-height: 1.08; letter-spacing: -.045em; font-weight: 400; margin: 18px 0; }
.dialog-copy p { font-size: 13px; line-height: 1.7; max-width: 280px; margin: 0 0 26px; color: #6c4d51; }
.dialog-copy .primary-action { font-size: 12px; gap: 18px; width: 100%; }
.secondary-action { width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 10px 3px; border-bottom: 1px solid #4b12252b; }
.back-to-story { margin-top: 14px; min-height: 44px; padding: 10px 0; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ivory); border-radius: 50%; z-index: 2; }
.dialog-close svg { width: 22px; height: 22px; }

@media (min-width: 701px) and (max-width: 1100px) and (min-aspect-ratio: 4/5) {
  :root { --headline-size: clamp(39px, 4.45vw, 50px); }
  .hero-visual { right: -10vw; }
  .header-nav { gap: 20px; font-size: 13px; }
}

/* Four labelled looks take priority over the optional scroll hint in narrow views. */
@media (max-width: 1100px) and (min-aspect-ratio: 4/5) {
  .hero-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .scroll-cue { display: none; }
  .motion-toggle { grid-column: 2; }
}

@media (max-width: 700px) and (orientation: portrait), (max-aspect-ratio: 4/5) {
  :root { --gutter: 22px; --headline-size: clamp(31px, 8.7vw, 44px); --portrait-action-bottom: 93px; --portrait-controls-bottom: 22px; }
  html { scrollbar-gutter: auto; }
  .look-scene, .motion-enabled .hero-stage { min-height: 620px; }
  .motion-enabled .hero-story { height: 480vh; height: 480svh; min-height: 2976px; }
  .motion-enabled .look-scene { min-height: 0; }
  .hero-visual { inset: 0; }
  .hero-image { object-position: 50% 0%; transform-origin: 50% 18%; }
  .hero-tone { background: linear-gradient(180deg, #f1e6d31c, transparent 24%, transparent 70%, #eedfc02b); }
  .evening-scene .hero-tone { background: linear-gradient(0deg, #210b20df, transparent 18%), linear-gradient(180deg, #1d081c1c, transparent 24%); }
  .celebration-scene .hero-tone { background: linear-gradient(0deg, #210b20df, transparent 18%), linear-gradient(180deg, #f1e6d312, transparent 24%); }
  .wedding-scene .hero-tone { background: linear-gradient(0deg, #210b20df, transparent 18%), linear-gradient(180deg, #f3e7e512, transparent 24%); }
  .site-header { top: 16px; gap: 20px; align-items: center; }
  .brand { min-height: 40px; }
  .brand-name { font-size: 26px; letter-spacing: .2em; padding-left: .2em; }
  .brand-division { font-size: 7px; letter-spacing: .5em; padding-left: .5em; margin-top: 2px; }
  .header-nav { gap: 17px; font-size: 12px; }
  .occasion-menu { display: none; }
  .header-nav > a { min-height: 44px; }
  .hero-copy { inset: 0; pointer-events: none; }
  .scene-title { position: absolute; top: clamp(74px, 9svh, 96px); left: 16px; right: 16px; text-align: center; line-height: 1.02; letter-spacing: -.045em; }
  .hero-copy .primary-action, .shared-action { position: absolute; top: auto; bottom: var(--portrait-action-bottom); left: min(50%, calc(100% - var(--gutter) - 148px)); transform: translateX(-50%); margin: 0; }
  .hero-copy .primary-action, .shared-action .primary-action { min-width: 184px; min-height: 48px; padding: 12px 22px; font-size: 13px; gap: 24px; white-space: nowrap; pointer-events: auto; }
  .hero-controls, .scene-controls { bottom: var(--portrait-controls-bottom); gap: 0; }
  .hero-controls { grid-template-columns: minmax(0, 1fr); }
  .occasion-nav { width: 100%; justify-content: space-between; font-size: clamp(9px, 2.78vw, 10px); letter-spacing: .1em; gap: 6px; }
  .occasion-nav a { white-space: nowrap; }
  .occasion-nav > span { display: none; }
  .scroll-cue, .motion-toggle { font-size: 10px; gap: 5px; letter-spacing: .02em; }
  .scroll-cue { display: none; }
  .motion-toggle { position: absolute; grid-column: auto; right: 0; bottom: calc(var(--portrait-action-bottom) - var(--portrait-controls-bottom) + 2px); width: 44px; min-width: 44px; height: 44px; padding: 0; color: var(--wine); background: #f8f1e6ed; border: 1px solid #4b12252b; border-radius: 50%; }
  .motion-label { display: none; }
  .motion-icon { width: 15px; height: 15px; }
  .image-error { top: 31%; left: 22px; right: 22px; text-align: center; margin: auto; }
  .preview-footer { min-height: 170px; padding: 28px var(--gutter); align-items: flex-start; gap: 20px; }
  .footer-actions { align-items: flex-end; flex-direction: column; gap: 1px; }
  .footer-actions a { min-height: 44px; font-size: 11px; }
  .preview-note { padding-top: 12px; font-size: 10px; }
  .preview-note span:last-child { font-size: 9px; }
  .look-dialog { width: min(460px, calc(100vw - 28px)); max-height: calc(100svh - 28px); }
  .dialog-layout { display: block; min-height: 0; }
  .dialog-portrait { height: 210px; }
  .dialog-portrait img { min-height: 0; height: 100%; object-position: 50% 24%; }
  .dialog-copy { padding: 28px; }
  .dialog-copy h2 { font-size: 32px; margin: 13px 0; }
  .dialog-copy p { margin-bottom: 20px; }
}

@media (max-width: 700px) and (max-height: 730px) and (orientation: portrait) {
  :root { --headline-size: 28px; --portrait-action-bottom: 76px; --portrait-controls-bottom: 12px; }
  .site-header { top: 10px; }
  .scene-title { top: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  a, button, summary, .header-nav > a::after, .occasion-menu summary svg { transition: none; }
}
.is-reduced a, .is-reduced button, .is-reduced summary,
.is-reduced .header-nav > a::after, .is-reduced .occasion-menu summary svg { transition: none; }

/* Portrait tablets need the shopping action clear of her hands. */
@media (min-width: 701px) and (max-aspect-ratio: 4/5) {
  :root { --portrait-action-bottom: 100px; }
  .hero-copy .primary-action, .shared-action { left: var(--gutter); transform: none; }
}

/* Landscape phones keep the complete photograph and controls within view. */
@media (max-height: 540px) and (min-aspect-ratio: 1/1) {
  :root { --gutter: clamp(20px, 3.7vw, 48px); --headline-size: clamp(25px, 4.1vw, 38px); }
  .look-scene, .motion-enabled .hero-stage { height: 100vh; height: 100svh; min-height: 0; }
  .motion-enabled .hero-story { height: 470vh; height: 470svh; min-height: 0; }
  .hero-visual { inset: 0; }
  .hero-visual::before { content: ''; position: absolute; inset: -16px; background: url('./assets/daytime-desktop-shop.webp') center / cover; filter: blur(16px); z-index: -1; }
  .evening-scene .hero-visual::before { background-image: url('./assets/evening-desktop-shop.webp'); }
  .celebration-scene .hero-visual::before { background-image: url('./assets/celebration-desktop-shop.webp'); }
  .wedding-scene .hero-visual::before { background-image: url('./assets/wedding-desktop-shop.webp'); }
  .hero-image { object-fit: contain; object-position: 50% 0%; transform-origin: 53% 0%; }
  .site-header { top: 7px; align-items: center; }
  .brand { min-height: 44px; }
  .brand-name { font-size: 25px; }
  .brand-division { font-size: 6px; margin-top: 2px; }
  .header-nav { font-size: 11px; gap: 18px; }
  .hero-copy { top: 27%; left: var(--gutter); right: auto; bottom: auto; }
  .scene-title { position: static; line-height: 1.04; text-align: left; }
  .hero-copy .primary-action { position: static; transform: none; margin-top: 18px; }
  .shared-action { top: calc(27% + var(--headline-size) * 2.08 + 18px); bottom: auto; left: var(--gutter); transform: none; }
  .hero-copy .primary-action, .shared-action .primary-action { min-width: 162px; min-height: 44px; font-size: 12px; padding: 10px 18px; gap: 18px; }
  .hero-controls, .scene-controls { bottom: 6px; gap: 12px; }
  .occasion-nav, .scroll-cue, .motion-toggle { font-size: 9px; }
  .occasion-nav { gap: 10px; letter-spacing: .1em; }
  .occasion-nav > span { width: 12px; }
}

/* Quiet secondary collection access beneath the shopping action. */
.collections-link { position: absolute; top: 100%; left: 0; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--wine); font-size: 12px; line-height: 1.4; letter-spacing: .025em; white-space: nowrap; pointer-events: auto; }
.collections-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.collections-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.evening-scene .collections-link,
.hero-stage[data-action-theme="dark"] .shared-action .collections-link { color: var(--ivory); }
@media (max-width: 700px) and (orientation: portrait), (max-aspect-ratio: 4/5) {
  .hero-copy .collections-link { top: auto; bottom: calc(var(--portrait-action-bottom) - 44px); left: min(50%, calc(100% - var(--gutter) - 148px)); transform: translateX(-50%); }
}
@media (min-width: 701px) and (max-aspect-ratio: 4/5) {
  .hero-copy .collections-link { left: var(--gutter); transform: none; }
}
@media (max-height: 540px) and (min-aspect-ratio: 1/1) {
  .hero-copy .collections-link { top: 100%; bottom: auto; left: 0; transform: none; }
}

.motion-enabled .static-collections { display: none; }
