*, *::before, *::after { box-sizing: border-box; }

:root { --font: 'Inter', system-ui, -apple-system, sans-serif; }

.theme-light {
  --bg: #eceef1;
  --text: #111;
  --muted: #555;
  --card-bg: #fff;
  --card-border: transparent;
  --card-hover: #f6f6f7;
  --round-bg: #fff;
  --radius: 14px;
  --sheet-bg: #fff;
}
.theme-dark {
  --bg: #000;
  --text: #fff;
  --muted: #9a9a9a;
  --card-bg: transparent;
  --card-border: #3a3a3a;
  --card-hover: #111;
  --round-bg: #5a5a5a;
  --radius: 24px;
  --sheet-bg: #1b1b1b;
}

html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.page {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

/* top bar */
.topbar { display: flex; justify-content: space-between; margin-bottom: 40px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--round-bg); border: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: transform .15s;
}
.round-btn:hover { transform: scale(1.05); }

/* profile header */
.profile { text-align: center; margin-bottom: 32px; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto 16px;
}
.avatar--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #43e97b, #38b2f8);
  color: #fff; font-weight: 800; font-size: 30px;
}
.theme-dark .avatar--placeholder { background: linear-gradient(135deg, #3a0a0a, #c4141b); }
.handle { font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.theme-dark .handle { font-weight: 600; font-size: 24px; letter-spacing: .02em; }
.bio { font-size: 15px; font-weight: 500; margin: 0; color: var(--text); line-height: 1.4; }
.socials { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.social { display: grid; place-items: center; transition: transform .15s; }
.social:hover { transform: scale(1.1); }

/* links */
.links { display: flex; flex-direction: column; gap: 14px; }
.section-header {
  text-align: center; font-size: 16px; font-weight: 700;
  margin: 18px 0 2px;
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform .15s, background .15s;
}
.card:hover { transform: scale(1.015); background: var(--card-hover); }
.card > a {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 8px 52px; text-align: center;
}
.card--thumb > a { padding-left: 64px; }
.card__text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.card__title { font-size: 15px; font-weight: 600; line-height: 1.25; }
.card__sub {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--muted);
}
.src-icon { display: inline-flex; color: var(--muted); }
.src-icon svg { width: 18px; height: 9px; }

.thumb {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover;
}
.thumb--emoji { display: grid; place-items: center; font-size: 24px; }

.kebab {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent;
  display: grid; place-items: center; opacity: .55;
}
.kebab:hover { opacity: 1; background: rgba(127,127,127,.15); }

/* featured (big image) card */
.card--featured > a {
  flex-direction: column; padding: 14px 14px 18px; gap: 18px;
}
.featured__media {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--card-border);
}
.featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured__placeholder {
  width: 100%; height: 100%;
  background: radial-gradient(circle at 70% 40%, #8b0d12 0%, #2a0a0b 45%, #0b0b0b 80%);
}
.card--featured .kebab { top: auto; bottom: 12px; transform: none; }

/* footer */
.footer { text-align: center; margin-top: 90px; }
.join-btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: #fff; color: #111; font-weight: 600; font-size: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: transform .15s;
}
.join-btn:hover { transform: scale(1.04); }
.footer-links { margin-top: 32px; font-size: 13px; line-height: 1.9; color: var(--text); }
.footer-links a:hover { text-decoration: underline; }

/* bottom sheet */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10;
}
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 580px; z-index: 11;
  background: var(--sheet-bg); color: var(--text);
  border-radius: 22px 22px 0 0; padding: 10px 16px 24px;
  animation: up .2s ease-out;
}
@keyframes up { from { transform: translate(-50%, 100%); } }
.sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: #bbb; margin: 0 auto 14px; }
.sheet__title { font-weight: 700; margin: 0 0 4px; text-align: center; }
.sheet__url { margin: 0 0 16px; text-align: center; font-size: 13px; color: var(--muted); word-break: break-all; }
.sheet__btn {
  display: block; width: 100%; text-align: center;
  padding: 14px; margin-top: 8px; border-radius: 12px;
  border: 1px solid rgba(127,127,127,.25); background: transparent; font-weight: 600;
}
.sheet__btn:hover { background: rgba(127,127,127,.1); }
.sheet__btn--cancel { border: 0; color: var(--muted); }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #111; color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; z-index: 20;
}
.theme-dark .toast { background: #fff; color: #111; }

/* index page */
.index-list .avatar { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; margin: 0; font-size: 16px; }
.index-list .card > a { padding-left: 64px; }
code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* ================================================================
   OPERATOR theme — graph paper sheet, huge HELLO, 360° turntable
   ================================================================ */
.theme-operator {
  --font: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #1f1f1e;
  --text: #ecece8;      /* type sitting on the dark background */
  --ink: #ecece8;       /* kit graphics on the background */
  --card-ink: #121212;  /* type inside the white cards */
  --muted: #9a9a96;
  --red: #e0263a;
  --card-bg: #fbfbf9;
  --card-border: #000;
  --card-hover: #fff;
  --round-bg: #fbfbf9;
  --radius: 14px;
  --sheet-bg: #fbfbf9;
  --grid: 30px;
  font-stretch: 105%;
  background-color: var(--bg);
  /* crumpled-paper shading + darker edges; the grid itself lives on the fixed .decor layer */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.07), transparent 55%),
    radial-gradient(ellipse at 85% 60%, rgba(255,255,255,.04), transparent 50%),
    radial-gradient(ellipse 130% 100% at 50% 40%, transparent 40%, rgba(0,0,0,.55) 100%);
  overflow-x: hidden;
}
/* paper grain, painted above the grid and glow */
.theme-operator::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.45 0 0 0 0 0.45 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.theme-operator .page { position: relative; z-index: 1; padding-bottom: 0; }
.theme-operator .topbar { margin-bottom: 18px; }
.theme-operator .round-btn { color: var(--card-ink); border: 1.5px solid #000; box-shadow: 3px 3px 0 #000; }

/* hero */
.hero { margin-bottom: 30px; }
.hero__title {
  font-size: min(20vw, 140px); line-height: .82;
  font-weight: 900; font-stretch: 125%;
  letter-spacing: -.035em; margin: 0 0 18px -.04em;
  color: var(--ink); text-transform: uppercase;
}
.hero__grid { display: grid; grid-template-columns: 44% 1fr; gap: 18px; align-items: start; }
.hero__copy { font-size: 13px; line-height: 1.45; font-stretch: 110%; }
.hero__copy p { margin: 0 0 10px; }
.hero__intro { font-weight: 800; font-size: 14px; }
.hero__tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hero__tags li {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid var(--ink); padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.35);
}
.hero .socials { justify-content: flex-start; gap: 12px; margin-top: 14px; }
.hero .social svg { width: 24px; height: 24px; }

