/* Option B — Clear. The object, large, on Spring White; formats on their own grounds. */
body { background: var(--white); color: var(--charcoal); }
.wm { --wm-ink: var(--charcoal); --wm-d: var(--orange); }

.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--margin); transition: background-color .4s var(--ease-out), color .4s, transform .5s var(--ease-out); }
.bar.is-hidden { transform: translateY(-100%); }
.bar.is-solid { background: var(--white); }
.bar.on-dark { color: var(--white); }
.bar.on-dark .wm { --wm-ink: var(--white); }
.bar.on-dark.is-solid { background: var(--charcoal); }
.bar__mark { width: 116px; }
.bar__nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.bar__nav a { padding: 10px 0; text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color .3s var(--ease-out); }
.bar__nav a:hover { text-decoration-color: currentColor; }

/* Hero: the window */
.hero { position: relative; height: 210svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__window { position: absolute; inset: 0; --t: 126px; --s: calc(50vw - 18vw); clip-path: inset(var(--t) var(--s) var(--t) var(--s) round 46% 46% 0 0 / 22% 22% 0 0); will-change: clip-path; }
.hero__window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(var(--z, 1.12)); }
.hero__left { position: absolute; left: var(--margin); bottom: 126px; width: calc(50vw - 18vw - var(--margin) - 32px); will-change: transform, opacity; }
.hero__title { font-size: clamp(48px, 5.2vw, 88px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 600; }
.hero__right { position: absolute; right: var(--margin); bottom: 126px; width: calc(50vw - 18vw - var(--margin) - 32px); display: grid; gap: 22px; justify-items: start; will-change: transform, opacity; }
.hero__right p { font-size: 18px; max-width: 26ch; }

/* Chapters */
.chapter { height: 100svh; position: relative; }
.chapter__field { position: absolute; inset: 0; clip-path: inset(20px); transition: clip-path .9s var(--ease-out); display: grid; place-items: center; }
.chapter.is-in .chapter__field { clip-path: inset(0); }
.chapter--charcoal .chapter__field { background: var(--charcoal); color: var(--white); }
.chapter--black .chapter__field { background: var(--black); color: var(--white); }
.chapter--mist .chapter__field { background: var(--mist); color: var(--charcoal); }
.chapter__portrait { width: min(506px, 36vw); aspect-ratio: 3 / 4; overflow: hidden; transform: scale(.92); transition: transform 1.1s var(--ease-out); }
.chapter.is-in .chapter__portrait { transform: none; }
.chapter__portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.chapter.is-in .chapter__portrait img { transform: none; }
.chapter__title { position: absolute; top: 96px; left: var(--margin); font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.chapter__text { position: absolute; left: var(--margin); bottom: 48px; max-width: 32ch; font-size: 17px; }
.chapter__buy { position: absolute; right: var(--margin); bottom: 48px; display: flex; align-items: center; gap: 20px; font-size: 22px; font-weight: 600; }

/* About */
.about { padding: 20px; }
.about__panel { position: relative; min-height: 110svh; background: var(--charcoal); color: var(--white); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.about__left { padding: 56px; position: relative; }
.about__title { font-size: clamp(40px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.035em; font-weight: 600; max-width: 9ch; }
.about__arch { position: absolute; left: 56px; bottom: -8vw; width: 36vw; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.about__arch img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.about__right { padding: 56px 56px 56px 13%; display: grid; align-content: start; gap: 56px; }
.about__right > div { max-width: 340px; }
.about__right h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.about__right p { color: var(--mist); font-size: 17px; }
.about__right .btn { justify-self: start; }

/* Formats grid */
.formats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: var(--gap-section) var(--margin) 0; }
.formats__head { grid-column: 1 / span 3; align-self: start; position: sticky; top: 110px; }
.formats__head p { margin-top: 16px; max-width: 30ch; color: var(--grey-dark); }
.formats__grid { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.formats__grid li:nth-child(2), .formats__grid li:nth-child(3), .formats__grid li:nth-child(6) { grid-column: span 2; }
.tile { display: grid; gap: 12px; }
.tile__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.tile:nth-child(2) .tile__img, .tile:nth-child(3) .tile__img, .tile:nth-child(6) .tile__img { aspect-ratio: 8 / 5; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__quick { position: absolute; left: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease-out); min-height: 44px; padding: 0 16px; font-size: 15px; }
.tile:hover .tile__quick, .tile__quick:focus-visible { opacity: 1; transform: none; }
.tile__name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; display: flex; justify-content: space-between; }
.tile__fact { font-size: 16px; color: var(--grey-dark); margin-top: -8px; }

/* Shop: object returns + case builder */
.shop { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; min-height: 92svh; margin-top: var(--gap-section); background: var(--mist); overflow: hidden; }
.shop__object { grid-column: 1 / span 7; position: relative; min-height: 92svh; overflow: hidden; }
.shop__object img { position: absolute; left: 0; bottom: -12%; width: 100%; height: auto; transition: opacity .45s var(--ease-out), transform .8s var(--ease-out); }
.shop__object img.is-swapping { opacity: 0; transform: translateY(24px); }
.shop__form { position: relative; z-index: 1; grid-column: 8 / span 4; align-self: center; display: grid; gap: 26px; padding: 64px 0; }
.shop__formats { border: 0; padding: 0; margin: 0; }
.shop__formats [data-shop-options] { display: grid; gap: 6px; }
.opt { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 48px; padding: 0 16px; background: var(--white); cursor: pointer; transition: background-color .25s, color .25s; font-size: 16px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .num { color: var(--grey-dark); }
.opt:hover { background: var(--white); color: var(--orange); }
.opt:has(input:checked) { background: var(--charcoal); color: var(--white); }
.opt:has(input:checked) .num { color: var(--mist); }
.opt:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.shop__qty { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 500; }
.qty--big { background: var(--white); margin: 0; }
.qty--big button { width: 48px; height: 48px; font-size: 22px; }
.qty--big output { min-width: 44px; font-size: 18px; font-weight: 600; }
.shop__sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; color: var(--grey-dark); }
.shop__sum strong { font-size: clamp(32px, 2.8vw, 44px); color: var(--charcoal); letter-spacing: -0.03em; }
.shop__add { width: 100%; }

/* Trade */
.trade { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: var(--gap-section) var(--margin); background: var(--charcoal); color: var(--white); }
.trade__copy { grid-column: 1 / span 6; }
.trade__copy .display { font-size: clamp(44px, 5vw, 84px); max-width: 12ch; }
.trade__points { margin-top: 64px; display: grid; gap: 28px; max-width: 46ch; }
.trade__points dt { font-size: 20px; font-weight: 600; }
.trade__points dd { color: var(--mist); }
.trade__form { grid-column: 8 / span 5; display: grid; gap: 16px; align-content: start; background: var(--white); color: var(--charcoal); padding: 40px; }
.trade__form h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.trade__form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.trade__form input { height: 48px; padding: 0 14px; border: 1px solid var(--grey); background: var(--white); font-size: 16px; border-radius: 0; transition: border-color .2s; }
.trade__form input:focus { border-color: var(--charcoal); outline: 2px solid var(--orange); outline-offset: 0; }
.trade__form .btn { margin-top: 8px; }

/* Footer: the back of the card */
.foot { background: var(--charcoal); padding: 0 var(--margin) 80px; }
.foot__liquid { position: relative; aspect-ratio: 354 / 110; max-height: 46svh; margin: 0 auto; width: 100%; }
.foot__liquid canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot__still { --wm-ink: var(--white); position: absolute; inset: 0; margin: auto; width: 92%; opacity: 0; }
.foot__liquid.no-webgl .foot__still { opacity: 1; }
.foot__card { position: relative; width: calc(100% * 10 / 12); margin: 40px auto 0; background: var(--white); color: var(--charcoal); padding: 72px 56px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.foot__scallops { position: absolute; left: 0; top: -24px; width: 100%; height: 26px; fill: var(--white); }
.foot__msg h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.foot__msg p { max-width: 36ch; }
.foot__addr { position: relative; display: grid; gap: 12px; align-content: start; font-size: 18px; padding-top: 8px; }
.foot__addr a { text-decoration: none; justify-self: start; }
.foot__addr a:hover { color: var(--orange); }
.foot__stamp { position: absolute; right: 0; top: -20px; width: 88px; aspect-ratio: 3 / 4; object-fit: cover; padding: 6px; background: var(--mist); transform: rotate(4deg); }
.foot__imprint { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--grey-dark); padding-bottom: 32px; }

@media (max-width: 760px) {
  .bar { padding: 14px 16px; }
  .bar__mark { width: 92px; }
  .bar__nav a { display: none; }
  .hero { height: 180svh; }
  .hero__window { --t: 42svh; --s: 11vw; clip-path: inset(var(--t) var(--s) 12svh var(--s) round 46% 46% 0 0 / 22% 22% 0 0); }
  .hero__left { left: 20px; right: 20px; top: 76px; bottom: auto; width: auto; }
  .hero__title { font-size: 12vw; }
  .hero__right { left: 20px; right: 20px; top: 136px; bottom: auto; width: auto; gap: 14px; }
  .hero__right p { font-size: 18px; max-width: 30ch; }
  .chapter__portrait { width: 80vw; }
  .chapter__title { top: 76px; left: 32px; right: 32px; font-size: 26px; }
  .chapter__text { left: 32px; right: 32px; bottom: 96px; font-size: 16px; }
  .chapter__buy { left: 32px; right: 32px; bottom: 32px; justify-content: space-between; }
  .about { padding: 10px; }
  .about__panel { grid-template-columns: 1fr; min-height: 0; }
  .about__left { padding: 32px 24px 0; }
  .about__title { font-size: 9vw; }
  .about__right { padding: 32px 24px 0; gap: 32px; }
  .about__arch { position: relative; left: auto; bottom: auto; width: 86vw; margin: 40px auto 0; }
  .formats { grid-template-columns: 1fr; padding: 120px 16px 0; }
  .formats__head, .formats__grid { grid-column: 1; position: static; }
  .formats__grid { grid-template-columns: 1fr 1fr; gap: 24px 8px; grid-auto-flow: dense; }
  .formats__grid li:nth-child(3) { grid-column: auto; }
  .tile:nth-child(3) .tile__img { aspect-ratio: 4 / 5; }
  .tile__name { font-size: 17px; }
  .tile__fact { font-size: 15px; }
  .tile__quick { opacity: 1; transform: none; left: 8px; bottom: 8px; }
  .shop { grid-template-columns: 1fr; }
  .shop__form { grid-column: 1; order: -1; padding: 56px 16px 0; }
  .shop__object { grid-column: 1; min-height: 55svh; }
  .trade { grid-template-columns: 1fr; padding: 120px 16px; }
  .trade__copy, .trade__form { grid-column: 1; }
  .trade__form { padding: 28px 20px; margin-top: 24px; }
  .foot { padding: 0 16px 80px; }
  .foot__card { width: 100%; grid-template-columns: 1fr; padding: 56px 24px 24px; }
  .foot__stamp { width: 64px; top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .chapter__field { clip-path: none; }
}
