:root {
  --ink: #111;
  --muted: #555;
  --night: #0e0e0e; /* shared dark tone so sections flow into each other */
  /* Type system: Bodoni for display, Cormorant italic for accents, Jost for everything else */
  --heading: 'Bodoni Moda', Didot, 'Bodoni 72', Georgia, serif;
  --accent: 'Cormorant Garamond', Garamond, Georgia, serif;
  --light: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
:focus-visible { outline: 2px solid #8f8c91; outline-offset: 3px; }
body { font-family: var(--body); font-weight: 400; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.display {
  font-family: var(--heading);
  font-weight: 500;
  /* Bodoni's large-size design has hairline strokes that vanish; use its sturdier small-size cut */
  font-variation-settings: 'opsz' 16;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; font-weight: 500; }
.services .display em,
.magic .display em,
.book .display em,
#pigeon-note .display em { font-style: normal; }

/* Buttons: solid black on light backgrounds; variants below for dark ones */
.btn {
  display: inline-block;
  padding: 0.9rem 3.2rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-family: var(--light);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
/* Thin white outline for dark backgrounds; fills white on hover */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
/* Solid white, for mid-grey backgrounds */
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(rgba(0, 0, 0, 0.35), transparent); /* keeps the mark legible over light photos */
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header__mark img { width: 64px; transition: opacity 0.2s; }
.site-header__mark:hover img { opacity: 0.75; }
.site-header__cta {
  padding: 0.7rem 1.5rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--light);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.site-header__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- MOTION ---------- */
.hero__name, .hero__tagline, .hero__links { animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__name { animation-delay: 0.4s; }
.hero__tagline { animation-delay: 0.6s; }
.hero__links { animation-delay: 0.6s; }  /* the tagline and the links fade in together */
.hero__tagline, .hero__links { animation-name: fade-in; animation-duration: 4s; } /* these fade in place; only the signature rises */
.hero__media { animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; } /* slow push-out, like a film opening */
/* Hand-written signature: while main.js writes it on, the logo image is hidden behind a canvas showing the
   strokes so far, and the tagline and links wait until the pen is nearly done. If the script never runs,
   the image shows itself after 5s anyway. */
.sign-in .hero__name { position: relative; animation: none; }
.sign-in .hero__name img { visibility: hidden; animation: sign-failsafe 0s 5s forwards; }
.sign-in.sign-done .hero__name img { visibility: visible; }
.hero__sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sign-in .hero__tagline { animation-delay: 3.4s; }
.sign-in .hero__links { animation-delay: 3.4s; }
@keyframes sign-failsafe { to { visibility: visible; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__name, .hero__tagline, .hero__links, .hero__media, .hero__flame, .hero__flame::before, .hero__flame::after { animation: none; }
  .hero__ember { animation: none !important; }   /* it still goes out, just without the smoke */
  .hero__frame::before, .hero__fire { transition: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
/* Photo sits on the right and fades into black on its left edge, leaving a dark column for the text */
.hero__media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 66%; /* fully faded in 30% of the way across; the text column is the left 40% */
  overflow: hidden;
  container-type: size;
  --focus-x: 0.4;  /* which part of the square photo stays in view, like background-position */
  --focus-y: 0.32;
  /* eased, so the photo dissolves with no visible edge */
  -webkit-mask-image: linear-gradient(to left, #000 62%, rgba(0, 0, 0, 0.92) 69%, rgba(0, 0, 0, 0.72) 76%, rgba(0, 0, 0, 0.45) 83%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0.05) 96%, transparent 100%);
  mask-image: linear-gradient(to left, #000 62%, rgba(0, 0, 0, 0.92) 69%, rgba(0, 0, 0, 0.72) 76%, rgba(0, 0, 0, 0.45) 83%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0.05) 96%, transparent 100%);
}
/* The photo is square; this frame is the photo, scaled to cover the area */
.hero__frame {
  --side: max(100cqw, 100cqh);
  position: absolute;
  width: var(--side);
  height: var(--side);
  left: calc((100cqw - var(--side)) * var(--focus-x));
  top: calc((100cqh - var(--side)) * var(--focus-y));
  background: url('images/hero-wide.jpg') center / cover no-repeat;
}
/* The same photo with the flame retouched out; fades in over the top when the match is blown out */
.hero__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-wide-out.jpg') center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;      /* slow to relight... */
}
.hero__frame.is-out::before { opacity: 1; transition-duration: 0.22s; }   /* ...quick to snuff */
.hero__fire { position: absolute; inset: 0; transition: opacity 0.8s ease; }
.hero__frame.is-out .hero__fire { opacity: 0; transition-duration: 0.18s; }

/* ---------- FLAME ---------- */
/* Candle-light on the match: a bright halo that breathes, a wide faint glow that pulses slowly,
   and a core that stretches, leans and sways like a real flame */
.hero__flame {
  position: absolute;
  left: 65.4%;
  top: 46.2%;
  width: 15.5%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 232, 0.5) 0%, rgba(255, 239, 220, 0.19) 27%, transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: halo 3.9s ease-in-out infinite;
}
/* wide, faint light thrown onto the wall and hand around the match */
.hero__flame::before {
  content: '';
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 205, 0.11) 0%, rgba(255, 236, 205, 0.04) 38%, transparent 66%);
  animation: glow 5.3s ease-in-out infinite;
}
.hero__flame::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 43%;
  width: 11.5%;
  height: 28%;
  margin-left: -5.75%;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 72%, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 238, 0.5) 45%, transparent 78%);
  filter: blur(1.5px);
  transform-origin: 50% 100%;
  animation: flicker 1.7s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { opacity: 0.74; transform: translate(-50%, -50%) scale(0.98); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.09); }
  40% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.99); }
  62% { opacity: 0.96; transform: translate(-50%, -50%) scale(1.06); }
  82% { opacity: 0.74; transform: translate(-50%, -50%) scale(0.98); }
}
@keyframes glow {
  0%, 100% { opacity: 0.7; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes flicker {
  0%, 100% { opacity: 0.6; transform: translateX(0) scaleY(1) skewX(0deg); }
  16% { opacity: 0.88; transform: translateX(0.8%) scaleY(1.16) skewX(-4deg); }
  32% { opacity: 0.66; transform: translateX(-0.6%) scaleY(0.94) skewX(3deg); }
  50% { opacity: 0.9; transform: translateX(-0.8%) scaleY(1.13) skewX(3.5deg); }
  68% { opacity: 0.58; transform: translateX(0.5%) scaleY(0.97) skewX(-2deg); }
  84% { opacity: 0.82; transform: translateX(0.9%) scaleY(1.17) skewX(-4deg); }
}
/* ---------- SMOKE (when the match is blown out) ---------- */
/* Everything is sized from --side (the photo's width), so it stays on the match at any screen size.
   The smoke leaves the top of the match head: x 65.4%, y 48.6% of the photo. It is drawn on a canvas
   (see main.js) as thin curling filaments, with the canvas's bottom-centre at that point. */
.hero__smoke { position: absolute; left: 65.4%; top: 48.6%; width: 0; height: 0; pointer-events: none; }
.hero__smoke-canvas {
  position: absolute;
  left: calc(var(--side) * -0.22);
  top: calc(var(--side) * -0.5);
  width: calc(var(--side) * 0.44);
  height: calc(var(--side) * 0.5);
  filter: blur(0.7px);
  pointer-events: none;
}
.hero__ember {
  position: absolute;
  left: 0;
  top: calc(var(--side) * 0.004);
  width: calc(var(--side) * 0.012);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 228, 0.9), rgba(255, 220, 180, 0.3) 45%, transparent 72%);
  opacity: 0;
}
.hero__frame.is-smoking .hero__ember { animation: ember 1.3s ease-out both; }
@keyframes ember {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}
/* the hover target: a small invisible patch over the flame (at least thumb-sized on phones) */
.hero__hit {
  position: absolute;
  left: 65.4%;
  top: 46.2%;
  width: max(46px, calc(var(--side) * 0.08));
  height: max(60px, calc(var(--side) * 0.11));
  transform: translate(-50%, -50%);
  border-radius: 50%;
  cursor: pointer;
  /* on phones, tapping the flame must not flash the browser's own highlight over it (it shows as an ugly circle) */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  outline: none;
}
.hero__media, .hero__frame { -webkit-tap-highlight-color: transparent; }

