:root {
  color-scheme: light;
  --black: #080808;
  --white: #ffffff;
  --line: #e9e9e9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
html.is-gliding { scroll-behavior: auto; }
html.enhanced:not(.reduced-motion) main { touch-action: pan-x pinch-zoom; }
body { margin: 0; color: var(--black); background: var(--black); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
figure { margin: 0; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
svg { display: block; }
[hidden] { display: none !important; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; border-radius: 4px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
#brand-mask { mask-type: alpha; }

/* A single photographic brand mark, supplied by the owner. */
.site-header { position: fixed; z-index: 30; top: 0; inset-inline: 0; height: 110px; padding: 30px 4.5vw; display: flex; align-items: center; justify-content: space-between; color: white; mix-blend-mode: difference; pointer-events: none; }
.site-header a { pointer-events: auto; }
.brand-link { display: inline-flex; align-items: center; gap: 14px; height: 52px; text-decoration: none; }
.brand-link:hover .brand-mark { transform: rotate(-7deg); }
.brand-mark { width: 44px; height: 42px; flex-shrink: 0; transition: transform 220ms ease; }
.brand-name { font-size: 17px; font-weight: 500; line-height: 1.25; letter-spacing: .015em; white-space: nowrap; }
.chapter-nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.chapter-dot { width: 35px; height: 44px; display: grid; place-items: center; }
.chapter-dot span { width: 5px; height: 5px; border-radius: 10px; background: currentColor; opacity: .32; transition: width 300ms, opacity 300ms; }
.chapter-dot:hover span { opacity: .75; }
.chapter-dot.is-active span { width: 18px; opacity: 1; }

.chapter { position: relative; }
.sticky-stage { position: relative; min-height: 100svh; overflow: clip; }
.enhanced:not(.reduced-motion) .sticky-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.enhanced:not(.reduced-motion) .chapter-process { height: 430svh; }
.enhanced:not(.reduced-motion) .chapter-entry { height: 155svh; }

.back-top { position: absolute; left: calc(50% - 24px); bottom: max(36px, 5svh); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e1e1e1; transition: background 200ms; }
.back-top:hover { background: #f0f0f0; }
.back-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.back-top svg { transform: rotate(180deg); }

/* Opening movement: mail, develop, scan, deliver. Everything follows the scroll. */
.chapter-process { background: var(--black); color: #fff; }
.process-stage { padding-block: 60px; isolation: isolate; }
.process-halo { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 50% 48%, #202020 0, #080808 62%); }
.process-sequence { position: relative; }
.process-shot { position: relative; display: grid; place-items: center; min-height: 650px; }
.parcel-art, .tank-art { width: min(720px, 85vw); height: auto; }
.parcel-film { transform: translateY(var(--mail-drop, 50px)); }
.phone-brand { color: #080808; }
.tank-body-motion { transform: translateY(var(--body-rise, -43.194px)); }
.tank-lid { transform: translateY(var(--lid-lift, 42.484px)); }
.tank-reel { transform: translateY(var(--reel-drop, 51.806px)); }
.tank-art .lid-collar { transform: translateY(var(--collar-lock, 10.340px)); }
.enhanced:not(.reduced-motion) .process-stage { padding: 0; }
.enhanced:not(.reduced-motion) .process-sequence { position: absolute; inset: 0; }
.enhanced:not(.reduced-motion) .process-shot { position: absolute; inset: 0; min-height: 0; opacity: var(--shot-opacity, 0); transform: translate3d(0, var(--shot-y, 0px), 0) scale(var(--shot-scale, 1)); will-change: transform, opacity; }
.enhanced:not(.reduced-motion) .shot-mail { --shot-opacity: 1; }
.scanner { position: relative; width: min(570px, 70vw); height: 330px; transform: translateY(-24px); perspective: 1200px; }
.scanner-bed { position: absolute; z-index: 3; top: 0; width: 100%; height: 250px; padding: 38px 30px; border: 14px solid #dedede; border-radius: 12px 12px 5px 5px; background: #1a1a1a; transform: rotateX(28deg); transform-origin: bottom; box-shadow: inset 0 0 0 1px #ffffff35, 0 -3px 0 #fff; overflow: hidden; }
.negative-strip { position: relative; display: flex; width: 100%; height: 100%; gap: 9px; padding: 16px 8px; background: #e1e1e1; }
.negative-strip::before, .negative-strip::after { content: ""; position: absolute; height: 6px; inset: 5px 0 auto; background: repeating-linear-gradient(90deg, transparent 0 7px, #111 7px 14px, transparent 14px 23px); }
.negative-strip::after { top: auto; bottom: 5px; }
.negative-frame, .positive-frame { display: block; flex: 1; min-width: 0; overflow: hidden; }
.negative-frame img { filter: grayscale(1) invert(1) contrast(.85); }
.scan-reveal { position: absolute; inset: 0; display: flex; gap: inherit; padding: inherit; clip-path: inset(0 calc(100% - var(--scan-position, 100%)) 0 0); pointer-events: none; }
.scan-light { position: absolute; top: 10px; bottom: 10px; width: 2px; left: var(--scan-position, 100%); background: #fff; box-shadow: 0 0 18px 9px #ffffff55; }
.scanner-front { position: absolute; z-index: 4; top: 249px; height: 58px; width: 100%; background: linear-gradient(#f4f4f4, #bcbcbc); border-radius: 0 0 10px 10px; box-shadow: 0 24px 42px #0008; }
.scanner-indicator { position: absolute; right: 28px; top: 27px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.scanner-slot { position: absolute; z-index: 5; top: 289px; left: 21%; right: 21%; height: 8px; border-radius: 8px; background: #161616; }
.scan-print { position: absolute; z-index: 6; width: 51%; height: 168px; left: 24.5%; top: 294px; background: #fff; padding: 10px 10px 25px; clip-path: inset(0 0 var(--print-hide, 0%) 0); transform: perspective(800px) rotateX(-8deg); transform-origin: top; box-shadow: 0 18px 26px #0003; }
.delivery-composition { position: relative; width: min(600px, 82vw); height: 500px; }
.phone { position: absolute; width: 220px; height: 440px; left: 49%; top: 24px; border: 5px solid #898989; border-radius: 36px; padding: 48px 15px 30px; background: #fafafa; box-shadow: 0 0 0 2px #282828, 0 35px 70px #0007; transform: rotate(7deg); }
.phone-camera { position: absolute; width: 60px; height: 17px; border-radius: 20px; background: #111; top: 10px; left: calc(50% - 30px); }
.phone-brand { width: 29px; height: 27px; margin: 0 auto 19px; filter: grayscale(1) contrast(1.12); }
.phone-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; height: 272px; }
.phone-gallery img { min-height: 0; }
.phone-gallery img:first-child { grid-column: 1 / -1; height: 100%; }
.phone-gallery img:last-child { display: none; }
.phone-home { position: absolute; width: 58px; height: 3px; border-radius: 3px; bottom: 10px; left: calc(50% - 29px); background: #333; }
.delivery-print { position: absolute; width: 320px; height: 275px; top: 114px; left: 10px; background: #fff; padding: 15px 15px 48px; transform: translateX(var(--delivery-x, 0px)) rotate(-13deg); box-shadow: 0 20px 55px #0007; }
.delivery-check { position: absolute; z-index: 2; left: 39%; bottom: 32px; display: grid; place-items: center; width: 51px; height: 51px; background: #fff; color: #080808; border: 5px solid #080808; border-radius: 50%; transform: scale(var(--check-scale, 1)); }
.delivery-check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.process-position { display: none; }
.enhanced:not(.reduced-motion) .process-position { position: absolute; display: flex; align-items: center; justify-content: space-between; width: 168px; left: calc(50% - 84px); bottom: max(52px, 8svh); height: 8px; }
.process-position::before, .process-position-line { content: ""; position: absolute; top: 3px; left: 0; height: 1px; background: #454545; width: 100%; }
.process-position-line { background: white; width: var(--process-line, 0%); }
.process-position i { position: relative; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: #494949; box-shadow: 0 0 0 5px #080808; }
.process-position i.is-active { background: #fff; }

/* The opening uses its own wrappers, so scroll-driven scene transforms stay intact. */
@media (prefers-reduced-motion: no-preference) {
  .is-loading :is(.site-header, .process-halo, .process-sequence, .process-position) { animation: opening-fallback 600ms ease 2600ms both; }
  .is-entering .process-halo { animation: opening-light 1500ms ease-out both; }
  .is-entering .process-sequence { animation: opening-scene 1350ms cubic-bezier(.16, 1, .3, 1) 80ms both; }
  .is-entering .parcel-film-entrance { animation: opening-film 1400ms cubic-bezier(.16, 1, .3, 1) 140ms both; }
  .is-entering .site-header { animation: opening-header 1000ms cubic-bezier(.22, 1, .36, 1) 180ms both; }
  .is-entering .process-position { animation: opening-light 950ms ease-out 450ms both; }
}
@keyframes opening-fallback { from { opacity: 0; } to { opacity: 1; } }
@keyframes opening-light { from { opacity: 0; } to { opacity: 1; } }
@keyframes opening-scene {
  from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes opening-film { from { transform: translateY(-26px); } to { transform: translateY(0); } }
@keyframes opening-header {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Final movement: a quiet square, ready for the official code. */
.chapter-entry { background: #fff; }
.entry-stage { display: grid; place-items: center; }
.entry-composition { position: relative; width: min(390px, 62vw); aspect-ratio: .88; margin-block: 18svh; transform: translateY(var(--entry-y, 0px)) scale(var(--entry-scale, 1)); }
.entry-paper { position: absolute; inset: 0; background: #fff; border: 1px solid #ededed; box-shadow: 0 20px 55px #0000000a; }
.entry-paper-back { transform: rotate(var(--back-angle, -11deg)) translate(-8px, 5px); }
.entry-paper-middle { transform: rotate(var(--middle-angle, 7deg)) translate(10px, 7px); }
.entry-paper-front { display: flex; align-items: center; justify-content: center; padding: 36px; box-shadow: 0 2px 4px #00000004, 0 20px 50px #0000000c; }
.code-reserve { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.code-reserve svg { width: 56%; height: auto; aspect-ratio: 976 / 916; filter: grayscale(1) contrast(1.12); }
.viewfinder-corner { position: absolute; width: 23px; height: 23px; border: 1px solid #aaa; }
.corner-tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.corner-tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.corner-bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.corner-br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.mini-program-code { width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: none; }
.mini-program-link { position: absolute; right: 20px; bottom: 19px; width: 36px; height: 36px; display: grid; place-items: center; }
.mini-program-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.site-footer { min-height: 72px; padding: 24px 6vw; background: #fff; }
.filing-area { min-height: 24px; }

@media (max-width: 700px) {
  .site-header { height: 86px; padding: 19px 21px; }
  .brand-link { height: 44px; gap: 10px; }
  .brand-mark { width: 34px; height: 33px; }
  .brand-name { font-size: 13px; letter-spacing: 0; }
  .chapter-dot { width: 30px; }
  .enhanced:not(.reduced-motion) .chapter-process { height: 390svh; }
  .enhanced:not(.reduced-motion) .chapter-entry { height: 135svh; }
  .back-top { bottom: 7svh; width: 44px; height: 44px; left: calc(50% - 22px); }
  .parcel-art, .tank-art { width: 105vw; max-width: 590px; }
  .scanner { width: 83vw; height: 265px; transform: translateY(-10px); }
  .scanner-bed { height: 200px; padding: 28px 15px; border-width: 9px; }
  .scanner-front { top: 199px; height: 43px; }
  .scanner-indicator { top: 20px; right: 18px; }
  .scanner-slot { top: 228px; }
  .scan-print { top: 233px; height: 135px; padding: 7px 7px 23px; }
  .negative-strip { gap: 5px; padding-inline: 5px; }
  .delivery-composition { width: 360px; max-width: 95vw; height: 410px; }
  .phone { width: 175px; height: 350px; left: 45%; top: 30px; padding: 40px 11px 24px; border-radius: 28px; border-width: 4px; }
  .phone-brand { width: 23px; height: 22px; margin-bottom: 14px; }
  .phone-gallery { height: 215px; gap: 4px; }
  .phone-camera { height: 14px; width: 48px; left: calc(50% - 24px); }
  .delivery-print { width: 210px; height: 225px; left: 9px; top: 87px; padding: 11px 11px 35px; }
  .delivery-check { left: 35%; bottom: 29px; }
  .entry-composition { width: min(320px, 70vw); }
  .entry-paper-front { padding: 28px; }
  .viewfinder-corner { width: 18px; height: 18px; }
  .process-shot { min-height: 520px; }
}
@media (max-width: 359px) {
  .site-header { padding-inline: 16px; }
  .brand-link { gap: 8px; }
  .brand-name { font-size: 12px; }
  .chapter-dot { width: 26px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  .parcel-art, .tank-art { width: min(560px, 74vw); }
  .scanner, .delivery-composition { scale: .7; }
  .entry-composition { width: 260px; }
  .site-header { height: 82px; padding-block: 15px; }
  .back-top { bottom: 24px; }
  .enhanced:not(.reduced-motion) .process-position { bottom: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .process-shot { will-change: auto; }
}
