/* One atmosphere from the opening image to the final invitation. */
.emerge-line { display: block; overflow: clip; padding-bottom: .10em; margin-bottom: -.10em; }
.emerge-line > span { display: block; transform-origin: 0 100%; }
.hero h1 .emerge-line { padding-bottom: .13em; margin-bottom: -.13em; }
.hero h1 .emerge-line + .emerge-line { margin-top: -.02em; }
.hero-seam { transform-origin: center top; }

.after-scenes { position: relative; display: flow-root; isolation: isolate; background: var(--bg); }
@media (max-width: 760px) {
  /* Keep the offscreen sections out of the first layout on a fresh visit. */
  html[data-defer-lower-layout] .after-scenes {
    content-visibility: auto;
    contain-intrinsic-block-size: auto 4600px;
  }
}
.story-enhanced .after-scenes { z-index: 3; margin-top: -22svh; clip-path: inset(0 var(--sheet-inset,32px) 0 round var(--sheet-radius,30px) var(--sheet-radius,30px) 0 0); }
.story-enhanced .after-scenes .collection { margin-top: 0; clip-path: none; }
.flow-landscape { position: absolute; top: 0; inset-inline: 0; height: 120svh; z-index: -1; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 33%, transparent), var(--bg)); background-position: center top; background-size: cover; opacity: .22; }
.after-scenes.has-landscape .flow-landscape { opacity: .22; }
.flow-field { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.flow-field svg { width: 100%; height: 100%; opacity: .26; }
.flow-thread { fill: none; stroke: #c8a27a; stroke-width: .7; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--flow-progress, 1)); }
.flow-thread.faint { stroke: #6f8d80; opacity: .5; stroke-width: .6; stroke-dasharray: none; stroke-dashoffset: 0; }
[data-flow-section] { position: relative; isolation: isolate; }
[data-flow-section]::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 78% 40%, #d1ae7d0c, transparent 62%); opacity: calc(.25 + var(--section-progress, .5) * .65); transform: translateY(var(--section-drift, 0px)); }
[data-flow-section] .container { position: relative; }
.after-scenes .collection { background: linear-gradient(180deg,color-mix(in srgb, var(--bg) 95%, transparent),color-mix(in srgb, var(--bg) 81%, transparent) 70%,transparent); }
.light-theme .after-scenes .collection { background: linear-gradient(180deg,#eee9dff0,#eee9dfcf 70%,#eee9df00); }
.after-scenes .section-heading { position: relative; }
.chapter-marker { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; color: var(--accent); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.chapter-marker::before { content: ''; width: 56px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(var(--section-progress, 1)); }
.section-heading .eyebrow { color: var(--accent); margin-bottom: 18px; }

/* Arrival is visible, then the content stays still for reading. */
.js-reveal .reveal { opacity: 0; transform: translateY(46px); transition: opacity 800ms ease, transform 1000ms cubic-bezier(.16,1,.3,1); }
.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-reveal .reveal .emerge-line > span { transform: translateY(108%); transition: transform 1050ms cubic-bezier(.16,1,.3,1); transition-delay: var(--line-delay, 0ms); }
.js-reveal .reveal.is-visible .emerge-line > span { transform: translateY(0); }
.js-reveal .section-heading.reveal > p,
.js-reveal .center-heading.reveal > p:last-child { transition: opacity 800ms ease 180ms, transform 900ms cubic-bezier(.16,1,.3,1) 180ms; }
.js-reveal .section-heading.reveal:not(.is-visible) > p,
.js-reveal .center-heading.reveal:not(.is-visible) > p:last-child { opacity: 0; transform: translateY(24px); }
.js-reveal .collection-grid > .collection-card.reveal { transition: opacity 900ms ease, transform 1100ms cubic-bezier(.16,1,.3,1); }
.js-reveal .collection-grid > .collection-card.reveal:not([data-micro-entered]) { transition-delay: var(--micro-reveal-delay, 0ms); }
.js-reveal .collection-card .card-art { clip-path: inset(0 0 0 0); transition: clip-path 1200ms cubic-bezier(.16,1,.3,1); }
.js-reveal .collection-card:not(.is-visible) .card-art { clip-path: inset(14% 0 14% 0); }
.collection-card { position: relative; transition: border-color 300ms ease, box-shadow 400ms ease; }
.collection-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; background: radial-gradient(500px circle at var(--pointer-x,50%) var(--pointer-y,30%),#e2c6a20b,transparent 70%); transition: opacity 350ms ease; }
.collection-card:hover::after,.collection-card:focus-within::after { opacity: 1; }
.collection-card:hover,.collection-card:focus-within { border-color: #8c8067; box-shadow: 0 18px 60px #00000013; }
.card-art { isolation: isolate; }
.plate-art { transform: translateY(var(--art-drift,0px)) scale(1.055); transition: scale 900ms cubic-bezier(.16,1,.3,1), filter 600ms ease; }
.card-art[data-artwork="drawing"] .plate-art { object-fit: contain; background: #e7e0cf; padding: 20px; }
.collection-card:hover .plate-art { scale: 1.025; }
.card-copy .pill-button { transition: background 250ms, border-color 250ms, transform 300ms cubic-bezier(.16,1,.3,1); }
.work-card { position: relative; border-top-color: transparent; }
.work-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(1); transition: transform 850ms cubic-bezier(.16,1,.3,1), background 300ms; }
.js-reveal .work-card.reveal:not(.is-visible)::before { transform: scaleX(.08); }
.work-card:hover::before,.work-card:focus-within::before { background: var(--accent); }
.work-card-actions a,.work-card-actions button { transition: color 250ms ease; }
.work-card-actions .inline-arrow { transition: transform 300ms cubic-bezier(.16,1,.3,1); }
.work-card-actions :is(a,button):hover .inline-arrow { transform: translate(3px,-3px); }
.work-filters button { position: relative; border-bottom: 0; }
.work-filters button::after { content: ''; position: absolute; height: 1px; bottom: 0; left: 9px; right: 9px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 350ms cubic-bezier(.16,1,.3,1); }
.work-filters button[aria-pressed="true"]::after { transform: scaleX(1); }

/* The case remains a small document you can follow, within the same landscape. */
.experience { padding-top: 100px; }
.experience-stage { background: linear-gradient(145deg,var(--surface),var(--bg)); box-shadow: 0 26px 80px #00000012; }
.experience-stage::after { content: ''; position: absolute; width: 135px; height: 135px; right: -65px; top: -65px; border: 1px solid #d2ad8838; border-radius: 50%; pointer-events: none; scale: calc(.85 + var(--case-step,1) * .12); transition: scale 650ms cubic-bezier(.16,1,.3,1); }
.experience .step-list button { transition: padding-left 350ms cubic-bezier(.16,1,.3,1), background-color 300ms; }
.experience .step-list button[aria-selected="true"] { padding-left: 28px; }
.feature-panel { background: linear-gradient(120deg,var(--surface),#152520b3 64%,var(--bg)); }
.light-theme .feature-panel { background: linear-gradient(120deg,var(--surface),#d4d6c7b3 64%,var(--bg)); }
.material-study { transform: translateY(var(--about-drift,0px)); }
.material-study::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg,transparent 20%,#eee6cf09 48%,transparent 76%); background-size: 220% 100%; animation: material-light 14s ease-in-out infinite alternate; animation-play-state: paused; }
.material-study.is-in-view::after { animation-play-state: running; }
@keyframes material-light { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.closing { overflow: clip; background: radial-gradient(ellipse at 88% 58%,#d4bd98,transparent 64%),#e7e1cf; }
.closing::before { background: radial-gradient(ellipse at 12% 20%,#fff9e9cc,transparent 60%); }
.closing-seam { transform-origin: top; scale: 1 var(--section-progress,1); transition: scale 700ms cubic-bezier(.16,1,.3,1); }
.closing .pill-button { border-color: #8a917d; background: #f4efdf25; }
.closing .pill-button:hover { background: #1c2d26; color: #eee9df; }

.flow-navigation { position: fixed; right: 13px; top: 50%; z-index: 15; display: flex; flex-direction: column; gap: 14px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 400ms ease; }
.flow-navigation.is-active { opacity: 1; pointer-events: auto; }
.flow-navigation a { width: 28px; height: 28px; display: grid; place-items: center; position: relative; }
.flow-navigation a::before { content: ''; width: 4px; height: 4px; border: 1px solid var(--accent); border-radius: 50%; opacity: .5; transition: scale 250ms ease,opacity 250ms,background 250ms; }
.flow-navigation a[aria-current="location"]::before { opacity: 1; background: var(--accent); scale: 1.6; }
.flow-navigation span { position: absolute; right: 24px; white-space: nowrap; padding: 4px 9px; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 3px; font-size: 10px; opacity: 0; translate: 5px 0; transition: opacity 200ms,translate 200ms; pointer-events: none; }
.flow-navigation a:hover span,.flow-navigation a:focus-visible span { opacity: 1; translate: 0 0; }
.detail-journey { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.detail-journey h3,.detail-related h3 { font-size: 11px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.detail-journey ol { padding-left: 18px; margin: 15px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; color: var(--muted); font-size: 13px; }
.detail-related { margin-top: 26px; }
.detail-related > div { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 12px; }
.detail-related button { background: none; padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 12px; }
.detail-related button:hover { border-color: var(--accent); }

@media (min-width: 1600px) { .flow-navigation { right: 30px; } }
@media (max-width: 900px) { .flow-navigation { display: none; } }
@media (max-width: 760px) {
  .story-enhanced .after-scenes { margin-top: -15svh; }
  .story-enhanced .after-scenes .collection { margin-top: 0; }
  .chapter-marker { font-size: 9px; margin-bottom: 22px; }
  .chapter-marker::before { width: 32px; }
  .experience { padding-top: 72px; }
  .experience .step-list button[aria-selected="true"] { padding-left: 13px; }
  .js-reveal .reveal { transform: translateY(30px); }
  .js-reveal .reveal.is-visible { transform: none; }
  .detail-journey ol { grid-template-columns: 1fr; }
  .flow-landscape { opacity: .14; }
}
@media (prefers-reduced-motion: reduce) {
  .emerge-line > span,.js-reveal .reveal .emerge-line > span { transform: none !important; opacity: 1 !important; transition: none !important; }
  .flow-thread { stroke-dashoffset: 0; }
  [data-flow-section]::before,.plate-art,.material-study { transform: none !important; }
  .plate-art { scale: 1 !important; }
  .material-study::after { animation: none; }
  .collection-card .card-art { clip-path: none !important; }
}
.motion-paused .emerge-line > span,.motion-paused .reveal .emerge-line > span { transform: none !important; opacity: 1 !important; transition: none !important; }
.motion-paused [data-flow-section]::before,.motion-paused .plate-art,.motion-paused .material-study { transform: none !important; }
.motion-paused .material-study::after,.page-hidden .material-study::after { animation-play-state: paused; }
.motion-paused .collection-card .card-art { clip-path: none !important; transition: none !important; }
.motion-paused .plate-art { scale: 1 !important; transition: none !important; }
.motion-paused .section-heading.reveal > p,.motion-paused .center-heading.reveal > p:last-child,
.motion-paused .collection-card::after,.motion-paused .flow-navigation a::before,.motion-paused .flow-navigation span { transition: none !important; }
.motion-paused :is(.collection-card,.work-card,.flow-navigation,.closing-seam),
.motion-paused .work-card::before,.motion-paused .work-filters button::after,.motion-paused .experience-stage::after { transition: none !important; }