/* Darken the empty wall on the left and the bottom edge so white text reads */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 45%, transparent 40%, rgba(8, 8, 8, 0.45) 100%),
    linear-gradient(to top, var(--night) 0%, rgba(14, 14, 14, 0.6) 12%, transparent 32%); /* melt into the next section */
  pointer-events: none;
}
/* Text block is centred in the dark column on the left */
.hero__content {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%; /* the black area itself: everything left of where the photo begins (the photo is the right 66%) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;  /* equal above and below, so the block sits in the exact middle of the screen */
  text-align: center;
}
.hero__name { width: min(380px, 100%); line-height: 0; }
.hero__name img { display: block; width: 100%; height: auto; } /* signature logo */
.hero__tagline {
  margin: 1.6rem 0 2.4rem;
  font-family: var(--accent);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.35;
}
/* A thin vertical line between the two titles */
.hero__tagline .sep {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin: 0 0.75em;
  vertical-align: -0.12em;
  background: rgba(255, 255, 255, 0.6);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero__links { display: flex; justify-content: center; gap: 2.6rem; }
.hero__links a {
  position: relative;
  padding-bottom: 0.35rem;
  font-family: var(--light);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
/* Thin underline that draws in on hover */
.hero__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.hero__links a:hover::after { transform: scaleX(1); }

/* ---------- LOOKING FOR MAGIC ---------- */
.magic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(90vh, 700px);
  padding: 4rem 1rem;
  overflow: hidden;
  background: var(--night);
}
.magic__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* feather the top and bottom so there's no hard line */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%);
}
.magic__card {
  position: relative;
  width: min(670px, 100%);
  padding: 5.5rem 2rem;
  text-align: center;
  isolation: isolate;
}
/* Frosted glass that fades out at its edges rather than ending in a hard box */
.magic__card::before {
  content: '';
  position: absolute;
  inset: -4rem -6rem;
  z-index: -1;
  background: rgba(228, 223, 229, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.magic__card p { color: #3a3a3a; font-weight: 400; font-size: 1.1rem; line-height: 1.8; }
.magic__card .display { margin-bottom: 2rem; font-size: clamp(2.4rem, 4.2vw, 3.6rem); white-space: nowrap; }
.magic__card .btn { margin-top: 3rem; padding: 0.9rem 3.3rem; }

/* Mailing list sign-up under the show dates */
.magic__signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem 1.2rem;
  margin-top: 3rem;
}
.magic__signup input[type="email"] {
  flex: 1 1 14rem;
  max-width: 20rem;
  padding: 0.8rem 0.2rem;
  font: 400 1rem var(--body);
  color: #111;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #222;
  border-radius: 0;
}
.magic__signup input[type="email"]::placeholder { color: #111; opacity: 1; }
.magic__signup input[type="email"]:focus { outline: none; border-bottom-width: 2px; }
.magic__signup .btn { margin-top: 0; padding: 0.9rem 2rem; }
.magic__signup-status { flex-basis: 100%; min-height: 1.5rem; font-family: var(--accent); font-style: italic; font-size: 1.2rem; color: #222; }

/* Public show dates: one row per show (date, name and venue, tickets link) */
.magic__dates { list-style: none; margin-top: 2.2rem; text-align: left; }
.magic__dates li {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  color: #222;
}
.magic__dates li:first-child { border-top: 1px solid rgba(0, 0, 0, 0.18); }
.magic__dates time {
  font-family: var(--light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.magic__show { font-size: 0.9rem; color: #444; }
.magic__show strong { display: block; font-family: var(--heading); font-weight: 500; font-size: 1.15rem; color: #222; }
.magic__dates li[hidden] { display: none; }
.magic__dates a {
  font-family: var(--light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}
.magic__dates .magic__empty { display: block; text-align: center; font-family: var(--accent); font-style: italic; font-size: 1.3rem; color: #3a3a3a; }

/* Expandable list: extra dates stay hidden until "See all dates" is pressed */
.magic__dates.is-collapsed li.is-extra { display: none; }
.magic__dates li.is-extra { animation: dates-in 0.3s ease; }
@keyframes dates-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.magic__more {
  display: block;
  margin: 1.4rem auto 0;
  padding: 0.3rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-family: var(--light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
}
.magic__more[hidden] { display: none; }
.magic__more:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .magic__dates li.is-extra { animation: none; } }

/* ---------- SERVICES ---------- */
.services {
  padding: 12rem clamp(1.5rem, 5vw, 5rem) 3rem;
  text-align: center;
  /* melts up out of the dark card-video section above */
  background: linear-gradient(to bottom, var(--night) 0, #bdbbbe 150px, #fff 290px);
}
.services__intro {
  margin: 1rem 0 3.5rem;
  font-family: var(--accent);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--muted);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
/* Each service is a tap-to-open item: the title (with a +) is the button, the description opens beneath it.
   Built on <details>, so it works from the keyboard and without JavaScript; opening one closes the others. */
.service { align-self: start; padding-top: 1.4rem; border-top: 1px solid rgba(0, 0, 0, 0.15); }
.service summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.service summary::-webkit-details-marker { display: none; }
.service summary::after {
  content: '+';
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--light);
  font-size: 1.1rem;
  line-height: 1.5rem;
  text-align: center;
  transition: transform 0.25s;
}
.service[open] summary::after { transform: rotate(45deg); }
.service summary:hover h3 { opacity: 0.65; }
.service summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.service h3 {
  margin: 0;
  font-family: var(--heading);
  font-variation-settings: 'opsz' 16;
  font-weight: 500;
  font-size: 1.5rem;
  transition: opacity 0.2s;
}
.service p { margin-top: 0.7rem; font-weight: 300; font-size: 1rem; line-height: 1.7; color: #333; }
.service[open] p { animation: service-in 0.3s ease; }
@keyframes service-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .service[open] p, .service summary::after { animation: none; transition: none; } }

/* ---------- SHOWS / CLIENTS ---------- */
.logos { padding: 3rem 1.5rem 3rem; text-align: center; }
.logos:has(+ .book) { padding-bottom: 0; }  /* the last logo row hands straight over to the booking fade */
.logos h3 {
  margin-bottom: 3rem;
  font-family: var(--light);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.logos__shows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));  /* Speakeasy Magick sits in the middle */
  justify-content: center;
  align-items: center;
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
}
.show {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
  aspect-ratio: 340 / 150;
  padding: 1.1rem;
  transition: opacity 0.2s;
}
.show:hover { opacity: 0.7; }
.show img { height: 100%; width: auto; object-fit: contain; }
.show--hande { padding: 0.4rem; }
.show--hande img { filter: none; }
.show--castle { padding: 0.6rem; } /* let the castle logo fill the tile */
.show--castle img { filter: brightness(0); opacity: 0.85; } /* white logo shown in black, like the client row */
.show img + .show__name { flex: none; } /* size to the text so the pair centers */
.show img:has(+ .show__name) { filter: grayscale(1) invert(1) contrast(1.15); opacity: 0.85; } /* light linework flipped to dark */
.show__name {
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 500;
  font-variation-settings: 'opsz' 16;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: left;
}
/* Clients: a mosaic of tiles in different sizes, fitted together on a 12-column grid.
   Dark tiles show their logo in white, the others in black. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(64px, 8vw, 112px);
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
}
.tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s;
}
/* grid-area: row start / column start / row end / column end */
.tile--a { grid-area: 1 / 1 / 3 / 6; }
.tile--b { grid-area: 1 / 6 / 3 / 9; }
.tile--c { grid-area: 1 / 9 / 4 / 13; }
.tile--d { grid-area: 3 / 1 / 5 / 5; }
.tile--e { grid-area: 3 / 5 / 5 / 9; }
.tile--f { grid-area: 4 / 9 / 5 / 13; }
.tile--dark  { background: #111; }
.tile--light { background: #efefef; }
.tile--mid   { background: #dcdcdc; }
.tile--dark:hover  { background: #232323; }
.tile--light:hover { background: #e4e4e4; }
.tile--mid:hover   { background: #d0d0d0; }
.tile img {
  width: var(--w, 60%);       /* each logo is sized to its tile, so small files scale up too */
  max-height: 58%;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.88;
  transition: opacity 0.3s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile--dark img { filter: brightness(0) invert(1); opacity: 0.92; }
.tile:hover img { opacity: 1; transform: scale(1.04); }
.tile--f img { max-height: 46%; }
.tile--a { --w: 52%; }
.tile--b { --w: 68%; }
.tile--c { --w: 64%; }
.tile--d { --w: 52%; }
.tile--e { --w: 62%; }
.tile--f { --w: 50%; }

/* ---------- PIGEON NOTE (pop-up) ---------- */
.note {
  width: min(540px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #fff;
  background: rgba(16, 16, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.note:focus, .note:focus-visible { outline: none; }  /* the note itself takes focus when it opens, not the close button */
.note::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.note[open] { animation: note-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.note[open]::backdrop { animation: fade-in 0.35s ease both; }
@keyframes note-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
body:has(.note[open]) { overflow: hidden; }
.note__inner { position: relative; padding: 3.4rem clamp(1.6rem, 6vw, 3rem) 2.8rem; text-align: center; }
.note__close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  padding: 0.3rem 0.6rem;
  border: 0;
  background: none;
  color: #bdbabf;
  font: 300 2rem/1 var(--body);
  cursor: pointer;
  transition: color 0.2s;
}
.note__close:hover { color: #fff; }
.note .display { font-size: clamp(2.2rem, 7vw, 3rem); }
.note__lead { margin: 1.2rem 0 1.6rem; font-family: var(--accent); font-style: italic; font-size: 1.55rem; line-height: 1.3; color: #e8e5e9; }
.note__inner > p:not(.note__lead) { margin-bottom: 1.1rem; font-weight: 300; font-size: 1.02rem; line-height: 1.75; color: #cfccd1; }
.note__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 2.2rem; margin-top: 2rem; }
.note__link {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--light);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: border-color 0.2s;
}
.note__link:hover { border-bottom-color: #fff; }
.note--small { width: min(420px, calc(100% - 2rem)); }
.note__lead--address { margin: 0.9rem 0 1.6rem; font-size: 1.3rem; }
.note__choices { list-style: none; text-align: left; }
.note__choices li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.note__choices li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.note__choices a, .note__choices button {
  display: block;
  width: 100%;
  padding: 1rem 0.2rem;
  border: 0;
  background: none;
  color: #e8e5e9;
  font: 300 1.05rem var(--body);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, padding-left 0.2s;
}
.note__choices a:hover, .note__choices button:hover { color: #fff; padding-left: 0.7rem; }
@media (prefers-reduced-motion: reduce) { .note[open], .note[open]::backdrop { animation: none; } }

/* ---------- BOOKING ---------- */
/* Fades from the white logo rows back into the dark the page opened with, eased so there is no visible edge */
.book {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: 18rem clamp(1.5rem, 7vw, 8rem) 6rem;
  color: #fff;
  background: linear-gradient(to bottom,
    #fff 0, #f0f0f0 42px, #cbcbcb 84px, #999 126px, #636363 168px, #343434 210px, #151515 252px, var(--night) 280px);
}
.book__intro p {
  margin: 1.2rem 0 2.8rem;
  font-family: var(--accent);
  font-style: italic;
  font-size: 1.5rem;
  color: #d9d6da;
}
.book__direct { list-style: none; }
.book__direct li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.book__direct .book__icon { display: inline-flex; align-items: center; width: 1.6rem; color: #d9d6da; }
.book__direct .book__icon svg { display: block; }
.book__direct span:not(.book__icon) {
  width: 6.6rem;
  flex: none;
  font-family: var(--light);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8f8c91;
}
.book__direct a { font-weight: 300; font-size: 1.1rem; transition: color 0.2s; }
.book__direct a:hover { color: #b9b6bb; }

.book__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; align-content: start; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--light);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8f8c91;
}
.field label i { font-style: normal; letter-spacing: 0.1em; text-transform: none; }
/* Underline-only inputs: no boxes */
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 300 1.05rem var(--body);
  color-scheme: dark;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; }
.field input::placeholder { color: #66636a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: #fff; }
.field select { appearance: none; cursor: pointer; }
.field select:invalid { color: #66636a; }
.field select option { color: #111; }
/* Occasion: tappable pills (one tap, no dropdown) */
.field--chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--chips legend {
  padding: 0;
  margin-bottom: 0.8rem;
  font-family: var(--light);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8f8c91;
}
.field--chips legend i { font-style: normal; letter-spacing: 0.1em; text-transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font: 300 0.95rem var(--body);
  color: #d9d6da;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip--flex { align-self: flex-start; margin-top: 0.5rem; }   /* the "flexible" pill sits under the date, only as wide as itself */
.chip:hover span { border-color: rgba(255, 255, 255, 0.7); }
.chip input:checked + span { background: #fff; border-color: #fff; color: #111; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.book__trap { position: absolute; left: -9999px; }
.book__actions { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; margin-top: 0.6rem; text-align: center; }   /* button centred, with its message centred beneath */
.book__actions .btn { cursor: pointer; }
.book__actions .btn:disabled { opacity: 0.6; cursor: wait; }
.book__status { font-family: var(--accent); font-style: italic; font-size: 1.2rem; color: #d9d6da; }
.book__status a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.book__status a:hover { color: #b9b6bb; }

.footer {
  padding: 2rem 1rem 3.5rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6f6c71;
  background: var(--night);
}
.footer__mark { width: 64px; margin: 0 auto 1.2rem; opacity: 0.7; }

/* ---------- MOBILE ---------- */
@media (min-width: 801px) and (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .book { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .site-header__mark img { width: 52px; }
  .site-header__cta { padding: 0.6rem 1.1rem; font-size: 0.66rem; }
  .magic__card .display { white-space: normal; }
  /* Photo fills the top and fades to black, so the text below sits on solid dark */
  .hero__media {
    inset: 0 0 auto 0;
    width: auto;
    height: 70%;
    --focus-x: 0.47;
    --focus-y: 0.3;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  }
  .hero::after { background: none; }
  .hero__content { top: auto; left: 0; right: 0; bottom: 3rem; width: auto; padding: 0 1.5rem; }
  .hero__name { width: min(300px, 80%); }
  .hero__links { gap: 2rem; }

  /* phones: six columns, so the tiles interlock at different heights like the desktop mosaic.
     Maybelline runs across the top and Van Cleef & Arpels across the bottom; between them the two columns
     are staggered: Plaza tall / Zero Bond short on the left, Crane Club short / NYAA tall on the right. */
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 52px; }
  .tile--a { grid-area: 1 / 1 / 3 / 7; }
  .tile--b { grid-area: 3 / 1 / 6 / 4; }
  .tile--c { grid-area: 3 / 4 / 5 / 7; }
  .tile--d { grid-area: 5 / 4 / 8 / 7; }
  .tile--e { grid-area: 6 / 1 / 8 / 4; }
  .tile--f { grid-area: 8 / 1 / 10 / 7; }
  .tile { --w: 68%; }
  .tile--a { --w: 54%; }
  .tile--f { --w: 44%; }
  .tile img { max-height: 58%; }

  .services__grid { grid-template-columns: 1fr; gap: 2rem; }
  .services { padding-top: 10rem; }
  /* Shows logos: a tidy, smaller stack instead of three big tiles with wide gaps */
  .logos { padding: 2.4rem 1.5rem; }
  .logos h3 { margin-bottom: 1.8rem; }
  .logos__shows { grid-template-columns: minmax(0, 300px); gap: 0.3rem; }
  .show { aspect-ratio: 300 / 104; padding: 0.6rem; }
  .show--hande { padding: 0.2rem; }
  .show--castle { padding: 0.3rem; }
  /* on phones the logos stack as Speakeasy Magick, Magic Castle, then The Hand & The Eye (wider screens keep Hand & Eye, Speakeasy Magick, Magic Castle across) */
  .show--speakeasy { order: -2; }
  .show--castle { order: -1; }

  .book {
    grid-template-columns: 1fr;
    padding-top: 14rem;
    /* the same fade into black as on desktop, a little shorter for the smaller screen */
    background: linear-gradient(to bottom,
      #fff 0, #f0f0f0 32px, #cbcbcb 64px, #999 97px, #636363 129px, #343434 161px, #151515 194px, var(--night) 215px);
  }
  .book__form { grid-template-columns: 1fr; }

  /* Public Shows on phones: a dark section, so it flows from the black opening screen and straight into the
     black-to-white fade of "What I Do". The video is a soft-edged window at the top (its edges dissolve into the
     black), the heading sits over its lower part, and the list follows on the black. */
  .magic { --stage: 62vw; display: grid; align-items: start; justify-items: stretch; min-height: 0; padding: 0; background: var(--night); }
  .magic__video {
    position: static;
    grid-area: 1 / 1;
    width: 100%;
    height: var(--stage);
    object-position: 50% 45%;
    /* fade all four edges into the black: left and right lightly, the top into the opening screen, the bottom fully */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
                        linear-gradient(to bottom, transparent 0, #000 14%, #000 66%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
                linear-gradient(to bottom, transparent 0, #000 14%, #000 66%, transparent 100%);
    mask-composite: intersect;
  }
  .magic__card {
    grid-area: 1 / 1;
    width: 100%;
    margin: 0;
    /* the heading and its line (about 5.5rem tall together) are centred on the video */
    padding: calc((var(--stage) - 5.5rem) / 2) 1.5rem 4.5rem;
  }
  /* a soft dark patch behind the heading keeps it readable over the bright cards, without a visible box */
  .magic__card::before {
    inset: 0;
    background: radial-gradient(ellipse 78% calc(var(--stage) * 0.36) at 50% calc(var(--stage) / 2), rgba(10, 10, 10, 0.74) 0%, rgba(10, 10, 10, 0.44) 55%, transparent 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .magic__card .display { color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65); }
  .magic__card > p { color: #e4e1e6; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
  @media (max-width: 340px) { .magic__card > p { font-size: 1rem; } }   /* keeps the line on one row so the block stays centred */
  .magic__dates { margin-top: calc((var(--stage) - 5.5rem) / 2 + 1.2rem); }   /* clears the lower half of the video */

  /* the list, the mailing list form and their text are light-on-dark here */
  .magic__dates li { color: #eceaed; border-bottom-color: rgba(255, 255, 255, 0.16); }
  .magic__dates li:first-child { border-top-color: rgba(255, 255, 255, 0.16); }
  .magic__dates time { color: #bcb8be; }
  .magic__show { color: #a29ea5; }
  .magic__show strong { color: #fff; }
  .magic__dates a { color: #fff; }
  .magic__dates .magic__empty { color: #d2cfd5; }
  .magic__more { color: #fff; }
  .magic__signup input[type="email"] { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.7); }
  .magic__signup input[type="email"]::placeholder { color: #c2bec5; }
  .magic__signup .btn { background: #fff; color: #111; border-color: #fff; }
  .magic__signup .btn:hover { background: transparent; color: #fff; }
  .magic__signup-status { color: #d9d6da; }

  /* a more compact list: each show is two lines (date over name) with Tickets at the right, instead of three stacked */
  .magic__dates li {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date tix" "name tix";
    gap: 0.1rem 1rem;
    align-items: center;
    padding: 0.62rem 0;
  }
  .magic__dates time { grid-area: date; font-size: 0.72rem; letter-spacing: 0.22em; }
  .magic__show { grid-area: name; font-size: 0.8rem; }
  .magic__show strong { display: inline; margin-right: 0.5em; font-size: 1.1rem; }   /* "Two shows" follows the name on the same line */
  /* Tickets is a button at the right of each row (an outlined button that fills white when pressed) */
  .magic__dates a {
    grid-area: tix;
    align-self: center;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.4rem 0.95rem;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: background 0.2s, color 0.2s;
  }
  .magic__dates a:hover, .magic__dates a:active { background: #fff; color: #111; }
  .magic__dates li { padding: 0.5rem 0; }
  @media (max-width: 340px) { .magic__show strong { font-size: 1rem; } .magic__dates a { padding: 0.4rem 0.7rem; } }
  .magic__dates .magic__empty { grid-column: 1 / -1; }
  .magic__signup { margin-top: 2.2rem; }
  .magic__card { padding-bottom: 3.2rem; }
}
