/* Quiet and photographic: the pictures carry the page, type stays thin, motion is slow and settles.
   Four versions share one layout and differ only in these tokens (html[data-theme]). Dark is the default. */
:root {
  --bg: #0c0c0d;
  --bg2: #141416;
  --bg3: #1c1c1f;
  --line: #26262a;
  --fg: #ececec;
  --mute: #96969c;
  --dim: #7d7d83;
  --accent: #f0a63a;
  --on-accent: #141414;
  --stage: #09090a;
  --veil: rgba(6, 6, 7, .95);
  --paper: #f2efe8;
  --display: 'Jost', system-ui, sans-serif;
  --display-weight: 200;
  --display-track: .28em;
  --r: 10px;
  --font: 'Jost', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(16px, 3.4vw, 56px);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
[data-theme="cream"] {
  --bg: #f4f0e8; --bg2: #ebe5da; --bg3: #e1d9cb; --line: #d6cdbe;
  --fg: #1f1c19; --mute: #675e53; --dim: #8c8173; --accent: #a4561a; --on-accent: #fbf8f2;
  --stage: #efe9df; --veil: rgba(244, 240, 232, .97);
  --shadow: 0 30px 60px -34px rgba(60, 45, 30, .45);
  color-scheme: light;
}
[data-theme="gallery"] {
  --bg: #ffffff; --bg2: #f3f3f2; --bg3: #e8e8e6; --line: #e2e2e0;
  --fg: #121212; --mute: #5f5f5f; --dim: #121212; --accent: #b4441c; --on-accent: #fff;
  --stage: #f6f6f5; --veil: rgba(255, 255, 255, .97);
  --display: 'Instrument Serif', Georgia, serif; --display-weight: 400; --display-track: .01em;
  --shadow: 0 30px 60px -36px rgba(0, 0, 0, .35);
  color-scheme: light;
}
[data-theme="darkroom"] {
  --bg: #110b0a; --bg2: #1a1210; --bg3: #241815; --line: #2e201c;
  --fg: #efe4de; --mute: #a8928a; --dim: #82685f; --accent: #ff5b3d; --on-accent: #1a0d0a;
  --stage: #0d0807; --veil: rgba(13, 8, 7, .96);
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 300 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
body.is-locked, body[data-view="project"], body[data-view="home"] { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { list-style: none; padding: 0; }
svg { width: 18px; height: 18px; flex: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="cream"] .grain, [data-theme="gallery"] .grain { opacity: .05; mix-blend-mode: multiply; }

.label { font: 400 12px/1.4 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }

/* text link: the underline retracts to the right and draws back in from the left */
.link {
  position: relative; display: inline-block; padding-bottom: 7px;
  font: 400 12px/1 var(--font); letter-spacing: .22em; text-transform: uppercase;
}
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .45; transform-origin: right; }
.link:hover::after, .link:focus-visible::after { opacity: 1; animation: line .9s var(--ease); }
.link--accent { color: var(--accent); }
.link[aria-current]::after { opacity: 1; }
@keyframes line {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px;
  border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); border-radius: 999px;
  font: 400 12px/1 var(--font); letter-spacing: .22em; text-transform: uppercase;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:disabled { opacity: .4; cursor: not-allowed; background: none; color: inherit; }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--dark { background: #1a1a1a; color: var(--paper); border-color: #1a1a1a; }
.btn--dark:hover { background: #000; color: var(--paper); border-color: #000; }
.btn--paper { color: #1a1a1a; border-color: rgba(26, 26, 26, .3); }
.btn--paper:hover { background: #1a1a1a; color: var(--paper); border-color: #1a1a1a; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); transition: border-color .4s, background .4s;
}
.icon-btn:hover { border-color: color-mix(in srgb, var(--fg) 60%, transparent); }

/* ---------------------------------------------------------------- header (list page only; home has the big name) */
.top { display: flex; justify-content: center; align-items: center; height: 76px; }
body[data-view="home"] .top { display: none; }
.top__name { font: 400 13px/1 var(--font); letter-spacing: .4em; text-transform: uppercase; padding-left: .4em; transition: color .5s; }
.top__name:hover { color: var(--accent); }

/* ---------------------------------------------------------------- home: one screen, no scrolling */
.home { height: 100vh; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }

/* the name: letters near the cursor gain weight */
.title {
  display: flex; justify-content: center; flex-wrap: wrap; column-gap: .55em;
  padding: clamp(18px, 3.4vh, 40px) var(--gut) clamp(16px, 3vh, 34px);
  font: var(--display-weight) clamp(34px, 5.4vw, 88px)/1.05 var(--display); letter-spacing: var(--display-track); text-transform: uppercase;
  color: var(--dim); cursor: default; user-select: none;
}
[data-theme="gallery"] .title { text-transform: none; font-size: clamp(44px, 7vw, 112px); }
.title__gap { display: none; }
.title__word { display: inline-flex; white-space: nowrap; }
.title__word > span { display: inline-block; text-align: center; --h: 0; font-weight: calc(var(--display-weight) + var(--h) * 260); color: color-mix(in srgb, var(--fg) calc(var(--h) * 100%), var(--dim)); }
[data-theme="gallery"] .title__word > span { font-weight: 400; color: color-mix(in srgb, var(--accent) calc(var(--h) * 100%), var(--fg)); }

/* the two sides, meeting in the middle */
.select { display: flex; gap: 2px; min-height: 0; padding: 0 var(--gut); }
.side {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; background: var(--bg2);
  transition: flex-grow 1.4s var(--ease);
}
.side--personal { border-radius: var(--r) 0 0 var(--r); }
.side--client { border-radius: 0 var(--r) var(--r) 0; }
.select.has-open .side.is-open { flex-grow: 1.3; }
.side__media { position: absolute; inset: 0; transition: opacity 1.2s var(--ease); }
.select.has-open .side:not(.is-open) .side__media { opacity: .45; }
/* two stacked frames: the incoming one plays the chosen transition over the outgoing one */
.side__frame { position: absolute; inset: 0; opacity: 0; }
.side__frame img { width: 100%; height: 100%; object-fit: cover; }
.side__frame.is-on { opacity: 1; z-index: 1; }
.side__frame.is-out { opacity: 1; z-index: 0; }
.side__frame.is-on img { animation: settle 9s linear forwards; }
@keyframes settle { from { scale: 1.06; } to { scale: 1; } }
.side__frame.is-entering { animation: var(--enter, enter-dissolve) var(--enter-dur, 2.4s) var(--ease) both; }
[data-change="focus"] { --enter: enter-focus; --enter-dur: 2.4s; }
[data-change="develop"] { --enter: enter-develop; --enter-dur: 3.4s; }
[data-change="aperture"] { --enter: enter-aperture; --enter-dur: 1.8s; }
[data-change="unveil"] { --enter: enter-unveil; --enter-dur: 1.9s; }
[data-change="slats"] { --enter: enter-slats; --enter-dur: 1.9s; }
[data-change="unveil"] .side__frame.is-out { animation: out-lift 1.9s var(--ease) both; }
[data-change="slats"] .side__frame.is-entering {
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 var(--slat), transparent var(--slat) 10%);
  mask-image: repeating-linear-gradient(90deg, #000 0 var(--slat), transparent var(--slat) 10%);
}
@property --slat { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes enter-dissolve { from { opacity: 0; } }
/* racks into focus */
@keyframes enter-focus { from { opacity: 0; filter: blur(28px); scale: 1.05; } 45% { opacity: 1; } }
/* comes up in the tray: washed out and colourless, then contrast, then colour */
@keyframes enter-develop { from { opacity: 0; filter: brightness(2.4) contrast(.2) grayscale(1); } 25% { opacity: 1; } 70% { filter: brightness(1.12) contrast(.9) grayscale(.4); } }
/* opens like a lens iris */
@keyframes enter-aperture { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes enter-unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes out-lift { to { translate: 0 -8%; } }
@keyframes enter-slats { from { --slat: 0%; } to { --slat: 10%; } }
.side::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 38%, rgba(8, 8, 9, .86) 100%); }
/* copy sits on the photo, so it stays light in every version */
.side__copy {
  position: absolute; z-index: 1; bottom: clamp(20px, 3.4vw, 48px); width: min(380px, calc(100% - 48px));
  display: grid; gap: 12px; color: #f4f1ea;
}
.side--personal .side__copy { right: clamp(24px, 3vw, 48px); text-align: right; justify-items: end; }
.side--client .side__copy { left: clamp(24px, 3vw, 48px); justify-items: start; }
.side__copy .label { color: rgba(244, 241, 234, .78); }
.side__title { font: var(--display-weight) clamp(32px, 3.4vw, 56px)/1.05 var(--display); letter-spacing: .02em; }
.side__list { display: grid; gap: 2px; margin: 2px 0 8px; width: 100%; }
.side__list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); transition: border-color .6s var(--ease);
}
.side--personal .side__list a { flex-direction: row-reverse; }
.side__list a span:first-child { font-size: 16px; transition: color .5s; }
.side__list a .label { font-size: 11px; }
.side__list a:hover { border-color: color-mix(in srgb, currentColor 55%, transparent); }
.side__list a:hover span:first-child { color: #f6c27a; }
.side__empty { color: rgba(244, 241, 234, .7); }

/* ---------------------------------------------------------------- Burst layout (Style > Layout): a card at the seam that explodes
   into a collage filling its half, over a soft glow. Desktop only; phones keep the panels. */
.side__burst { display: none; }
@media (min-width: 861px) {
  [data-layout="burst"] .select { gap: 0; }
  [data-layout="burst"] .side { background: none; border-radius: 0; }
  [data-layout="burst"] .select.has-open .side.is-open { flex-grow: 1; }
  [data-layout="burst"] .side::before {
    content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease);
  }
  [data-layout="burst"] .side--personal::before {
    background: radial-gradient(62% 50% at 72% 50%, color-mix(in srgb, var(--fg) 15%, transparent), transparent);
  }
  [data-layout="burst"] .side--client::before {
    background: radial-gradient(62% 50% at 28% 50%, color-mix(in srgb, var(--accent) 24%, transparent), transparent);
  }
  [data-layout="burst"] .side.is-open::before { opacity: 1; }
  [data-layout="burst"] .side::after { opacity: 0; transition: opacity 1s var(--ease); }
  [data-layout="burst"] .side::after { background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 9, .9) 100%); }
  [data-layout="burst"] .side.is-open::after { opacity: 1; }

  /* the card, sitting against the seam */
  [data-layout="burst"] .side__media {
    inset: auto; top: 50%; translate: 0 -50%; height: 56%; aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: var(--r); box-shadow: var(--shadow);
    transition: opacity .9s var(--ease) .3s, scale 1.4s var(--ease);
  }
  [data-layout="burst"] .side--personal .side__media { right: 4%; }
  [data-layout="burst"] .side--client .side__media { left: 4%; }
  [data-layout="burst"] .side.is-open .side__media { opacity: 0; scale: .9; transition-delay: 0s; }

  /* the collage it bursts into */
  [data-layout="burst"] .side__burst {
    display: grid; position: absolute; inset: 5% 4%; gap: 10px; pointer-events: none;
    grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  [data-layout="burst"] .side--personal .side__burst { grid-template-areas: "c a a" "d a a" "e f b"; }
  [data-layout="burst"] .side--client .side__burst { grid-template-areas: "a a c" "a a d" "b f e"; }
  .side__burst img:nth-child(1) { grid-area: a; }
  .side__burst img:nth-child(2) { grid-area: b; }
  .side__burst img:nth-child(3) { grid-area: c; }
  .side__burst img:nth-child(4) { grid-area: d; }
  .side__burst img:nth-child(5) { grid-area: e; }
  .side__burst img:nth-child(6) { grid-area: f; }
  [data-layout="burst"] .side__burst img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow);
    opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(.3);
    transition: transform .7s var(--ease), opacity .45s var(--ease);
  }
  [data-layout="burst"] .side.is-open .side__burst img {
    opacity: 1; transform: none;
    transition: transform 1.2s cubic-bezier(.16, 1, .3, 1) var(--d), opacity .5s var(--ease) var(--d);
  }

  /* the copy moves to the outer edge, on the page colour until the collage opens behind it */
  [data-layout="burst"] .side__title { font-size: clamp(28px, 2.8vw, 44px); white-space: nowrap; }
  [data-layout="burst"] .side__copy { width: min(290px, 34%); color: var(--fg); transition: color .8s var(--ease); }
  [data-layout="burst"] .side--personal .side__copy { right: auto; left: clamp(24px, 3vw, 48px); text-align: left; justify-items: start; }
  [data-layout="burst"] .side--personal .side__list a { flex-direction: row; }
  [data-layout="burst"] .side--client .side__copy { left: auto; right: clamp(24px, 3vw, 48px); text-align: right; justify-items: end; }
  [data-layout="burst"] .side--client .side__list a { flex-direction: row-reverse; }
  [data-layout="burst"] .side__copy .label { color: var(--mute); transition: color .8s var(--ease); }
  [data-layout="burst"] .side.is-open .side__copy { color: #f4f1ea; }
  [data-layout="burst"] .side.is-open .side__copy .label { color: rgba(244, 241, 234, .78); }
}

.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; padding: clamp(14px, 2.4vh, 26px) var(--gut); }
.bar__group { display: flex; align-items: baseline; gap: 28px; }
.bar__phone { font: 300 16px/1 var(--font); letter-spacing: .06em; font-variant-numeric: tabular-nums; transition: color .5s; }
.bar__phone:hover { color: var(--accent); }
.style { position: relative; }
.style summary { list-style: none; cursor: pointer; }
.style summary::-webkit-details-marker { display: none; }
.style__panel {
  position: absolute; z-index: 10; right: 0; bottom: calc(100% + 16px); width: max-content; max-width: calc(100vw - 32px);
  display: grid; gap: 10px; padding: 20px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.style__panel .label + .versions { margin-bottom: 8px; }
.style[open] .style__panel { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; translate: 0 8px; } }
.versions { flex-wrap: wrap; display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.versions button { padding: 7px 14px; border-radius: 999px; font: 400 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); transition: color .4s, background .4s; }
.versions button:hover { color: var(--fg); }
.versions button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------------------------------------------------------------- project list */
.menu { padding: 12px var(--gut) clamp(60px, 9vh, 110px); }
.menu__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 44px; margin-bottom: clamp(36px, 5vw, 64px); }
.menu__title { font: var(--display-weight) clamp(44px, 6vw, 96px)/1 var(--display); letter-spacing: .01em; }
.tabs { display: flex; gap: 32px; }
.tabs a { color: var(--mute); transition: color .4s; }
.tabs a:hover, .tabs a[aria-current] { color: var(--fg); }
.tabs a:not([aria-current])::after { opacity: 0; }
.menu__count { margin-left: auto; }
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(18px, 2vw, 32px); }
.maps__empty { color: var(--mute); }
.map { display: grid; gap: 16px; }
.map__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--bg2); box-shadow: var(--shadow); }
.map__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.6s var(--ease), opacity .8s var(--ease); }
.map:hover .map__img img { scale: 1.04; }
.maps:has(.map:hover) .map:not(:hover) .map__img img { opacity: .55; }
.map__cap { display: grid; gap: 4px; }
.map__name { font-size: 20px; letter-spacing: .01em; transition: color .5s; }
.map:hover .map__name { color: var(--accent); }
.map__cap em { font-style: normal; color: var(--accent); margin-left: 12px; }

.foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; padding: 28px var(--gut) 34px; border-top: 1px solid var(--line); }
.foot .bar__phone { color: var(--fg); }
.foot__copy { margin-left: auto; }
body[data-view="home"] .foot, body[data-view="project"] .foot { display: none; }

/* ---------------------------------------------------------------- project stage */
.project { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--stage); }
.pbar { position: relative; z-index: 2; display: flex; align-items: center; gap: 28px; min-height: 76px; padding: 10px var(--gut); background: color-mix(in srgb, var(--stage) 92%, transparent); }
.pbar__title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pbar__title h1 { font: 300 20px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar__title .label { font-size: 11px; }
.looks { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.looks a { padding: 9px 18px; border-radius: 999px; font: 400 11px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); transition: color .4s, background .4s; }
.looks a:hover { color: var(--fg); }
.looks a[aria-current] { background: var(--fg); color: var(--bg); }
.stage { position: relative; flex: 1; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.stage.is-grabbing { cursor: grabbing; }
.stage--ring { cursor: default; background: radial-gradient(70% 60% at 50% 50%, var(--bg2), var(--stage)); }
.hint { position: absolute; left: 50%; bottom: 22px; z-index: 3; translate: -50% 0; pointer-events: none; padding: 9px 16px; border-radius: 999px; background: color-mix(in srgb, var(--stage) 70%, transparent); white-space: nowrap; font-size: 11px; color: var(--mute); }

.sheet { position: absolute; inset: 0; }
.sheet__tile { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 6px; background: var(--bg2); cursor: inherit; will-change: transform; }
.sheet__tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: scale 1.2s var(--ease); }
.sheet__tile:hover img { scale: 1.04; }

.strip { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding: 0 12vw; will-change: transform; }
.strip__item { flex: none; height: min(68vh, 760px); border-radius: 6px; overflow: hidden; background: var(--bg2); box-shadow: var(--shadow); cursor: inherit; will-change: transform, opacity; }
.strip__item img { height: 100%; width: auto; max-width: none; pointer-events: none; }

.ring { position: absolute; inset: 0; }
.ring__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; perspective: 2000px; will-change: transform; }
.ring__ring { position: relative; width: 0; height: 0; will-change: transform; }
.ring__card { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 3px; transform-style: preserve-3d; will-change: transform; cursor: pointer; }
.ring__card img { width: 100%; height: 100%; object-fit: cover; -webkit-backface-visibility: hidden; backface-visibility: hidden; user-select: none; pointer-events: none; }

