/* An artist's page for their clients. Black on white, or white on black: the colour on it is the work itself.
   The name and the cities are set in the face of the artist's ads, so that the page is where the ad led. Small labels in spaced
   capitals, fine rules and generous room around the work; motion is light and happens once: parts rise as they come into view,
   what is pressed gives way a little, and none of it for whoever asked their device for less motion. */

.book-body {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f5f5f4;
  --ink: #0a0a0b;
  --muted: #616166;
  --line: #e6e6e8;
  --line-strong: #c9c9ce;
  --track: #ededee;
  --accent: #0a0a0b;
  --accent-fill: #0a0a0b;
  --accent-soft: #f0f0f1;
  --on-accent: #ffffff;
  --lift: 0 1px 2px rgb(10 10 11 / 0.04), 0 8px 28px rgb(10 10 11 / 0.07);
  --face: "Jost", "Commissioner", system-ui, sans-serif;
  --wide: 1180px;
  --side: clamp(16px, 5vw, 56px);
  --rad: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .book-body {
    --bg: #0a0a0b; --surface: #131315; --soft: #161618; --ink: #f5f5f6; --muted: #a0a0a8; --line: #26262a; --line-strong: #414147; --track: #1c1c20;
    --accent: #f5f5f6; --accent-fill: #f5f5f6; --accent-soft: #1d1d21; --on-accent: #0a0a0b; --lift: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 10px 30px rgb(0 0 0 / 0.4);
  }
}
:root[data-theme="dark"] .book-body {
  --bg: #0a0a0b; --surface: #131315; --soft: #161618; --ink: #f5f5f6; --muted: #a0a0a8; --line: #26262a; --line-strong: #414147; --track: #1c1c20;
  --accent: #f5f5f6; --accent-fill: #f5f5f6; --accent-soft: #1d1d21; --on-accent: #0a0a0b; --lift: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 10px 30px rgb(0 0 0 / 0.4);
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
.book-body .link, .book-body a { color: inherit; }
.book-body .link { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.book-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-body ::selection { background: var(--ink); color: var(--bg); }

/* ---------- the work, and whose it is ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: min(86svh, 860px); overflow: hidden; background: #0a0a0b; color: #ffffff; isolation: isolate; }
.hero-pics { position: absolute; inset: 0; z-index: -2; }
.hero-pics img, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-pics img.on { opacity: 1; }
/* the dark at its foot, where the name stands, and a fine grain over all of it, as on a print */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0.5) 34%, rgb(0 0 0 / 0.08) 62%, rgb(0 0 0 / 0.28)); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-in { position: relative; width: min(100%, var(--wide)); margin: 0 auto; padding: 0 var(--side) clamp(26px, 6vw, 56px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--face); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.88; }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero h1 { margin: 0; font-family: var(--face); font-weight: 600; font-size: min(156px, max(54px, 15.5vw), calc(min(88vw, 1060px) / (0.69 * var(--n, 8)))); line-height: 0.86; letter-spacing: -0.035em; text-transform: uppercase; overflow-wrap: break-word; text-wrap: balance; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 18px 0 0; font-size: 16px; opacity: 0.92; }
.hero-sub > span:first-child { font-family: var(--face); letter-spacing: 0.02em; }
.handle { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hero-go { display: none; align-items: center; gap: 12px; margin-top: 26px; min-height: 52px; padding: 0 22px 0 24px; border: 1px solid rgb(255 255 255 / 0.55); border-radius: 999px; background: rgb(255 255 255 / 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: inherit; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.hero > .dots { position: absolute; top: max(18px, env(safe-area-inset-top)); right: var(--side); z-index: 1; }
/* the one button that stops the photos of the projects turning, and starts them again */
.fade-stop { position: absolute; top: max(10px, env(safe-area-inset-top)); left: calc(var(--side) - 10px); z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #ffffff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fade-stop:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.fade-stop .ic-go, .fade-stop[aria-pressed="true"] .ic-hold { display: none; }
.fade-stop[aria-pressed="true"] .ic-go { display: inline; }
.hero.bare { min-height: 0; background: var(--bg); color: var(--ink); }
.hero.bare::before, .hero.bare::after { display: none; }
.hero.bare .hero-in { padding-top: clamp(64px, 16vw, 132px); padding-bottom: 8px; }
.hero.bare .hero-go { border-color: var(--line-strong); background: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-pics:not(.turned) img.on:first-child { animation: settle 1.6s var(--ease) both; }
  .hero.still .hero-pics img { animation: none; }
  .hero:not(.still) .hero-in > * { animation: up 0.9s var(--ease) both; }
  .hero:not(.still) .hero-in > :nth-child(2) { animation-delay: 0.08s; }
  .hero:not(.still) .hero-in > :nth-child(3) { animation-delay: 0.18s; }
  .hero:not(.still) .hero-in > :nth-child(4) { animation-delay: 0.26s; }
  .live::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid currentColor; border-radius: 50%; animation: ring 2.4s ease-out infinite; }
  @keyframes settle { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes ring { from { transform: scale(0.6); opacity: 0.9; } 70%, to { transform: scale(1.9); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pics img { transition: none; }
}

/* ---------- the page ---------- */
.book { display: grid; gap: clamp(52px, 10vw, 96px); width: min(100%, var(--wide)); margin: 0 auto; padding: clamp(34px, 7vw, 72px) var(--side) calc(116px + env(safe-area-inset-bottom)); }
.book > * { min-width: 0; }
.col-main, .col-side { display: grid; gap: clamp(48px, 9vw, 80px); align-content: start; min-width: 0; }
.welcome { max-width: 36ch; margin: 0; font-family: var(--face); font-size: clamp(21px, 2.8vw, 28px); font-weight: 400; line-height: 1.38; letter-spacing: -0.005em; text-wrap: pretty; }
.book-body h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; font-family: var(--face); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.book-body h2 .num { letter-spacing: 0.04em; opacity: 0.7; }

/* parts that rise into place once, as they come into view (the class is given on the first drawing alone) */
@media (prefers-reduced-motion: no-preference) {
  .rise { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
  .rise:not(.in) { opacity: 0; transform: translateY(22px); }
}

/* the cities, as a poster lists them */
.tour ol { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.tour li { border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.stop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; width: 100%; padding: 22px 0 22px; border: 0; background: none; color: inherit; font: inherit; text-align: left; scroll-margin-top: 8px; -webkit-tap-highlight-color: transparent; }
button.stop { cursor: pointer; padding-right: 40px; }
.stop-city { grid-column: 1 / -1; font-family: var(--face); font-weight: 600; font-size: clamp(40px, 11vw, 78px); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.stop-when { margin-top: 10px; font-family: var(--face); font-size: clamp(17px, 4.4vw, 24px); font-weight: 500; white-space: nowrap; }
.stop-free { align-self: center; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; text-align: right; white-space: nowrap; }
.stop-where { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }
.stop-free.none { padding: 0; background: none; font-weight: 400; color: var(--muted); }
.stop-chev { position: absolute; top: 26px; right: 4px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); }
.stop-chev svg { width: 6px; height: 11px; }
.tour li.on .stop-chev { transform: rotate(90deg); background: var(--ink); border-color: var(--ink); color: var(--bg); }
.marks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.marks i { width: 12px; height: 12px; border: 1px solid var(--line-strong); border-radius: 3px; }
.marks i.on { border-color: var(--ink); background: var(--ink); }
/* a city of several guest spots: each one's days, said apart, and a gap between their marks */
.stop-when.many { white-space: normal; }
.stop-when.many span { white-space: nowrap; }
.stop-ask { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.city-pic .stop-ask { color: rgb(255 255 255 / 0.84); }
.marks i.gap, .city-pic .marks i.gap { width: 8px; border: 0; background: none; }
.tour li.full .stop-city, .tour li.full .stop-when { color: var(--muted); }
@media (hover: hover) {
  button.stop:hover .stop-chev { border-color: var(--ink); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  button.stop .stop-city { transition: transform 0.35s var(--ease); }
  button.stop:hover .stop-city { transform: translateX(10px); }
}
@media (prefers-reduced-motion: no-preference) {
  .stop-chev { transition: transform 0.3s var(--ease), background-color 0.2s ease, color 0.2s ease; }
  button.stop:active .stop-city { transform: translateX(4px); transition-duration: 0.1s; }
}
button.stop:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* a city with a photo of itself behind its name: the words light on a dark veil, the photo only where it comes */
.tour li.city-pic { border-bottom: 0; padding: 6px 0; }
.stop-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--rad); background: #141416; color: #ffffff; }
.stop-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.stop-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / 0.28) 0%, rgb(0 0 0 / 0.42) 42%, rgb(0 0 0 / 0.82) 100%); }
.city-pic .stop { min-height: clamp(190px, 52vw, 260px); align-content: end; padding: 22px 18px 34px; text-shadow: 0 1px 14px rgb(0 0 0 / 0.45); }
.city-pic button.stop { padding-right: 58px; }
.city-pic .stop-where { color: rgb(255 255 255 / 0.84); }
.city-pic .stop-free { background: #ffffff; color: #0a0a0b; text-shadow: none; }
.city-pic .stop-free.none { background: none; color: rgb(255 255 255 / 0.84); }
.city-pic .stop-chev { top: 18px; right: 16px; border-color: rgb(255 255 255 / 0.6); background: rgb(0 0 0 / 0.25); color: #ffffff; }
.tour li.city-pic.on .stop-chev { background: #ffffff; border-color: #ffffff; color: #0a0a0b; }
.city-pic .marks i { border-color: rgb(255 255 255 / 0.55); }
.city-pic .marks i.on { border-color: #ffffff; background: #ffffff; }
.tour li.city-pic.full .stop-city, .tour li.city-pic.full .stop-when { color: rgb(255 255 255 / 0.72); }
.city-pic button.stop:focus-visible { outline-color: #ffffff; outline-offset: -4px; border-radius: var(--rad); }
.tour li.city-pic .pick-day { margin-top: 12px; }
/* no free day anywhere */
.none-free { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; margin: 22px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--rad); background: var(--soft); }
.none-free p { margin: 0; line-height: 1.5; color: var(--muted); }
.none-free b { display: block; color: var(--ink); font-weight: 600; }
.none-mark { position: relative; width: 40px; height: 40px; border: 1.5px solid var(--line-strong); border-radius: 10px; }
.none-mark::before { content: ""; position: absolute; left: 7px; right: 7px; top: 11px; height: 1.5px; background: var(--line-strong); }
.none-mark::after { content: ""; position: absolute; left: 12px; top: 19px; width: 14px; height: 10px; border: solid var(--line-strong); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) scale(0.7); }

/* the days */
.pick-day { margin: 0 0 22px; padding: clamp(16px, 4vw, 22px); border: 1px solid var(--line); border-radius: var(--rad); background: var(--surface); box-shadow: var(--lift); scroll-margin-top: 12px; max-width: 540px; }
.pick-day h3 { margin: 0; font-family: var(--face); font-size: 19px; font-weight: 600; letter-spacing: 0.01em; }
.book-body .cal-step { border-color: var(--line-strong); border-radius: 50%; }
.book-cal { margin-top: 14px; }
.book-body .book-cal .cal { gap: 5px; }
.book-body .book-cal .cal-head { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.book-body .book-cal .day { height: 46px; border-radius: 12px; font-family: var(--face); font-size: 17px; }
.book-body .book-cal .day.free { border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink); font-weight: 600; cursor: pointer; }
.book-body .book-cal .day.booked { border-color: var(--ink); background: var(--ink); color: var(--on-accent); font-weight: 600; }
.book-body .book-cal .day.off { border-color: transparent; background: none; color: var(--line-strong); cursor: default; }
@media (hover: hover) { .book-body .book-cal .day.free:hover { background: var(--soft); } }
.pick-note { margin: 16px 0 0; color: var(--muted); }
.pick-note b { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .book-body .book-cal .day.free { transition: transform 0.15s ease, background-color 0.2s ease; }
  .book-body .book-cal .day.free:active { transform: scale(0.92); }
  .pick-day.enter { animation: open-in 0.45s var(--ease) both; }
  .book-cal.turn-n .cal { animation: from-n 0.35s var(--ease) both; }
  .book-cal.turn-b .cal { animation: from-b 0.35s var(--ease) both; }
  .book-cal.pop .day.booked { animation: pop 0.35s var(--ease) both; }
  .ask.enter { animation: up 0.6s var(--ease) both; }
  @keyframes open-in { from { opacity: 0; transform: translateY(-8px) scale(0.985); } to { opacity: 1; transform: none; } }
  @keyframes from-n { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
  @keyframes from-b { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
  @keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.08); } to { transform: none; } }
}

/* what the client asks for */
.ask { display: grid; gap: 30px; scroll-margin-top: 28px; }
.ask-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.ask-head p, .ask-head h2 { margin: 0; font-family: var(--face); font-weight: 600; font-size: clamp(30px, 7.4vw, 46px); line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; color: var(--ink); }
.ask section { display: grid; gap: 18px; padding: clamp(18px, 4vw, 26px); border: 1px solid var(--line); border-radius: var(--rad); background: var(--soft); }
.ask h3 { margin: 0; font-family: var(--face); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ask .field > span, .ask legend { font-weight: 600; }
.ask fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ask legend { padding: 0; margin-bottom: 8px; }
.book-body input[type="text"], .book-body textarea { min-height: 50px; border-radius: 12px; border-color: var(--line-strong); background: var(--surface); font-size: 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.book-body input[type="text"]:focus-visible, .book-body textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.book-body .check { align-items: flex-start; gap: 12px; line-height: 1.45; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 150px), 1fr)); gap: 8px; }
.choice:has([name="contact_kind"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice:has([name="contact_kind"]) span { padding-inline: 6px; text-align: center; }
.choice label { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; gap: 1px; min-height: 50px; height: 100%; box-sizing: border-box; align-content: center; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.choice b { font-weight: 600; }
.choice small { font-size: 13px; color: var(--muted); }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-accent); }
.choice input:checked + span small { color: inherit; opacity: 0.75; }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
/* where on the body: six parts in rows of three, and under them the areas of the one picked */
.choice:has([name="part"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice:has([name="part"]) span { padding-inline: 6px; text-align: center; }
.areas { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.areas:empty { display: none; }
.ask .area-pick legend { font-size: 14px; font-weight: 500; color: var(--muted); }
.area-pick .choice { grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); }
.area-pick .choice span { min-height: 46px; padding: 8px 14px; font-size: 15px; }
/* "Not sure yet", the last of them, drawn lighter than the areas */
.area-pick .choice label:last-child span { border-style: dashed; }
.area-pick .choice label:last-child input:checked + span { border-style: solid; }
@media (prefers-reduced-motion: no-preference) {
  .area-pick.enter { animation: open-in 0.4s var(--ease) both; }
}
@media (prefers-reduced-motion: no-preference) {
  .choice span { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
  .choice label:active span { transform: scale(0.97); }
}
.pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.pic { position: relative; display: grid; place-content: center; gap: 2px; aspect-ratio: 1; overflow: hidden; padding: 0; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--muted); font: inherit; text-align: center; cursor: pointer; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic i { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #ffffff; font-style: normal; }
.pic.add span { font-size: 28px; font-weight: 300; line-height: 1; }
.pic.add:focus-within, .pic:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
#pics, #spot { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.field:has(#pics:focus-visible) .pic.add, .field:has(#spot:focus-visible) .pic.add { outline: 3px solid var(--ink); outline-offset: 2px; }
/* the photo of the spot: one square, with a word on why it helps */
.spot-note { margin-top: -2px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* the one button that matters: an ink pill with an arrow that leans forward when pressed */
.go { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-accent) !important; font: inherit; font-size: 18px; font-weight: 600; letter-spacing: 0.005em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.go svg { flex: none; }
.go:disabled { opacity: 0.6; cursor: default; }
.go:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.go.busy > * { opacity: 0; }
.go.busy::after { content: ""; position: absolute; top: calc(50% - 11px); left: calc(50% - 11px); width: 22px; height: 22px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .go { transition: transform 0.15s ease, opacity 0.2s ease; }
  .go svg { transition: transform 0.25s var(--ease); }
  .go:active:not(:disabled) { transform: scale(0.98); }
  .go:active:not(:disabled) svg { transform: translateX(4px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .go:hover:not(:disabled) svg { transform: translateX(4px); } }
.ask-note { margin: -14px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.nextbar { position: fixed; inset: auto 0 0; z-index: 10; padding: 14px var(--side) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 58%, transparent); transition: transform 0.3s var(--ease); }
.nextbar.away { transform: translateY(110%); }

/* the rest of the work: a photo alone, or a project whose photos follow each other */
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.wall .tile { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--track); cursor: zoom-in; aspect-ratio: 4 / 5; -webkit-tap-highlight-color: transparent; }
.wall .tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
.wall img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-pics { position: absolute; inset: 0; }
.tile-pics img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.tile-pics img.on { opacity: 1; }
.tile.set::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent); pointer-events: none; }
.tile-name { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; overflow: hidden; color: #ffffff; font-family: var(--face); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.dots { display: flex; gap: 4px; padding: 6px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.tile > .dots { position: absolute; top: 10px; right: 10px; z-index: 1; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: rgb(255 255 255 / 0.45); }
.dots i.on { background: #ffffff; }
.wall .tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .wall .tile { transition: transform 0.2s ease; }
  .wall .tile:active { transform: scale(0.98); }
  .dots i { transition: background-color 0.6s ease, width 0.4s var(--ease); }
  .dots i.on { width: 12px; border-radius: 3px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wall .tile > img, .tile-pics { transition: transform 0.8s var(--ease); }
  .wall .tile:hover > img, .wall .tile:hover .tile-pics { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .tile-pics img { transition: none; } }

/* a picture on the whole screen */
#look { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgb(6 6 7 / 0.96); color: #ffffff; touch-action: pan-y pinch-zoom; }
#look::backdrop { background: rgb(0 0 0 / 0.6); }
.look-pic { position: absolute; inset: 0; margin: 0; }
#look img { position: absolute; inset: max(56px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom)); width: 100%; height: calc(100% - max(56px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom))); object-fit: contain; -webkit-user-drag: none; user-select: none; }
.look-top { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 18px; right: 80px; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 52px; font-size: 14px; pointer-events: none; }
.look-count { padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / 0.12); font-weight: 600; letter-spacing: 0.04em; }
.look-name { overflow: hidden; font-family: var(--face); font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
#look button { position: absolute; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 50%; background: rgb(0 0 0 / 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #ffffff; font-size: 26px; cursor: pointer; }
#look button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.look-x { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.look-b { left: 10px; top: calc(50% - 26px); }
.look-n { right: 10px; top: calc(50% - 26px); }
@media (prefers-reduced-motion: no-preference) {
  #look[open] { animation: fade 0.25s ease both; }
  #look[open] .look-pic:not(.from-n):not(.from-b) img { animation: zoom-in 0.35s var(--ease) both; }
  .look-pic { transition: transform 0.25s var(--ease); }
  .look-pic.dragging { transition: none; }
  .look-pic.from-n { animation: from-n 0.3s var(--ease) both; }
  .look-pic.from-b { animation: from-b 0.3s var(--ease) both; }
  #look button { transition: transform 0.15s ease; }
  #look button:active { transform: scale(0.92); }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
}

/* how it goes */
.how ol { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: how; border-top: 1px solid var(--line); }
.how li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 0; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: how; }
.how li::before { content: "0" counter(how); grid-row: span 2; font-family: var(--face); font-size: 15px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.5; color: var(--muted); }
.how b { font-family: var(--face); font-size: 19px; font-weight: 600; }
.how span { color: var(--muted); line-height: 1.5; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
/* last of all, small: for a tattoo artist who likes the page */
.joinus { margin: -36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.joinus a { text-decoration: none; }
.joinus a span { display: inline-block; margin-left: 2px; }
@media (hover: hover) { .joinus a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .joinus a span { transition: transform 0.25s var(--ease); } .joinus a:hover span { transform: translateX(3px); } }

@media (min-width: 960px) {
  .hero { min-height: min(78svh, 800px); }
  .hero-go { display: inline-flex; }
  @media (hover: hover) { .hero-go:hover { background: rgb(255 255 255 / 0.18); } .hero.bare .hero-go:hover { background: var(--soft); } }
  .book { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 110px); padding-bottom: 72px; }
  .foot, .joinus { grid-column: 1 / -1; }
  .nextbar { display: none; }
}

/* ---------- a client's own request ---------- */
.slip-page { display: grid; gap: 26px; max-width: 620px; grid-template-columns: minmax(0, 1fr); padding-top: clamp(44px, 11vw, 96px); }
.slip-head h1 { margin: 0; font-family: var(--face); font-weight: 600; font-size: clamp(48px, 13vw, 86px); line-height: 0.9; letter-spacing: -0.035em; text-transform: uppercase; }
.slip-head p { margin: 16px 0 0; font-size: 18px; line-height: 1.5; }
.done-mark { display: block; width: 64px; height: 64px; margin-bottom: 22px; color: var(--ink); }
.done-mark svg { width: 100%; height: 100%; }
.gone-mark { display: block; width: 56px; height: 56px; margin-bottom: 22px; border: 1.5px dashed var(--line-strong); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .done-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s var(--ease) 0.1s forwards; }
  .done-mark path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.4s var(--ease) 0.65s forwards; }
  .slip-head > * { animation: up 0.7s var(--ease) both; }
  .slip-head > :nth-child(2) { animation-delay: 0.06s; }
  .slip-head > :nth-child(3) { animation-delay: 0.12s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.keep { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--rad); background: var(--soft); line-height: 1.5; }
.keep-copy { display: inline-flex; align-items: center; min-height: 40px; margin-top: 10px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.when { padding: 20px 0 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.when p { margin: 0; }
.when-city, .when-day { font-family: var(--face); font-weight: 600; font-size: clamp(38px, 10.5vw, 62px); line-height: 0.98; letter-spacing: -0.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.when-day { color: var(--muted); }
.when .when-more { margin-top: 12px; color: var(--muted); }
.when.over { opacity: 0.5; }
.way { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.way li { padding-top: 10px; border-top: 3px solid var(--line); }
.way .done, .way .here { border-color: var(--ink); color: var(--ink); }
.way .here { font-weight: 700; }
.slip-until { margin: 0; font-weight: 600; }
.said { margin: 0; padding: 0 0 0 16px; border-left: 3px solid var(--ink); }
.said p { margin: 0; font-size: 18px; line-height: 1.5; }
.said footer { margin-top: 6px; font-size: 14px; color: var(--muted); }
.said h2 { margin: 0 0 6px; }
.slip-acts { display: grid; gap: 14px; justify-items: start; }
.slip-acts .go { width: auto; min-width: min(100%, 280px); }
.plain-act { padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* a piece in several sessions: the day of each */
.sittings { margin-top: 16px; }
.sit-head { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.sittings ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sittings li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.sittings li > span { min-width: 1.2em; color: var(--muted); }
.sittings li small { margin-left: auto; color: var(--muted); }

/* the waiting list of a city with no free day */
.wait-go { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 22px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wait-go:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.city-pic .wait-go { margin-top: 12px; }
.wait-form { margin: 0 0 26px; }
.wait-note { margin: 0; color: var(--muted); line-height: 1.5; }
.wait-done { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); line-height: 1.5; }
.city-pic .wait-done { margin-top: 12px; }
.email-field[hidden] { display: none; }
@media (hover: hover) {
  .wait-go:hover { background: var(--ink); color: var(--bg); }
}
@media (prefers-reduced-motion: no-preference) {
  .wait-form.enter { animation: wait-in 0.35s var(--ease) both; }
  @keyframes wait-in { from { opacity: 0; transform: translateY(8px); } }
}
