:root {
  color-scheme: light;
  --paper: #f1ece3;
  --ink: #34291f;
  --muted: #756556;
  --amber: #94663e;
  --line: #a286633d;
  --header-height: 80px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { margin: 0; scroll-behavior: auto; }
body { margin: 0; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
.filter-definitions { position: absolute; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page-header { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px clamp(24px,5vw,80px); position: sticky; top: 0; z-index: 10; background: var(--paper); }
.brand { width: 93px; height: 62px; object-fit: contain; display: block; }
.header-caption { font-size: 12px; letter-spacing: .02em; color: var(--muted); margin: 0; }
.frame-sequence { position: relative; }
.frame-stage { height: calc(100vh - var(--header-height)); height: calc(100svh - var(--header-height)); min-height: 560px; position: relative; overflow: hidden; isolation: isolate; outline: none; }
.scroll-enabled .frame-sequence { height: 530vh; height: 530svh; }
.scroll-enabled .frame-stage { position: sticky; top: var(--header-height); }
.frame-window { position: absolute; inset: 0 0 0 42%; overflow: hidden; display: grid; place-items: center; }
.frame-visual { grid-area: 1 / 1; width: auto; height: 100%; max-width: 100%; min-width: 0; min-height: 0; aspect-ratio: 9 / 16; object-fit: contain; display: block; -webkit-mask-image: linear-gradient(90deg,transparent 0%,#000 12%,#000 90%,transparent 100%); mask-image: linear-gradient(90deg,transparent 0%,#000 12%,#000 90%,transparent 100%); }
.frame-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--paper),transparent 12%,transparent 84%,var(--paper)); }
.natural-filter .frame-visual { filter: contrast(1.035) brightness(1.008) saturate(1.015); }
.story-copy { position: absolute; z-index: 2; left: clamp(36px,7vw,110px); top: 50%; transform: translateY(-56%); width: 49%; pointer-events: none; }
.eyebrow { font-size: 10px; line-height: 1.5; text-transform: uppercase; font-weight: 500; letter-spacing: .22em; margin: 0 0 24px; color: var(--amber); }
.story-copy h2 { font-size: clamp(48px,5.4vw,86px); font-weight: 500; line-height: 1.02; letter-spacing: -.065em; white-space: pre-line; margin: 0; }
.story-body { font-size: 18px; line-height: 1.6; margin: 25px 0 0; color: var(--muted); max-width: 310px; }
.story-body:empty { display: none; }
.scroll-invitation { position: absolute; z-index: 3; bottom: 42px; left: clamp(36px,7vw,110px); display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--muted); letter-spacing: .025em; }
.scroll-line { width: 1px; height: 32px; background: linear-gradient(var(--amber),#94663e20); }
.final-label { display: none; }
[data-scene="finale"] .scroll-label { display: none; }
[data-scene="finale"] .final-label { display: inline; }
.film-track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); z-index: 4; }
#film-progress { display: block; height: 100%; background: #ad8053; transform: scaleX(0); transform-origin: left; }
.load-message { position: absolute; z-index: 4; bottom: 7px; left: 24px; right: 24px; text-align: center; font-size: 12px; }
#frame-status { margin: 0; }
#retry-frame { border: 1px solid var(--line); padding: 8px 16px; margin: 5px; border-radius: 24px; background: var(--paper); color: var(--ink); cursor: pointer; }
.welcome { position: relative; padding: clamp(74px,11vw,150px) 24px clamp(72px,9vw,120px); text-align: center; background: #ebe2d5; }
.welcome-mark { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 0 auto 42px; }
.welcome-mark img { width: 120px; height: 80px; object-fit: contain; }
.welcome-mark span { width: 60px; height: 1px; background: #a2866370; }
.welcome .eyebrow { margin-bottom: 20px; }
.welcome h2 { font-size: clamp(35px,5.2vw,68px); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; margin: 0; }
.welcome-body { font-size: 16px; line-height: 1.8; color: #6b5948; margin: 27px auto 34px; max-width: 480px; }
.enter-site { display: flex; width: max-content; min-width: 200px; min-height: 56px; margin: 0 auto; justify-content: center; align-items: center; padding: 17px 30px; background: #3c2e23; color: #fff9f0; text-decoration: none; font-size: 14px; border-radius: 32px; box-shadow: 0 8px 24px #5b3e2312; transition: background .2s, transform .2s; }
.enter-site:hover { background: #684a30; transform: translateY(-2px); }
.replay-film { display: block; margin: 13px auto 0; padding: 12px 16px; min-height: 44px; border: 0; background: transparent; color: #74604d; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #a2866390; }
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; background: #ebe2d5; padding: 26px clamp(24px,5vw,80px) max(26px,env(safe-area-inset-bottom)); border-top: 1px solid #a286632b; font-size: 10px; letter-spacing: .05em; color: #756453; }
.noscript-note { font-size: 12px; color: var(--muted); }
@media(max-width: 760px) {
  :root { --header-height: 74px; }
  .page-header { padding: 7px 22px; }
  .brand { width: 84px; height: 56px; }
  .header-caption { font-size: 10px; }
  .frame-stage { min-height: 500px; }
  .frame-window { inset: 0; }
  .frame-visual { object-fit: contain; -webkit-mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
  .frame-window::after { background: linear-gradient(var(--paper),transparent 14%,transparent 83%,var(--paper)); }
  .story-copy { left: 20px; right: 20px; width: auto; top: 30px; transform: none; text-align: center; }
  .eyebrow { font-size: 9px; margin-bottom: 15px; letter-spacing: .2em; }
  .story-copy h2 { font-size: clamp(38px,10.8vw,60px); line-height: 1.015; letter-spacing: -.06em; }
  .story-body { font-size: 15px; line-height: 1.6; margin: 14px auto 0; max-width: 270px; }
  .scroll-invitation { left: 20px; right: 20px; bottom: 28px; justify-content: center; font-size: 10px; gap: 10px; }
  .scroll-line { height: 24px; }
  [data-scene="taglio"] .story-copy, [data-scene="velo"] .story-copy { padding-bottom: 25px; }
  [data-scene="taglio"] .frame-window::after, [data-scene="velo"] .frame-window::after { background: linear-gradient(var(--paper),#f1ece3f5 9%,#f1ece3e6 22%,#f1ece300 44%,#f1ece300 83%,var(--paper)); }
  [data-scene="finale"] .story-copy { top: auto; bottom: 90px; }
  [data-scene="finale"] .story-copy h2 { font-size: 40px; }
  [data-scene="finale"] .story-copy .eyebrow { margin-bottom: 12px; }
  .welcome { padding-top: 70px; padding-bottom: 62px; }
  .welcome-mark { margin-bottom: 30px; }
  .welcome-mark img { width: 110px; height: 73px; }
  .welcome-body { font-size: 14px; }
}
@media(max-height: 650px) and (max-width:760px) {
  :root { --header-height: 62px; }
  .brand { width: 72px; height: 48px; }
  .frame-stage { min-height: 420px; }
  .story-copy { top: 16px; }
  .story-copy h2 { font-size: 36px; }
  .story-copy .eyebrow { margin-bottom: 10px; }
  .story-body { margin-top: 10px; font-size: 13px; }
  [data-scene="finale"] .story-copy { bottom: 65px; }
  [data-scene="finale"] .story-copy h2 { font-size: 34px; }
  .scroll-invitation { bottom: 19px; }
}
@media(prefers-reduced-motion:reduce) {
  .scroll-enabled .frame-sequence { height: auto; }
  .scroll-enabled .frame-stage { position: relative; top: 0; }
  .film-track, .scroll-invitation { display: none; }
  .enter-site { transition: none; }
}

/* Immediate entry beside the original logo. */
.entry-access{display:flex;align-items:center;gap:22px}.entry-immediate{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 20px;border:1px solid #806143;border-radius:30px;background:#3c2e23;color:#fff9f0;text-decoration:none;font-size:13px;white-space:nowrap}.entry-immediate:focus-visible{outline:3px solid #92552e;outline-offset:3px}@media(max-width:600px){.entry-access .header-caption{display:none}.entry-immediate{font-size:12px;padding:10px 15px}.page-header{gap:10px}}

/* Direct access is available from the first frame; the brand film stays intact. */
.page-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;height:var(--header-height);gap:16px}
.entry-brand{display:block;min-height:44px}
.entry-quick{display:flex;justify-content:flex-end;align-items:center;gap:24px;margin-right:24px}
.entry-quick a{font-size:12px;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
.page-header .entry-immediate{margin:0}
@media(max-width:760px){
 :root{--header-height:128px}
 .page-header{grid-template-columns:auto minmax(0,1fr);gap:0 12px;padding:4px 18px}
 .page-header .entry-immediate{justify-self:end;font-size:12px}
 .entry-quick{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:12px;margin:0;border-top:1px solid var(--line)}
 .entry-quick a{font-size:12px}
}
@media(max-height:650px) and (max-width:760px){:root{--header-height:118px}}