/* 360 turntable in a "selected layer" box */
.tt { position: relative; margin: 0; aspect-ratio: 9 / 20; max-height: 460px; }
.tt::before { content: ''; position: absolute; inset: 0; border: 1.5px solid var(--red); pointer-events: none; z-index: 2; }
.tt__stage { position: absolute; inset: 6% 4% 3%; overflow: hidden; touch-action: pan-y; cursor: grab; }
.tt__stage:active { cursor: grabbing; }
.tt__media { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.tt__h {
  position: absolute; width: 11px; height: 11px; background: #fff; border: 1.5px solid var(--red);
  z-index: 3; transform: translate(-50%, -50%);
}
.tt__h--tl { left: 0; top: 0 } .tt__h--tc { left: 50%; top: 0 } .tt__h--tr { left: 100%; top: 0 }
.tt__h--ml { left: 0; top: 50% } .tt__h--mr { left: 100%; top: 50% }
.tt__h--bl { left: 0; top: 100% } .tt__h--bc { left: 50%; top: 100% } .tt__h--br { left: 100%; top: 100% }
.tt__label, .tt__readout {
  position: absolute; font-family: var(--mono); font-size: 9.5px; letter-spacing: .03em; z-index: 3;
  background: var(--red); color: #fff; padding: 2px 5px; white-space: nowrap;
}
.tt__label { left: -1px; top: -22px; }
.tt__readout { right: -1px; bottom: -22px; background: #121212; }

.tt__placeholder { position: absolute; inset: 0 0 18px; display: grid; place-items: center; }
.tt__figure { height: 100%; width: auto; transform-origin: 50% 50%; animation: tt-spin 4s linear infinite; }
.tt__ph-note {
  position: absolute; bottom: -16px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 8.5px; color: var(--muted); text-transform: uppercase;
}
/* fake 3D: squash to a side profile and back, like a turntable */
@keyframes tt-spin {
  0%    { transform: scaleX(1)   ; filter: brightness(1); }
  12.5% { transform: scaleX(.72) ; filter: brightness(.92); }
  25%   { transform: scaleX(.42) ; filter: brightness(.8); }
  37.5% { transform: scaleX(-.72); filter: brightness(.7); }
  50%   { transform: scaleX(-1)  ; filter: brightness(.62); }
  62.5% { transform: scaleX(-.72); filter: brightness(.7); }
  75%   { transform: scaleX(-.42); filter: brightness(.8); }
  87.5% { transform: scaleX(.72) ; filter: brightness(.92); }
  100%  { transform: scaleX(1)   ; filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) { .tt__figure { animation: none; } }

/* links: paper cards with a hard offset shadow */
.theme-operator .links { gap: 12px; }
.theme-operator .card {
  border-width: 1.5px; color: var(--card-ink); box-shadow: 4px 4px 0 #000;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.theme-operator .card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.theme-operator .card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.theme-operator .card__title { font-weight: 700; font-stretch: 110%; font-size: 15px; }
.theme-operator .card__sub { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.theme-operator .thumb {
  width: 54px; height: 54px; left: 6px; border-radius: 0; padding: 0; object-fit: contain;
  background: transparent; filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
  transition: transform .2s;
}
.theme-operator .card:hover .thumb { transform: translateY(-50%) rotate(-8deg) scale(1.08); }
.theme-operator .card--thumb > a { padding-left: 68px; }
.theme-operator .section-header {
  font-weight: 900; font-stretch: 125%; font-size: 30px; letter-spacing: -.02em;
  text-align: left; margin: 26px 0 0; line-height: 1;
}
.theme-operator .section-header::after {
  content: ''; display: block; height: 3px; width: 46px; background: var(--red); margin-top: 8px;
}
.theme-operator .links > .section-header:first-child { margin-top: 0; }

/* torn paper → black footer */
.theme-operator .footer {
  position: relative; margin: 70px -16px 0; padding: 30px 16px 40px;
  background: #0b0b0b; color: #eee;
}
.torn { position: absolute; left: 0; right: 0; top: -38px; width: 100%; height: 40px; display: block; }
.theme-operator .join-btn { border: 1.5px solid #fff; }
.theme-operator .footer-links { color: #bbb; }
.theme-operator .toast { background: var(--red); }

/* wider screens: figure gets more room, copy beside it like the desktop reference */
@media (min-width: 620px) {
  .theme-operator .page { max-width: 680px; }
  .hero__grid { grid-template-columns: 38% 1fr; gap: 32px; }
  .hero__copy { font-size: 15px; padding-top: 6px; }
  .hero__intro { font-size: 16px; }
  .theme-operator .links { max-width: 580px; margin: 0 auto; }
}

/* ---------- OPERATOR: poster-kit pieces ---------- */
.decor {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; color: var(--ink);
  background-image:
    linear-gradient(rgba(255,120,130,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,120,130,.13) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
}
/* red glow bleeding off the grid lines, stronger toward the screen edges, slowly breathing */
.decor::before {
  content: ''; position: absolute; inset: -12px;
  background-image:
    linear-gradient(rgba(224,38,58,.75) 2px, transparent 2px),
    linear-gradient(90deg, rgba(224,38,58,.75) 2px, transparent 2px);
  background-size: var(--grid) var(--grid);
  background-position: 11.5px 11.5px;
  filter: blur(3px);
  -webkit-mask: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0,0,0,.4) 20%, #000 95%);
          mask: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0,0,0,.4) 20%, #000 95%);
  animation: grid-glow 4.5s ease-in-out infinite alternate;
}
@keyframes grid-glow { from { opacity: .35; } to { opacity: .8; } }
.dc { position: absolute; display: block; }
.dc-reg { width: 30px; height: 30px; opacity: .5; }
.dc-reg--tl { top: 64px; left: 4px; }
.dc-reg--br { bottom: 12px; right: 8px; }
.dc-ruler { left: 2px; top: 34vh; height: 36vh; width: auto; opacity: .3; }
.dc-barcode { right: 5px; top: 13vh; height: 110px; width: auto; opacity: .3; }
.dc-cross { width: 16px; height: 16px; opacity: .45; transform: translate(-50%, -50%); }
.dc-cross--a { left: calc(var(--grid) * 11); top: calc(var(--grid) * 9); }
.dc-cross--b { left: calc(var(--grid) * 1); top: calc(var(--grid) * 21); }
.dc-cross--c { left: calc(var(--grid) * 10); top: calc(var(--grid) * 25); }
.dc-dots { right: -10px; top: 52vh; width: 92px; height: auto; opacity: .22; }
.dc-halftone { right: -30px; bottom: 6vh; width: 230px; height: auto; opacity: .3; transform: scaleX(-1); }
.dc-trace { height: auto; opacity: .32; }
.dc-trace--a { right: -12px; top: 64vh; width: 120px; transform: scaleX(-1); }
.dc-trace--b { left: -12px; top: 14vh; width: 96px; }
.dc-chrome { filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); animation: twinkle 6s ease-in-out infinite; }
.dc-chrome--a { width: 54px; right: 2px; top: 46vh; }
.dc-chrome--b { width: 54px; left: -14px; top: 76vh; animation-delay: -2s; }
.dc-chrome--c { width: 62px; right: 6px; bottom: 5vh; animation-delay: -4s; }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(16deg) scale(.86); } }

/* hero extras */
.hero__title { position: relative; display: inline-block; }
.hero__sticker {
  position: absolute; width: min(15vw, 84px); right: -.22em; top: -.16em;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.35)); animation: twinkle 5s ease-in-out infinite;
}
.hero__copy {
  position: relative; padding: 10px 10px 12px;
  --c: var(--ink);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 14px,
    linear-gradient(var(--c), var(--c)) top right / 14px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 14px,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 14px,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 14px,
    /* liquid-glass sheen: bright top-left, clear middle, faint return light bottom-right */
    linear-gradient(135deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 28%, rgba(255,255,255,.02) 55%, rgba(255,255,255,.1) 100%) 0 0 / 100% 100%;
  background-repeat: no-repeat;
  border-radius: 4px;
  /* light blur keeps the grid, glow and halftone visible but soft */
  -webkit-backdrop-filter: blur(5px) saturate(1.7) brightness(.9);
          backdrop-filter: blur(5px) saturate(1.7) brightness(.9);
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255,255,255,.4),
    inset -1px -1px 0 rgba(255,255,255,.12),
    inset 0 0 22px rgba(255,255,255,.07),
    0 10px 30px rgba(0,0,0,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.hero__barcode { display: block; width: 130px; height: auto; margin-top: 14px; color: var(--ink); }

/* section headers carry a kit glyph on the right */
.theme-operator .section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.theme-operator .section-header::after { content: none; }
.theme-operator .section-header > span::after {
  content: ''; display: block; height: 3px; width: 46px; background: var(--red); margin-top: 8px;
}
.section-header__decor { height: 30px; width: auto; color: var(--ink); flex-shrink: 0; margin-bottom: 11px; }

/* divider row: >>>>> ------- ✦ */
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink); margin: 10px 0 0; }
.divider__chev { height: 14px; width: auto; color: var(--red); }
.divider__line { flex: 1; border-top: 2px dashed var(--ink); opacity: .7; }
.divider__star { height: 22px; width: auto; }