/* ---------------------------------------------------------------- lightbox */
.lb { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: none; max-height: none; color: var(--fg); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: var(--veil); }
.lb img { max-width: min(90vw, 1800px); max-height: 84vh; border-radius: 4px; box-shadow: var(--shadow); }
.lb__count { position: fixed; top: 26px; left: 28px; }
.lb__close { position: fixed; top: 16px; right: 18px; }
.lb__prev, .lb__next { position: fixed; top: 50%; translate: 0 -50%; }
.lb__prev { left: 18px; }
.lb__next { right: 18px; }

/* ---------------------------------------------------------------- daily case */
.case {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; overflow: hidden;
  grid-template-columns: minmax(0, 960px); justify-content: center;
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.case__panel { width: 100%; padding: clamp(22px, 3vw, 40px); background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .7); }
.case__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.case__head h2 { font: var(--display-weight) clamp(32px, 3.6vw, 48px)/1 var(--display); }
.reel {
  position: relative; height: 160px; margin: 28px 0 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.reel__strip { display: flex; gap: 8px; height: 100%; padding: 6px 0; will-change: transform; }
.reel__item { position: relative; flex: 0 0 150px; overflow: hidden; border-radius: 8px; background: var(--bg3); }
.reel__item img { width: 100%; height: 100%; object-fit: cover; }
.reel__item::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); }
.reel__item.is-win { box-shadow: inset 0 0 0 1px var(--c); }
.reel__marker { position: absolute; left: 50%; top: 0; bottom: 0; z-index: 2; width: 1px; translate: -50% 0; background: var(--fg); }
.odds { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--mute); }
.odds li { display: flex; align-items: center; gap: 8px; }
.odds i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.odds span { color: var(--fg); }
.case__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.case__note { color: var(--mute); font-size: 15px; }

.print {
  position: fixed; left: 50%; top: 50%; z-index: 90; width: min(360px, 82vw);
  padding: 14px 14px 16px; background: var(--paper); color: #1a1a1a; border-radius: 4px;
  transform: translate(-50%, -50%) translate(var(--x, 0px), var(--y, 0px)) rotate(var(--tilt, -1.5deg)) scale(var(--s, 1));
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .06);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.print:not(.is-lifted) { transition: transform .8s var(--ease), box-shadow .5s; }
.print.is-lifted { --s: 1.03; cursor: grabbing; box-shadow: 0 80px 130px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .06); }
.print.is-in { animation: print-in 1.1s var(--ease); }
@keyframes print-in { from { opacity: 0; scale: .9; translate: 0 30px; } }
.print img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; pointer-events: none; }
.print__bar { height: 2px; margin-top: 12px; background: var(--c); }
.print__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font: 400 12px/1.3 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.print__meta span + span { letter-spacing: .02em; text-transform: none; font-size: 14px; color: #55524c; text-align: right; }
.print__actions { display: flex; gap: 8px; margin-top: 14px; }
.print__actions .btn { flex: 1; height: 42px; padding: 0 12px; }
.print__hint { margin-top: 10px; text-align: center; font: 400 10px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #6a665f; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1100px) {
  .bar { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 860px) {
  .select { flex-direction: column; gap: 2px; }
  .side, .side--personal, .side--client { flex: 1 1 0; min-height: 0; border-radius: 0; }
  .side--personal { border-radius: var(--r) var(--r) 0 0; }
  .side--client { border-radius: 0 0 var(--r) var(--r); }
  .side--personal .side__copy { right: auto; left: 20px; text-align: left; justify-items: start; }
  .side__copy { bottom: 18px; gap: 6px; }
  .side__list { display: none; }
  .side__title { font-size: 30px; }
  .bar { gap: 12px 22px; }
  .bar__group { gap: 20px; }
  .versions button { padding: 6px 10px; letter-spacing: .12em; }
  .style__panel { right: auto; left: 50%; translate: -50% 0; width: calc(100vw - 32px); }
  .style[open] .style__panel { animation: none; }
  .menu__count { margin-left: 0; width: 100%; }
  .foot__copy { margin-left: 0; }
  .pbar { flex-wrap: wrap; gap: 10px 18px; }
  .looks { order: 3; width: 100%; }
  .looks a { flex: 1; text-align: center; }
  .strip__item { height: 56vh; }
  .reel { height: 128px; }
  .reel__item { flex-basis: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