/* gig ticket */
.card--gig > a { display: flex; align-items: stretch; padding: 0; min-height: 0; text-align: left; justify-content: stretch; }
.gig__main { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 14px 16px; min-width: 0; }
.gig__title { font-weight: 900; font-stretch: 125%; font-size: 20px; letter-spacing: -.01em; line-height: 1; }
.gig__rows { display: flex; flex-direction: column; gap: 3px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.gig__row { display: flex; align-items: baseline; gap: 6px; }
.gig__row i { flex: 1; border-bottom: 1px solid currentColor; opacity: .35; transform: translateY(-3px); }
.gig__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--red); letter-spacing: .08em; }
.gig__arrow { width: 54px; height: 10px; }
.gig__stub {
  position: relative; width: 62px; flex-shrink: 0; border-left: 2px dashed #121212;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 0;
}
.gig__stub::before, .gig__stub::after {
  content: ''; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid #121212;
}
.gig__stub::before { top: -9px; clip-path: inset(50% 0 0 0); }
.gig__stub::after { bottom: -9px; clip-path: inset(0 0 50% 0); }
.gig__barcode { height: 86px; width: auto; color: #121212; }
.gig__stub-no { font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; }
.card--gig .kebab { top: 10px; right: 68px; transform: none; }

/* sign-off: the badge sits on the paper above the torn edge */
.sign-off { position: relative; text-align: center; margin-top: 54px; color: var(--ink); }
.sign-off__checker { display: block; width: 62%; height: auto; margin: 0 auto 22px; }
.sign-off__logo { display: block; width: min(360px, 88vw); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.sign-off__sparkle { position: absolute; width: 64px; right: 2%; top: 22px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); animation: twinkle 5s ease-in-out infinite; z-index: 1; }
.sign-off__barcode { display: block; width: 150px; height: auto; margin: 16px auto 0; }
.theme-operator .footer { margin-top: 56px; }

@media (prefers-reduced-motion: reduce) {
  .decor *, .decor::before, .hero__sticker, .sign-off__sparkle { animation: none !important; }
}

/* halftone fade behind HELLO, globe behind the sign-off badge */
.hero { position: relative; }
.hero__halftone {
  position: absolute; z-index: -1; left: -16px; top: 52px; width: min(78vw, 420px); height: auto;
  color: var(--ink); opacity: .2;
}
.sign-off__globe {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: min(400px, 100vw); height: auto;
  transform: translate(-50%, -46%); color: var(--ink); opacity: .16;
}
.sign-off { isolation: isolate; }

/* dark sheet: keep card internals, menus and the bottom sheet in dark ink */
.theme-operator .card__sub { color: #555; }
.theme-operator .sheet { color: var(--card-ink); }
.theme-operator .sheet__url, .theme-operator .sheet__btn--cancel { color: #666; }
.theme-operator .tt__readout { background: #000; }
.theme-operator .tt__ph-note { color: var(--muted); }
.theme-operator .hero__title { text-shadow: 0 0 24px rgba(224,38,58,.25); }
.theme-operator .sign-off__logo { filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 10px 30px rgba(224,38,58,.35)); }
.theme-operator .torn path:first-child { fill: #3a3a38; }

/* ---------- page break: torn black band, giant marquee, cut-out sticker ---------- */
.pbreak {
  position: relative; width: 100vw; margin: 64px calc(50% - 50vw) 52px;
  --band: clamp(260px, 74vw, 400px);
}
/* band + cut-out are clipped together along the bottom tear line */
.pbreak__inner {
  position: relative;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 40px) no-repeat, var(--tear) bottom / 100% 40px no-repeat;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 40px) no-repeat, var(--tear) bottom / 100% 40px no-repeat;
}
.pbreak__fibre { position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; display: block; z-index: 3; }
.pbreak__band {
  position: relative; height: calc(var(--band) + 40px); overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(255,255,255,.035), transparent 55%),
    #0b0b0b;
}
/* the text "bends" around the head: two halves meet behind it at the centre seam,
   each tilted and swung toward the viewer so the outer ends read bigger */
.pbreak__half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; perspective: 700px; }
.pbreak__half--l { left: 0; }
.pbreak__half--r { right: 0; }
.pbreak__marquee {
  position: absolute; top: 0; bottom: 18%; width: 100vw; display: flex; align-items: center;
  transform-origin: 50% 50%;
}
.pbreak__half--l .pbreak__marquee { left: 0; transform: rotateY(28deg) rotateZ(7deg); }
.pbreak__half--r .pbreak__marquee { right: 0; transform: rotateY(-28deg) rotateZ(-7deg); }
.pbreak__marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.pbreak__marquee__track > span, .ticker__track > span { display: inline-flex; align-items: center; flex-shrink: 0; }
.pbreak__marquee__item {
  font-weight: 900; font-stretch: 125%; font-size: clamp(72px, 24vw, 160px); line-height: 1; letter-spacing: -.03em;
  color: #ecece8; padding: 0 .18em;
}
.pbreak__marquee__glyphs, .ticker__glyphs { display: inline-flex; align-items: center; gap: .12em; color: #ecece8; }
.pbreak__marquee__glyphs .glyph { width: clamp(34px, 10vw, 64px); height: auto; }
.pbreak__marquee__glyphs .glyph:last-child { width: clamp(40px, 12vw, 76px); }
@keyframes marquee { to { transform: translateX(-50%); } }

.pbreak__cutout {
  position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%);
  /* sized by height so it always fits inside the masked band (never clipped flat at the top) */
  height: calc(var(--band) * .92 + 14px); width: auto; max-width: 92vw; object-fit: contain; display: block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
}
.pbreak__edge { z-index: 1; }
.pbreak__edge--top { top: -38px; }
.theme-operator .pbreak__edge path:first-child { fill: #cfcfc9; }
.theme-operator .pbreak__edge path:last-child { fill: #0b0b0b; }

/* ---------- gallery: taped polaroids with handwritten blurbs ---------- */
.gallery { margin: 8px 0 18px; }
.gallery__kicker { margin: 0; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--red); }
.gallery__title {
  margin: 4px 0 0; text-align: center; font-weight: 900; font-stretch: 125%;
  font-size: clamp(30px, 10vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--ink); max-width: 100%;
}
.gallery__strip {
  display: flex; gap: 18px; width: 100vw; margin: 0 calc(50% - 50vw);
  padding: 34px max(28px, calc(50vw - 300px)) 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery__strip::-webkit-scrollbar { display: none; }
.polaroid {
  position: relative; flex: 0 0 auto; width: min(64vw, 230px); margin: 0;
  background: #f5f3ec; padding: 10px 10px 0;
  box-shadow: 0 14px 28px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.3);
  transform: rotate(var(--tilt)); scroll-snap-align: center;
  transition: transform .2s;
}
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 1; }
.polaroid__tape {
  position: absolute; z-index: 1; top: -13px; left: 50%; width: 82px; height: 26px;
  transform: translateX(-50%) rotate(-5deg);
  background: linear-gradient(90deg, rgba(232,222,196,.82), rgba(245,238,218,.9), rgba(232,222,196,.82));
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 3% 96%, 0 52%);
}
.polaroid:nth-child(even) .polaroid__tape { transform: translateX(-50%) rotate(4deg); left: 46%; }
.polaroid__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0;
  background: #111; overflow: hidden; cursor: zoom-in;
}
.polaroid__media img, .polaroid__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid__play {
  position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; color: #fff; background: rgba(0,0,0,.55);
}
.polaroid__note {
  font-family: 'Caveat', cursive; font-weight: 500; font-size: 22px; line-height: 1.05; color: #1b1b1b;
  padding: 10px 4px 14px; min-height: 78px; transform: rotate(-1deg);
}
.polaroid__credit { display: block; text-align: right; font-size: 18px; margin-top: 4px; opacity: .8; }
.gallery__hint {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -6px 0 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.gallery__hint-arrow { width: 44px; height: 10px; color: var(--muted); }

/* ticker bar under the gallery, like a "LOGOS & MARKS" strip */
.ticker {
  width: 100vw; margin: 0 calc(50% - 50vw); overflow: hidden;
  background: #050505; border-block: 1px solid #2c2c2a; padding: 9px 0;
}
.ticker__track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.ticker__item { font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: -.01em; color: #ecece8; padding: 0 22px; }
.ticker__glyphs .glyph { width: 14px; height: 14px; }

/* lightbox for polaroids */
.lightbox {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__frame { background: #f5f3ec; padding: 12px 12px 4px; max-width: min(92vw, 520px); transform: rotate(-1.5deg); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.lightbox__media img, .lightbox__media video { display: block; width: 100%; max-height: 68vh; object-fit: contain; background: #111; }
.lightbox__note { font-family: 'Caveat', cursive; font-size: 28px; color: #1b1b1b; margin: 10px 4px 12px; line-height: 1.05; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid #000; background: #fbfbf9; color: #111; font-size: 18px; box-shadow: 3px 3px 0 #000;
}

@media (prefers-reduced-motion: reduce) {
  .pbreak__marquee__track, .ticker__track { animation: none; }
}

/* ---------- bookings email in the hero ---------- */
.hero__email { margin-top: 12px; }
.hero__email-label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--muted); }
.hero__email-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.hero__email-row a {
  min-width: 0; overflow-wrap: break-word; font-size: 12.5px; font-weight: 700; font-stretch: 95%; line-height: 1.25;
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.copy-btn {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.3); color: var(--ink);
  transition: background .15s, border-color .15s, transform .1s;
}
.copy-btn:active { transform: scale(.92); }
.copy-btn.is-copied { background: var(--red); border-color: var(--red); }

/* ---------- booking panel: grows out of the Book card ---------- */
html.bk-lock, html.bk-lock body { overflow: hidden; }
.booking {
  position: fixed; inset: 0; z-index: 50; color: #ecece8;
  background:
    linear-gradient(rgba(255,120,130,.07) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(255,120,130,.07) 1px, transparent 1px) 0 0 / 30px 30px,
    radial-gradient(ellipse at 50% 0%, #2a2a28, #121211 70%);
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path .55s cubic-bezier(.76, 0, .24, 1);
}
.booking[hidden] { display: none; }
.booking__inner {
  height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  max-width: 560px; margin: 0 auto; padding: 0 16px;
  opacity: 0; transform: translateY(18px); transition: opacity .3s ease .05s, transform .4s ease .05s;
}
.booking.is-open .booking__inner { opacity: 1; transform: none; transition-delay: .25s; }

.booking__head {
  position: sticky; top: 0; z-index: 2; padding: 16px 16px 12px; margin: 0 -16px;
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px;
  background: linear-gradient(#1b1b1a 75%, transparent);
}
.booking__head h2 { margin: 0; font-weight: 900; font-stretch: 125%; font-size: 20px; letter-spacing: -.01em; }
.bk-icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #000; background: #fbfbf9; color: #121212;
  font-size: 16px; box-shadow: 3px 3px 0 #000;
}
.bk-progress { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.bk-progress span { display: block; height: 100%; width: 33%; background: var(--red); box-shadow: 0 0 10px var(--red); transition: width .45s cubic-bezier(.76, 0, .24, 1); }

.bk-step, .bk-done { padding: 14px 0 8px; }
.bk-step.is-entering, .bk-done.is-entering { animation: bk-in .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes bk-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } }
.bk-step__no { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--red); }
.bk-step__title { margin: 6px 0 2px; font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 11vw, 48px); line-height: .95; letter-spacing: -.02em; }
.bk-step__blurb { margin: 6px 0 22px; color: #a6a6a1; font-size: 15px; }

.bk-field { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.bk-field > span, .bk-field legend {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #c4c4bf; padding: 0;
}
.bk-field legend { margin-bottom: 8px; }
.bk-field i { color: var(--red); font-style: normal; margin-left: 3px; }
.bk-field input, .bk-field select, .bk-field textarea {
  width: 100%; font: 500 16px/1.3 var(--font); color: #121212; background: #fbfbf9;
  border: 1.5px solid #000; border-radius: 12px; padding: 13px 14px; box-shadow: 3px 3px 0 #000;
  -webkit-appearance: none; appearance: none; color-scheme: light;
  transition: box-shadow .15s, transform .15s;
}
.bk-field select {
  background-image: linear-gradient(45deg, transparent 50%, #121212 50%), linear-gradient(135deg, #121212 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 36px;
}
.bk-field textarea { resize: vertical; min-height: 92px; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--red); transform: translate(-1px, -1px); }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: #9a9a96; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: 9px 13px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1.5px solid rgba(236,236,232,.45); background: rgba(0,0,0,.25);
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.chip input:checked + span { background: var(--red); border-color: #000; color: #fff; box-shadow: 3px 3px 0 #000; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.chip:active span { transform: scale(.95); }

.bk-error { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; color: #ff6b78; }
.booking__foot {
  position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #141413 30%);
}
.bk-btn {
  flex: 1; display: block; text-align: center; padding: 15px 18px; border-radius: 14px;
  font: 800 16px var(--font); font-stretch: 110%; letter-spacing: .01em;
  background: var(--red); color: #fff; border: 1.5px solid #000; box-shadow: 4px 4px 0 #000;
  transition: transform .1s, box-shadow .1s;
}
.bk-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.bk-btn:disabled { opacity: .7; }
.bk-btn[hidden], .booking__foot[hidden] { display: none; }
.bk-btn--ghost { flex: 0 0 auto; background: transparent; color: #ecece8; border-color: rgba(236,236,232,.5); box-shadow: none; }
.bk-done { text-align: center; padding-top: 40px; }
.bk-done .bk-btn { margin: 26px auto 0; max-width: 280px; }
.bk-stamp {
  display: inline-block; margin-bottom: 22px; padding: 12px 18px; border: 3px solid var(--red); border-radius: 8px;
  color: var(--red); font-weight: 900; font-stretch: 125%; font-size: 22px; line-height: 1; letter-spacing: .04em;
  transform: rotate(-8deg); animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) both .1s;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.9); } }

@media (prefers-reduced-motion: reduce) {
  .booking, .booking__inner, .bk-step.is-entering, .bk-stamp { transition: none !important; animation: none !important; }
}

/* 3D turnaround inside the selection box */
.tt__hint {
  position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; pointer-events: none;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: opacity .2s;
}
.tt.is-dragging .tt__hint { opacity: 0; }
.tt.is-dragging::before { border-style: dashed; }
.tt__media { filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
video.tt__media { object-fit: cover; object-position: 50% 40%; }

/* own footer + topbar glyph on artist pages */
.footer-links--own { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9a9a96; }
.round-btn .glyph { width: 20px; height: 20px; }

.bk-email { color: #fff; overflow-wrap: anywhere; user-select: all; }
.bk-preview {
  margin: 18px auto 0; max-width: 420px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 12px/1.5 var(--mono); color: #c4c4bf; background: rgba(0,0,0,.35); border: 1px dashed rgba(236,236,232,.3);
  border-radius: 10px; padding: 12px 14px; user-select: text;
}
.bk-done #bk-copy { margin: 22px auto 0; max-width: 280px; }
.bk-done #bk-copy + .bk-btn { margin-top: 12px; }
