/* ===========================================================
   SOUNDWELL - placeholder build
   70% Baltic Studios / 30% AIR Studios. Underground, rugged,
   neutral black/grey. No cream, no brown.
   Type: Archivo Expanded (headings, buttons, all UI labels)
         Inter (body copy only)
   =========================================================== */

/* Enfonix (licensed, bought by the client). HEADINGS ONLY: h1, h2, h3.
   Buttons, badges, labels and menus stay in Archivo Expanded (--font-ui).
   Enfonix has one weight, so the face is declared across 400-700: that stops
   the browser faking a bold on top of it (the h1-h3 rule asks for 700). */
@font-face{
  font-family: 'Enfonix';
  src: url('../assets/fonts/enfonix-std-webfont.woff2') format('woff2'),
       url('../assets/fonts/enfonix-std-webfont.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Soundwell Display';
  src: url('../assets/fonts/soundwell-display-400.woff2') format('woff2'),
       url('../assets/fonts/soundwell-display-400.woff') format('woff');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Soundwell Display';
  src: url('../assets/fonts/soundwell-display-700.woff2') format('woff2'),
       url('../assets/fonts/soundwell-display-700.woff') format('woff');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --black:      #000000;
  --ink:        #000000;
  --grey-900:   #0d0d0d;
  --grey-800:   #1a1a1a;
  --grey-600:   #4c4c4c;
  --grey-400:   #7c7c7c;
  --grey-300:   #a3a3a1;
  --grey-150:   #d2d2ce;
  --paper:      #eceae5;
  --accent:     #FFD743;   /* client brand yellow */
  --accent-dim: #c9a62d;
  --accent-soft:#FFD743;   /* text yellow = button yellow, per client */
  --accent-hover:#FFE27A;

  /* channel copies, so translucent values come from the palette too
     rather than being eyeballed one-off rgba()s */
  --black-rgb:       0,0,0;
  --paper-rgb:       236,234,229;
  --accent-rgb:      255,215,67;
  --accent-soft-rgb: 255,215,67;

  /* Headings only: Enfonix (see the @font-face above), Archivo Expanded as fallback. */
  --font-display: 'Soundwell Display', 'Enfonix', 'Archivo Expanded', 'Archivo', Impact, sans-serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
  --font-ui:    'Archivo Expanded', 'Archivo', Impact, sans-serif;

  --max: 1240px;
  --edge: 24px;
  --float-h: 62px;

  /* Uniform UI text height.
     The logo <img> is --logo-h tall, but the wordmark only inks 83.12% of
     its own SVG box (the rest is padding baked into the artwork), and
     Archivo Expanded caps are 68.75% of the font size. So this font-size
     renders button text at exactly the same visible height as the logo.
     Change --logo-h and every button label follows it. */
  --logo-h: 16px;
  --ui-size: calc(var(--logo-h) * 0.8312 / 0.6875);

  /* THREE display sizes across the whole site. Nothing bold or uppercase
     gets a size outside this set. Hierarchy below size-3 is carried by
     colour, not by shaving a pixel off the type.
       1  section headings
       2  buttons, panel headings, the phone number (locked to the logo)
       3  every small uppercase label
     Body copy has its own two sizes below. */
  --size-1: clamp(27px, 3.5vw, 42px);
  --size-2: var(--ui-size);
  --size-3: 11.5px;

  --body:    15.5px;
  --body-sm: 13.5px;

  /* Optical correction, not a layout value. An 11.5px eyebrow and a 48px
     title sit on the same x, but their INK does not: the bigger glyph's
     left side bearing is bigger in absolute pixels. Measured from rendered
     ink at 4x, the title sat 1.25 / 2.25 / 2.75 / 2.25px right of its
     eyebrow across the four pairings on the site. 2px splits that, leaving
     under a pixel of error anywhere. It is a fraction of --size-1 rather
     than a flat 2px because the bearing scales with the heading: the title
     drops to 32px on a phone, and a flat correction overshot there.
     Use only where a small label sits directly above a --size-1 heading.
     Everything else on the site aligns by box. */
  --optical-nudge: 0px;
  --icon:    18px;   /* glyph-only controls: arrows, close X */
}
/* The Soundwell Display face runs wider than Enfonix; on very small phones the
   largest heading size steps down so long titles never push the page sideways. */
@media (max-width:359px){ :root{ --size-1: 24px; } }


/* Soundwell Display carries 7 design units of side bearing (0.074em) on every
   letter, so its ink sits right of its box. Pull the display headings back so
   their ink lands on the same x as the body copy and labels around them. */
.info-bar-title, .location-lead h2, .page-section h2, .book-panel h3{
  margin-left: calc(-0.074em + 0.8px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; background: var(--black); }
body{
  margin: 0;
  background: var(--black);
  color: var(--grey-150);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Page transitions.
   Deliberately JS-driven rather than @view-transition: cross-document view
   transitions only fire over http(s), so opening the files straight off
   disk got no transition at all, which is what Damon was seeing as abrupt.
   This works identically either way.
   The fade IN is a CSS animation so it still happens with JS disabled. The
   fade OUT sets `animation: none` first, because a filling animation
   outranks a transition on the same property and would swallow it. */
@keyframes pageFade{ from{ opacity: 0; } to{ opacity: 1; } }
body{ animation: pageFade .3s ease both; }
body.is-leaving{
  animation: none;
  opacity: 0;
  transition: opacity .18s ease;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }

/* Every var(--font-ui) rule must state a weight. Archivo Expanded is only
   requested at 700, so anything left on the inherited 400 quietly rendered
   in a fallback face: measured 253.77px against 256.72px for the same
   string, so these labels were not the same font as the rest of the site. */
.eyebrow{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 10px;
}

/* ---------- grain overlay: REMOVED, deliberately ----------
   There was a fixed full-viewport noise layer here at opacity .05 with
   mix-blend-mode: overlay. It was the single cause of the site feeling
   janky. A blended full-screen layer forces the browser to re-composite the
   whole viewport every frame, and the hero's slow zoom re-triggers that
   forever, so it never settled.

   Measured on the homepage, idle, no interaction:
       with grain      50.5% of frames over 20ms, worst frame 50ms
       without grain    0.3% of frames over 20ms, worst frame 33ms

   And it was invisible: mean difference to the rendered page was 0.92 of
   255 levels. Half the frame rate for under one level of tone.

   Keeping the noise but dropping the blend mode is NOT the fix: that costs
   8% of frames and lifts the blacks by 3.6 levels, greying out the deep
   blacks the whole palette is built on.

   If texture is ever wanted again, put it in the photographs at grade time
   in the build pipeline, where it costs nothing at runtime. */

/* ---------- photography blocks (studios / equipment / services / events / location) ---------- */
.placeholder-block{
  position: relative;
  background: linear-gradient(155deg, var(--grey-600) 0%, var(--grey-800) 55%, var(--black) 100%);
  overflow: hidden;
}
.placeholder-block::after{
  content: attr(data-tag);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-ui);
  font-size: var(--size-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(var(--black-rgb), .65);
  padding: 5px 9px;
  border-radius: 2px;
}

/* ---------- real photography ---------- */
.photo-fill{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* No CSS filter here on purpose. Every photo is graded at full resolution
     by the build pipeline before compression; grading in the browser over an
     already-compressed file amplifies block artefacts. Damon also shoots a
     deliberate mono/colour alternation, which a blanket grayscale() destroys. */
}
.hero-media{ position: absolute; inset: 0; overflow: hidden; }
/* <picture> is inline by default, so it has to be told to fill */
.hero-media picture{ display: block; width: 100%; height: 100%; }
/* will-change promotes the hero to its own compositor layer so the 26s zoom
   runs off the main thread instead of repainting a full screen image behind
   the menu. Measured 30% of idle frames over 20ms without it, 22.7% with. */
.hero-media .photo-fill{
  animation: heroZoom 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom{
  from{ transform: scale(1); }
  to{ transform: scale(1.08); }
}

/* a real heading for pages whose title is a yellow block or an image */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- floating boxes (shared) ---------- */
/* No backdrop-filter on the floating boxes, deliberately.
   Measured: blur(8px) behind an .86 background changed the rendered page by
   a mean of 0.99/255, with only 0.57% of pixels in the menu area shifting by
   more than 8. It is invisible. What it cost was real: opening the menu ran
   90.5% of frames over 20ms with it on and 37.5% with it off, because an
   animating panel over a live backdrop filter re-rasterises the blur every
   frame. Same trade as the grain overlay: pay nothing, lose nothing.
   The heavier blur(16px) panels on the room pages are a different case and
   are left alone: those sit over a photo at .74 and genuinely read as glass. */
.float-box{
  position: fixed;
  z-index: 950;
  background: rgba(var(--black-rgb), .90);
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}

/* logo box, top-left */
.logo-box{
  top: var(--edge); left: var(--edge);
  height: var(--float-h);
  display: flex; align-items: center;
  padding: 0 20px;
  transition: background .2s ease;
}
.logo-box:hover{ background: rgba(var(--black-rgb), .96); }
.logo-box-img{ height: var(--logo-h); width: auto; }

/* studios box, top-right */
.studios-box{
  top: var(--edge); right: var(--edge);
  width: 196px;
}
.studios-box-toggle{
  width: 100%;
  height: var(--float-h);
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  padding: 0 20px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  transition: background .15s ease, color .15s ease;
}
.studios-box-toggle:hover{ background: var(--paper); color: var(--black); }
/* The menu now carries FULL EQUIPMENT LIST, which needs 246px of line at
   --ui-size, while the closed MENU button only wants 196px. Widening the
   whole box would either park a slab in the corner permanently or, on a
   phone, slide the toggle across the logo. So the panel is taken out of
   flow and hung off the box's right edge instead: the button keeps its own
   width at every breakpoint, and the panel is as wide as its longest label.
   It carries its own background because it now reaches past the parent. */
.studios-box-drop{
  position: absolute;
  top: var(--float-h);
  right: 0;
  width: 286px;
  max-height: 0;
  overflow: hidden;
  background: rgba(var(--black-rgb), .90);
  border-radius: 0 0 2px 2px;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
/* only while open, or a closed panel casts a shadow line at zero height */
.studios-box.open .studios-box-drop{ box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.studios-box.open .studios-box-drop{ max-height: 560px; }
.studios-box-tab{
  display: block;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-300);
  opacity: 0;
  transform: translateY(-6px);
  transition: color .15s ease, background .15s ease, opacity .25s ease, transform .25s ease;
}
.studios-box.open .studios-box-tab{ opacity: 1; transform: translateY(0); }
.studios-box.open .studios-box-tab:nth-child(1){ transition-delay: .04s; }
.studios-box.open .studios-box-tab:nth-child(2){ transition-delay: .08s; }
.studios-box.open .studios-box-tab:nth-child(3){ transition-delay: .12s; }
.studios-box.open .studios-box-tab:nth-child(4){ transition-delay: .16s; }
.studios-box.open .studios-box-tab:nth-child(5){ transition-delay: .20s; }
.studios-box.open .studios-box-tab:nth-child(6){ transition-delay: .24s; }
.studios-box.open .studios-box-tab:nth-child(7){ transition-delay: .28s; }
.studios-box-tab:hover{ color: var(--black); background: var(--paper); }
.studios-box-tab.current{ color: var(--accent-soft); }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 46% at 50% 47%, rgba(var(--black-rgb), .55) 0%, rgba(var(--black-rgb), .25) 100%),
    linear-gradient(180deg, rgba(var(--black-rgb), .5) 0%, rgba(var(--black-rgb), .62) 45%, rgba(var(--black-rgb), .72) 70%, rgba(var(--black-rgb), .9) 100%);
}
.hero-content{
  position: relative;
  text-align: center;
  padding: 0 24px;
}
.hero-glass{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,.5);
  border-radius: 2px;
  padding: 52px 72px 40px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  opacity: 0; /* opacity is driven entirely by JS from here: load fade-in, then scroll-linked fade-out */
  will-change: opacity;
}
.hero-wordmark{ width: min(640px, 72vw); height: auto; margin: 0 auto 22px; }
@keyframes heroRise{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}
.hero-scroll{
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
}
.hero-scroll span{
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse{
  0%,100%{ opacity: .3; } 50%{ opacity: 1; }
}

/* ---------- intro ---------- */
.intro{
  background: var(--ink);
  padding: 40px var(--edge) 44px;
  text-align: center;
}
.intro .eyebrow{ color: var(--accent-soft); margin-bottom: 18px; }
/* same size and weight as every other piece of sub copy on the site
   (.info-bar-line, .page-lede), so the About block stops reading as its own
   typographic island. Only the centring and the brighter grey are its own. */
.intro-copy{
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.55;
}
.about-line{
  color: var(--grey-150);
  max-width: none;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.about-line + .about-line{ margin-top: 16px; }
.about-line.in-view{ opacity: 1; transform: translateY(0); }
.about-line.in-view:nth-child(1){ transition-delay: 0s; }
.about-line.in-view:nth-child(2){ transition-delay: .12s; }
.about-line.in-view:nth-child(3){ transition-delay: .24s; }
.about-line.in-view:nth-child(4){ transition-delay: .36s; }
.about-line.in-view:nth-child(5){ transition-delay: .48s; }
.about-line.in-view:nth-child(6){ transition-delay: .60s; }

/* ---------- section head ---------- */

/* ---------- studios ---------- */
.studios{ padding: 0; }
/* Four across in a single strip rather than the old 2x2. At 1440 the 2x2
   version stood 1080px tall, so the four rooms arrived as a wall of photo
   with nothing else on screen. One row of the same 4:3 tiles is 270px, the
   whole set reads in a single glance, and the page below it stays in view. */
.studio-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.studio-card{ display: block; scroll-margin-top: 110px; }
.studio-card-link{
  position: relative;
  display: block;
}
.studio-photo{
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.studio-photo .photo-fill{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease, transform 1.5s cubic-bezier(.22,.61,.36,1);
}
.studio-photo .photo-fill.active{ opacity: 1; }

/* HOVER on the four main tiles.
   The tiles sit under a 10% scrim at rest and the scrim lifts on hover, so
   the one you point at genuinely brightens against three that stay held
   back. A scrim rather than filter: brightness() because it is plain
   compositing, and it gives a real differential instead of the near
   invisible 7% lift it replaces.
   The slow zoom is on the IMAGE inside a fixed overflow:hidden box, so the
   tile edges never move and the zero-gap seams cannot shimmer. Only the
   hovered card animates, so cost stays flat however many tiles exist. */
.studio-photo::after{
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background: rgba(var(--black-rgb), .10);
  transition: background .5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.studio-card-link:hover .studio-photo::after{ background: rgba(var(--black-rgb), 0); }
.studio-card-link:hover .photo-fill{ transform: scale(1.06); }
.studio-badge{
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 3;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
/* same highlight as the Gear Well collage label */
.studio-card-link:hover .studio-badge{ transform: translateY(-3px); background: var(--accent-hover); }

/* ---------- room pages: the name badge opens a short intro ----------
   Same yellow block as before, now a toggle. Mechanics copied from the kit
   list so the two sit in one stack and behave identically. */
.info-block{ display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.info-toggle{
  display: flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 2px;
  padding: 14px 22px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .15s ease;
}
.info-toggle:hover{ background: var(--accent-hover); }
.info-toggle::after{
  content: "\FF0B";
  /* the full width plus inks taller than the caps, so pull it back to match */
  font-size: .82em;
  line-height: 1;
  transition: transform .3s ease;
}
.info-block.open .info-toggle::after{ transform: rotate(45deg); }
.info-content{
  max-height: 0;
  opacity: 0;
  width: min(430px, calc(100vw - (var(--edge) * 2)));
  overflow: hidden;
  background: rgba(var(--black-rgb), .74);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-radius: 2px;
  transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}
.info-block.open .info-content{ max-height: 340px; opacity: 1; }
.info-content p{
  margin: 0;
  padding: 20px 24px 22px;
  font-family: var(--font-sans);
  font-size: var(--body-sm);
  line-height: 1.55;
  color: var(--grey-150);
}

/* ---------- home page: the three text bars ----------
   Services, Events and the Equipment List are one shape repeated three
   times: eyebrow and title on the left, a single line of copy, and the
   yellow block on the right. Deliberately no photography. The studio strip
   above already carries the pictures, and three more photo blocks below it
   read as clutter rather than as three distinct offers. */
.info-bars{
  border-top: 1px solid rgba(var(--paper-rgb), .10);
  border-bottom: 1px solid rgba(var(--paper-rgb), .10);
  /* so the bars can be sized against the real content width below */
  container-type: inline-size;
}
.info-bar{
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px var(--edge);
  /* Same height as a studio tile, so the strip and the bars read as one
     system. A tile is a quarter of the width at 4:3, which is 18.75% of the
     content width. cqw measures the container, vw measures the window and
     includes the scrollbar, so cqw is the accurate one and vw is only there
     for anything too old to understand it. min-height rather than height so
     a bar can still grow if the copy wraps on a narrow screen. */
  min-height: 18.75vw;
  min-height: 18.75cqw;
  background: var(--ink);
  transition: background .25s ease;
}
.info-bar + .info-bar{ border-top: 1px solid rgba(var(--paper-rgb), .10); }
.info-bar:hover{ background: var(--grey-900); }
/* The three titles are different lengths, so without a shared column the
   copy beside them starts at three different x positions and the stack
   reads ragged. Reserving the width of the longest title lines all three
   up. The vw cap keeps it from crowding the bar on a narrow desktop. */
/* The big title is what lines up with the button and the copy on the bar's
   centre line. The yellow label floats above it instead of pushing it down,
   so the title, the line of copy and the button share one axis. */
.info-bar-head{ display: block; flex: 0 0 auto; min-width: min(440px, 34vw); position: relative; }
.info-bar-head .eyebrow{ position: absolute; left: 0; bottom: 100%; margin: 0 0 3px var(--optical-nudge); white-space: nowrap; color: var(--accent-soft); }
.info-bar-title{
  display: block;
  font-size: var(--size-1);
  line-height: 1;
  color: var(--paper);
}
.info-bar-line{
  flex: 1;
  color: var(--grey-300);
  font-size: var(--body);
  line-height: 1.5;
}
/* Off black with paper text rather than the yellow block, matching the MENU
   button. Three yellow slabs stacked down the page put too much accent on
   one screen; the accent now belongs to the studio badges and Book. Hover
   inverts to paper on black, same as the menu toggle. */
.bar-cta{
  flex: none;
  background: var(--grey-800);   /* off-black chip: page and bars are pure black now */
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .25s ease, color .25s ease;
}
/* Enfonix titles are wider than the old face, so on big screens the head column
   gets one fixed width (12.3em of the title size) and the three one-line
   descriptions start on the same x instead of drifting with each title. */
@media (min-width: 1100px){
  .info-bar-head{ flex: 0 0 calc(var(--size-1) * 12.3); min-width: 0; }
}
.info-bar:hover .bar-cta{
  transform: translateY(-3px);
  background: var(--paper);
  color: #000;
}

/* ---------- location ----------
   Deliberately not a map. The address is private until a booking is
   confirmed, so this is an area guide plus a Google Maps link that
   searches "Earlsfield, SW18" rather than dropping a pin on the door. */
.location{
  background: var(--ink);
  padding: 92px var(--edge) 100px;
}
.location-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.location-lead .eyebrow{ color: var(--accent-soft); margin-left: var(--optical-nudge); }
.location-lead h2{
  color: var(--paper);
  font-size: var(--size-1);
  line-height: 1.05;
  margin-bottom: 20px;
}
.location-lead h2 span{ color: var(--accent); }
.location-note{
  color: var(--grey-300);
  font-size: var(--body);
  max-width: 420px;
  margin-bottom: 26px;
}
.location-map-link{
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 2px;
  transition: background .2s ease, transform .2s ease;
}
.location-map-link:hover{ background: var(--accent-hover); transform: translateY(-2px); }

.location-guide{ margin: 0; }
.location-row{
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(var(--paper-rgb), .12);
}
.location-row:first-child{ padding-top: 0; }
.location-row:last-child{ border-bottom: none; padding-bottom: 0; }
.location-row dt{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding-top: 2px;
}
.location-row dd{
  margin: 0;
  color: var(--grey-150);
  font-size: var(--body);
  line-height: 1.5;
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--black);
  color: var(--grey-300);
  padding: 64px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer-logo{ height: 18px; opacity: .85; }
.footer-nav{ display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-nav a{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.footer-nav a:hover{ color: var(--accent); }
.footer-contact{ display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: var(--body); color: var(--grey-300); }
.footer-contact a:hover{ color: var(--accent); }
.footer-credit{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  color: var(--grey-600);
  letter-spacing: .04em;
}

/* ---------- floating book button ---------- */
/* Bottom-anchored fixed elements are the fragile ones on phones: iOS Safari
   parks its toolbar at the bottom of the screen and will sit on top of a
   button pinned to bottom: 14px, and during momentum scrolling it can drop
   the layer entirely until the scroll settles. env(safe-area-inset-bottom)
   lifts it clear of the home indicator and toolbar, and its own compositor
   layer keeps it painted while the page scrolls under it. */
.book-fab{
  position: fixed;
  right: var(--edge);
  bottom: calc(var(--edge) + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  will-change: transform;
  height: var(--float-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 2px;
  padding: 0 30px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  transition: transform .2s ease, background .2s ease;
}
.book-fab:hover{ transform: translateY(-2px); background: var(--accent-hover); }

.book-overlay{
  position: fixed; inset: 0;
  background: rgba(var(--black-rgb), .72);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 980;
}
.book-overlay.open{ opacity: 1; pointer-events: auto; }

/* Same palette as the rest of the site: black ground, grey fields,
   accent yellow for the one action. No light panel, no stray colours. */
.book-panel{
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--black);
  color: var(--grey-150);
  color-scheme: dark;            /* so the native select renders dark too */
  z-index: 990;
  padding: 34px 32px 24px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0,0,0,.5);
}
.book-panel.open{ transform: translateX(0); }
.book-panel .eyebrow{ color: var(--accent-soft); }
.book-panel h3{
  font-size: var(--size-2);
  color: var(--paper);
  margin-bottom: 16px;
}
.book-panel-sub{
  font-size: var(--body-sm);
  color: var(--grey-400);
  margin-bottom: 26px;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.book-panel-close{
  position: absolute;
  top: 18px; right: 22px;
  background: none; border: none;
  font-size: var(--icon);
  line-height: 1;
  color: var(--grey-400);
  transition: color .15s ease;
}
.book-panel-close:hover{ color: var(--paper); }

.book-form{ display: flex; flex-direction: column; gap: 11px; }
.book-form label{
  display: flex; flex-direction: column; gap: 5px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.book-form input,
.book-form select,
.book-form textarea{
  font-family: var(--font-sans);
  font-size: var(--body);
  padding: 10px 12px;
  border: none;
  border-radius: 2px;
  background: var(--grey-900);
  color: var(--paper);
  resize: vertical;
  transition: background .15s ease;
}
.book-form ::placeholder{ color: var(--grey-600); }
.book-form input:focus,
.book-form select:focus,
.book-form textarea:focus{
  outline: none;
  background: var(--grey-800);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.book-submit{
  margin-top: 4px;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 2px;
  /* 14/22 is the standalone button padding used by every other yellow block
     that is not an overlay label. It was the only one at 13/14. */
  padding: 14px 22px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-2);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  transition: background .2s;
}
.book-submit:hover{ background: var(--accent-hover); }

/* direct contact, for anyone who would rather not fill in a form */
.book-panel-direct{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--paper-rgb), .12);
}
.book-panel-direct .eyebrow{ margin-bottom: 10px; }
.book-phone{
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-2);
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 7px;
  transition: color .15s ease;
}
.book-phone:hover{ color: var(--accent-soft); }
.book-email{
  display: block;
  font-size: var(--body);
  color: var(--grey-300);
  transition: color .15s ease;
}
.book-email:hover{ color: var(--paper); }

/* ---------- room page: full-bleed gallery (the whole page IS the photo) ---------- */
.room-gallery{
  position: relative;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--black);
}
.gallery-slide{
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.gallery-slide.active{ opacity: 1; }
/* The slow zoom keeps running, but only on the slide you can see.
   PAUSED, not removed: pausing freezes mid-zoom so the outgoing slide
   holds still through the crossfade instead of snapping back to 1x. */
.gallery-slide .photo-fill{
  animation: kenBurns 26s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}
.gallery-slide.active .photo-fill{ animation-play-state: running; }
@keyframes kenBurns{
  from{ transform: scale(1); }
  to{ transform: scale(1.09); }
}
.gallery-slide::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--black-rgb), .2) 0%, rgba(var(--black-rgb), .1) 30%, rgba(var(--black-rgb), .5) 100%);
}
.gallery-dots{
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 9px;
  max-width: min(60vw, 420px);
  flex-wrap: wrap;
  justify-content: center;
}
.gallery-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(var(--paper-rgb), .35);
  border: none;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.gallery-dot.active{ background: var(--accent); transform: scale(1.2); }
.gallery-arrow{
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  background: rgba(var(--black-rgb), .5);
  backdrop-filter: blur(6px);
  color: var(--paper);
  border: none;
  width: 44px; height: 44px;
  font-size: var(--icon);
  border-radius: 2px;
  opacity: .7;
  transition: background .2s ease, opacity .2s ease;
}
.gallery-arrow:hover{ background: rgba(var(--black-rgb), .85); opacity: 1; }
.gallery-prev{ left: 20px; }
.gallery-next{ right: 20px; }
/* one photo in the room = nothing to navigate, so hide the chrome */
.room-gallery.single .gallery-arrow,
.room-gallery.single .gallery-dots{ display: none; }

/* ---------- room page: badge + KIT LIST stack, top-left over the photo ---------- */
.room-badge-stack{
  position: absolute;
  top: calc(var(--edge) + var(--float-h) + 14px);
  left: var(--edge);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  animation: heroRise .8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .1s;
}
.room-gallery-badge{
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 2px;
}
.kit-list-toggle{
  display: flex; align-items: center; gap: 10px;
  background: var(--black);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  padding: 14px 22px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--ui-size);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .15s ease;
}
.kit-list-toggle:hover{ background: var(--grey-900); }
.kit-list-toggle::after{
  content: "＋";
  color: var(--accent);
  /* full-width plus sits taller than the caps, so pull it back to match */
  font-size: .82em;
  line-height: 1;
  transition: transform .3s ease;
}
.kit-list-block.open .kit-list-toggle::after{ transform: rotate(45deg); }

/* ---------- room page: KIT LIST, black glass expanding panel ---------- */
/* Real kit lists are long (Studio 1 runs to 60+ rows), so the panel is a
   capped, scrollable, two-column block rather than the old short list.
   Note the split: the SCROLL element caps its own height, the COLUMNS
   element inside it stays height:auto. Putting column-count on a
   height-constrained element makes it overflow sideways instead of down. */
.kit-list-content{
  --kit-max: calc(100svh - (var(--edge) * 2) - var(--float-h) - 150px);
  max-height: 0;
  opacity: 0;
  width: min(560px, calc(100vw - (var(--edge) * 2)));
  overflow: hidden;
  background: rgba(var(--black-rgb), .74);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-radius: 2px;
  transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}
.kit-list-block.open .kit-list-content{
  max-height: var(--kit-max);
  opacity: 1;
}
.kit-list-scroll{
  max-height: var(--kit-max);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), .5) transparent;
}
.kit-list-scroll::-webkit-scrollbar{ width: 8px; }
.kit-list-scroll::-webkit-scrollbar-track{ background: transparent; }
.kit-list-scroll::-webkit-scrollbar-thumb{
  background: rgba(var(--accent-rgb), .45);
  border-radius: 4px;
}
.kit-list-scroll::-webkit-scrollbar-thumb:hover{ background: rgba(var(--accent-rgb), .7); }

.kit-cols{ column-count: 2; column-gap: 30px; }
.kit-group{ break-inside: avoid; margin-bottom: 20px; }
.kit-group:last-child{ margin-bottom: 0; }
.kit-group h3{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(var(--accent-soft-rgb), .28);
}
.kit-group ul{ list-style: none; margin: 0; padding: 0; }
.kit-group li{
  font-family: var(--font-sans);
  font-size: var(--body-sm);
  line-height: 1.42;
  color: var(--grey-150);
  padding: 3px 0;
}
.kit-group li a{ color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.kit-group li a:hover{ color: var(--accent); }
/* .kit-group li (0,2,0) outranks a bare .kit-sub (0,1,0), so the sub heading
   was quietly rendering as Inter body text. Same specificity trap that hit
   the eyebrow specificity trap. Match the list's own specificity. */
.kit-group .kit-sub{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-400);
  padding: 12px 0 4px;
}
/* items belonging to a sub-heading step in, so "500 Series" reads as a
   group rather than a divider */
.kit-group ul ul{
  padding-left: 12px;
  border-left: 1px solid rgba(var(--paper-rgb), .14);
  margin-left: 1px;
}
.kit-note{ color: var(--grey-400); font-style: italic; padding-top: 6px; }

/* ---------- the shared Gear Well list: same panel, wider, three columns ----------
   A room list runs to 60 rows and reads fine at 560px across two columns.
   The shared list runs to roughly 230, which at that width becomes a very
   long thin scroll. This panel also sits in normal page flow rather than
   floating over a full-bleed photo, so it can take the extra width.
   `columns: 300px 3` is a max of three columns that will never squeeze
   below ~300px, so it steps down to two and then one on its own without
   another breakpoint. */
.kit-list-block.wide .kit-list-content{
  --kit-max: min(70svh, 760px);
  width: min(1080px, calc(100vw - (var(--edge) * 2)));
  /* the room panels are glass because they float over a photo; this one
     sits on flat page black, where a blur has nothing to blur, so it is a
     solid panel lifted one step off the background instead */
  background: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* the shared list is the only one deep enough to need a second heading
   level. The banner spans every column so each major section balances
   beneath its own header rather than all 230 rows flowing as one run. */
.kit-section-head{
  column-span: all;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 30px 0 18px;
  padding-bottom: 9px;
  border-bottom: 2px solid rgba(var(--accent-rgb), .5);
}
.kit-cols > .kit-section-head:first-child{ margin-top: 0; }
/* kit-group normally refuses to split so a category never straddles a
   column break. Two groups here are long enough that keeping them whole
   parks 700px of white space next to them, so those opt back in to
   flowing. break-after on the heading keeps it from stranding alone at
   the foot of a column. */
.kit-group.flow{ break-inside: auto; }
.kit-group.flow h3{ break-after: avoid; }
.kit-list-block.wide .kit-cols{ columns: 300px 3; column-gap: 30px; }

/* Equipment page: the kit list is the page, so it is always open and sits in
   normal flow (no toggle, no inner scroll box) and the page itself scrolls. */
.kit-list-block.always{ width: 100%; padding-bottom: calc(var(--edge) * 2 + var(--float-h)); }
.kit-list-block.always .kit-list-content{ max-height: none; opacity: 1; overflow: visible; width: 100%; }
.kit-list-block.always .kit-list-scroll{ max-height: none; overflow: visible; padding: 8px 0 0; }

/* ---------- the Gear Well: grid page + lightbox ---------- */
.gw-head{
  padding: calc(var(--edge) + var(--float-h) + 34px) var(--edge) 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.gw-head p{ color: var(--grey-400); font-size: var(--body); }

/* No gaps on purpose: it reads as one contact sheet rather than a set of
   cards. Square cells crop the photos, which is fine because these are all
   close-ups, and the full frame is one tap away in the lightbox. */
.gw-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0;
  padding-bottom: calc(var(--edge) * 2 + var(--float-h));
}
.gw-cell{
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--ink);
  cursor: zoom-in;
}
/* Deliberately no hover state on the grid tiles. 59 of them animating is
   what caused the jank, and the photographs are the content here: the
   zoom-in cursor is affordance enough. */
.gw-cell:focus-visible{ outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset: 0;
  z-index: 9500;               /* above the grain overlay */
  background: rgba(var(--black-rgb), .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.lightbox.open{ opacity: 1; pointer-events: auto; }
.lightbox{ cursor: zoom-out; }
.lb-arrow{ cursor: pointer; }
.lb-stage{
  margin: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 68px;
}
.lb-stage img{
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;         /* whole frame, never cropped */
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.ready .lb-stage img{ opacity: 1; }
.lb-close, .lb-arrow{
  position: absolute;
  z-index: 2;
  background: rgba(var(--black-rgb), .55);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  font-size: var(--icon);
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.lb-close{ top: var(--edge); right: var(--edge); width: 46px; height: 46px; }
.lb-arrow{ top: 50%; transform: translateY(-50%); width: 46px; height: 66px; }
.lb-prev{ left: var(--edge); }
.lb-next{ right: var(--edge); }
.lb-close:hover, .lb-arrow:hover{ background: var(--accent); color: var(--black); }
.lb-count{
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-400);
}


/* ---------- services and events pages ----------
   Same furniture as the equipment page: a yellow name block under the
   floating boxes, then flat content on page black. No cards, no rounded
   corners, hairline rules only, so these read as part of the same site. */
.page-head{
  padding: calc(var(--edge) + var(--float-h) + 34px) var(--edge) 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.page-body{ padding: 0 var(--edge) 110px; }
.page-inner{ max-width: var(--max); margin: 0 auto; }
.page-lede{
  color: var(--grey-300);
  font-size: var(--body);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 0 54px;
}
.page-section{ margin-top: 70px; }
.page-section:first-of-type{ margin-top: 0; }
.page-section > h2{
  color: var(--paper);
  font-size: var(--size-1);
  margin: 0 0 22px calc(-0.074em + 0.8px);
}

/* a labelled row list, the same shape as the Find Us guide */
.spec-list{ border-top: 1px solid rgba(var(--paper-rgb), .12); margin: 0; }
.spec-row{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(var(--paper-rgb), .12);
  margin: 0;
}
.spec-row dt{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.spec-row dd{
  margin: 0;
  color: var(--grey-150);
  font-size: var(--body-sm);
  line-height: 1.55;
}

/* rates. Wide content scrolls inside its own box so the page never does. */
.rate-wrap{ overflow-x: auto; }
.rate-table{ width: 100%; border-collapse: collapse; min-width: 520px; }
.rate-table th,
.rate-table td{
  text-align: left;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid rgba(var(--paper-rgb), .12);
  vertical-align: top;
}
.rate-table th{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border-bottom-color: rgba(var(--accent-soft-rgb), .32);
}
.rate-table td{
  font-family: var(--font-sans);
  font-size: var(--body-sm);
  line-height: 1.5;
  color: var(--grey-150);
}
.rate-table td.rate{ color: var(--paper); white-space: nowrap; }
.rate-note{
  margin-top: 20px;
  color: var(--grey-400);
  font-size: var(--body-sm);
  font-style: italic;
}
.rate-note + .rate-note{ margin-top: 8px; }
.rate-lede{ margin-bottom: 26px; }

/* the wide rate grid: two header tiers, so a group heading sits over the
   columns it owns instead of repeating "extra day" three times with no
   context. Cells are centred because they are all short money values. */
.rate-table-wide th,
.rate-table-wide td{ padding: 14px 16px; text-align: center; }
.rate-table-wide thead th.grp{
  text-align: center;
  color: var(--accent);
  border-bottom: 1px solid rgba(var(--accent-rgb), .3);
}
.rate-table-wide thead .subhead th{
  font-size: var(--size-3);
  letter-spacing: .1em;
  color: var(--accent-soft);
  vertical-align: bottom;
}
.rate-table-wide thead .subhead th span{
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--body-sm);
  letter-spacing: 0;
  text-transform: none;
  color: var(--grey-400);
}
.rate-table-wide tbody th{
  text-align: left;
  padding-left: 0;
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rate-table-wide tbody tr:hover{ background: rgba(var(--paper-rgb), .03); }
.rate-sub{
  display: block;
  margin-top: 3px;
  font-size: var(--body-sm);
  color: var(--grey-400);
  white-space: nowrap;
}
.rate-table td.soft{ color: var(--grey-400); }

/* the 1px gap plus a lit background is how the seams are drawn everywhere
   else on the site, so the event blocks use it too rather than borders */
.event-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: rgba(var(--paper-rgb), .12);
  border: 1px solid rgba(var(--paper-rgb), .12);
}
.event-card{ background: var(--black); padding: 28px 26px 32px; }
.event-card h3{
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 10px;
}
.event-card p{ margin: 0; color: var(--grey-150); font-size: var(--body-sm); line-height: 1.55; }
/* the diary is rendered from content.js: either a grid of events or this */
.diary-empty{
  border: 1px solid rgba(var(--paper-rgb), .12);
  background: var(--ink);
  padding: 44px 30px;
  text-align: center;
}
.diary-empty p{ margin: 0; color: var(--grey-300); font-size: var(--body); }
.diary-empty p + p{ margin-top: 10px; color: var(--grey-400); font-size: var(--body-sm); }
/* .event-card p is (0,2,0), so match it rather than reaching for !important */
.event-card .event-date{
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: var(--body-sm);
  color: var(--paper);
}
.event-link{
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--size-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(var(--accent-soft-rgb), .4);
  padding-bottom: 3px;
}
.event-link:hover{ color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 860px){
  :root{ --edge: 14px; --float-h: 52px; --logo-h: 13px; }
  /* two up on a phone keeps the strip reading as a set instead of four
     full-width photos the visitor has to scroll past one at a time */
  .studio-grid{ grid-template-columns: repeat(2, 1fr); }
  .studio-badge{ left: 10px; bottom: 10px; padding: 9px 12px; }
  /* the yellow block cannot sit beside the title on a phone: SERVICES at
     32px plus SERVICES AND RATES needs 445px of line in a 362px viewport.
     Stacked, left aligned, same order as the desktop reading. */
  .info-bar{ flex-direction: column; align-items: flex-start; gap: 16px; padding: 30px var(--edge) 28px; min-height: 0; }
  .info-bar-head .eyebrow{ position: static; display: block; margin: 0 0 8px var(--optical-nudge); }
  .studios-box-drop{ width: 228px; }
  .page-head{ padding-top: calc(var(--edge) + var(--float-h) + 24px); }
  .page-body{ padding-bottom: calc(var(--edge) + var(--float-h) + 60px); }
  .page-section{ margin-top: 52px; }
  .spec-row{ grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }

  /* ---- rates on a phone ----
     Seven money columns cannot be read sideways on a 390px screen, and a
     horizontally scrolling table is the least app-like thing there is. The
     table stops being a table below 860px and becomes one card per service,
     each row a label on the left and its price on the right. The column
     headings live in data-label, so the markup stays a real table for
     desktop and for screen readers. */
  .rate-wrap{ overflow-x: visible; }
  .rate-table,
  .rate-table tbody,
  .rate-table tr,
  .rate-table th,
  .rate-table td{ display: block; }
  .rate-table{ min-width: 0; }
  .rate-table thead{ display: none; }
  .rate-table tbody tr{
    border: 1px solid rgba(var(--paper-rgb), .12);
    background: var(--ink);
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .rate-table-wide tbody th{
    padding: 14px 16px;
    background: rgba(var(--accent-rgb), .12);
    border-bottom: 1px solid rgba(var(--accent-rgb), .22);
    color: var(--accent-soft);
    white-space: normal;
  }
  .rate-table-wide td{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(var(--paper-rgb), .08);
  }
  .rate-table-wide td::before{
    content: attr(data-label);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: var(--size-3);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--grey-400);
    text-align: left;
  }
  /* a service with no block or residency rate simply does not show the row */
  .rate-table-wide td:empty{ display: none; }
  .rate-table-wide tr td:last-child{ border-bottom: 0; }
  .rate-v{ text-align: right; }
  .rate-sub{ display: block; margin-left: 0; margin-top: 2px; }

  /* ---- no scrollbars on a phone ----
     Damon: people know how to scroll on a phone. The thin gold track was
     desktop affordance leaking onto touch. */
  .kit-list-scroll,
  .rate-wrap,
  .gw-grid{ scrollbar-width: none; -ms-overflow-style: none; }
  .kit-list-scroll::-webkit-scrollbar,
  .rate-wrap::-webkit-scrollbar{ width: 0; height: 0; display: none; }
  .info-toggle{ padding: 11px 16px; }
  .info-content{ width: calc(100vw - (var(--edge) * 2)); }
  .info-content p{ padding: 16px 18px 18px; }
  .logo-box{ padding: 0 14px; }
  .studios-box{ width: 150px; }
  .studios-box-toggle{ padding: 0 14px; }
  .studios-box-tab{ padding: 14px; }
  .book-fab{ padding: 0 20px; }
  .room-badge-stack{ top: calc(var(--edge) + var(--float-h) + 10px); right: var(--edge); }
  .room-gallery-badge{ padding: 11px 16px; }
  .kit-list-toggle{ padding: 11px 16px; }
  .kit-list-content{
    width: calc(100vw - (var(--edge) * 2));
    /* full-width on mobile, so it must stop above the Book button too */
    --kit-max: calc(100svh - (var(--edge) * 3) - (var(--float-h) * 2) - 128px);
  }
  .kit-list-scroll{ padding: 18px 18px 20px; }
  .kit-cols{ column-count: 1; }
  .kit-list-block.wide .kit-cols{ columns: auto 1; }
  .kit-group li{ padding: 4px 0; }
  .gallery-dots{ bottom: 20px; max-width: 70vw; }

  /* ---- room page on phones ----
     A 3:2 photo forced into a 0.46 portrait viewport shows a 31% centre
     slice; 69% of every frame is thrown away and a wide room shot reads as
     one rack. Nothing you can shoot survives that, so on phones the page
     stops trying to fill the screen: 4:3 bands (89% of each frame kept)
     stacked in a scroll, with the badge and kit list pinned.
     Desktop is untouched, 1440x900 against a 3:2 photo only loses 6%. */
  .room-gallery{
    height: auto;
    padding-bottom: calc(var(--edge) + var(--float-h) + 28px);
  }
  .gallery-slide{
    position: relative;
    inset: auto;
    opacity: 1;
    aspect-ratio: 4 / 3;
    transition: none;
  }
  .gallery-slide + .gallery-slide{ margin-top: 3px; }
  /* a portrait source in a 4:3 band loses half its height, so let it keep
     its own shape; the scroll rhythm survives one odd block fine */
  .gallery-slide.portrait{ aspect-ratio: 3 / 4; }

  /* A room with one photo has nothing to scroll, so a lone band left most
     of the screen empty. Centre it instead: reads as a deliberate plate
     rather than a page that failed to load. Applies to studios 2 to 4
     until their photo sets arrive, then they scroll like Studio 1. */
  .room-gallery.single{
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-bottom: 0;
  }
  .room-gallery.single .gallery-slide{ width: 100%; }
  .gallery-slide .photo-fill{ animation: none; }  /* no zoom on ten at once */
  .gallery-slide::after{ display: none; }         /* no repeated vignette */
  .gallery-arrow, .gallery-dots{ display: none; } /* scrolling replaces them */

  /* pinned: the room name and KIT LIST stay reachable all the way down */
  .room-badge-stack{
    position: fixed;
    top: calc(var(--edge) + var(--float-h) + 10px);
    left: var(--edge);
    z-index: 940;
    animation: none;
  }

  .gallery-arrow{ width: 36px; height: 36px; }
  .gallery-prev{ left: 12px; }
  .gallery-next{ right: 12px; }

  /* hero: stop the glass box crowding narrow screens */
  .hero-content{ padding: 0 16px; }
  .hero-glass{
    padding: 30px 26px;
    max-width: calc(100vw - 32px);
  }
  .hero-wordmark{ width: min(420px, 78vw); margin-bottom: 14px; }
  .hero-scroll span{ height: 32px; }

  /* about: tighten up the section on phones, stays centred */
  .intro{ padding: 34px var(--edge) 38px; }
  .intro .eyebrow{ margin-bottom: 18px; }
  .intro-copy{ line-height: 1.5; }
  .about-line + .about-line{ margin-top: 14px; }

  .section-head{ padding: 0 var(--edge); margin-bottom: 32px; }
  .gw-grid{ grid-template-columns: repeat(3, 1fr); }
  .gw-head{ padding-top: calc(var(--edge) + var(--float-h) + 24px); }
  .lb-stage{ padding: 64px 12px 72px; }
  .lb-close{ width: 40px; height: 40px; }
  .lb-arrow{ width: 38px; height: 56px; }

  .location{ padding: 56px var(--edge) 64px; }
  .location-inner{ grid-template-columns: 1fr; gap: 34px; }
  .location-note{ max-width: none; margin-bottom: 22px; }
  .location-row{ grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .location-row dt{ padding-top: 0; }

  .site-footer{ padding: 48px 24px 28px; gap: 22px; }
  .footer-nav{ gap: 18px; row-gap: 10px; }

  .book-panel{ padding: 40px 22px 24px; }
}

@media (max-width: 420px){
  .studios-box{ width: 130px; }
  .hero-glass{ padding: 26px 20px; max-width: calc(100vw - 24px); }
  .hero-wordmark{ width: 74vw; }
  .book-fab{ padding: 0 16px; }
  .book-fab .book-fab-label{ letter-spacing: .06em; }
}

/* touch devices: no hover-only affordances, keep tap targets comfortable */
@media (hover: none) and (pointer: coarse){
  .studio-card-link:hover .photo-fill{ transform: none; }
  .studio-card-link:hover .studio-photo::after{ background: rgba(var(--black-rgb), .10); }
  .kit-list-toggle, .book-fab, .studios-box-toggle{ -webkit-tap-highlight-color: transparent; }
}


/* ===========================================================
   QUICK CONTACT ICONS (desktop, under the hero logo) and
   QUICK NAV (phones, fixed at the base of the page).
   Same five links in both places: phone, mail, Instagram, map,
   studio spec sheet. The nav is homepage-only (body.has-quicknav).
   Off-black with off-white glyphs, yellow only on hover/press, in
   line with the rest of the buttons.
   =========================================================== */
.quick-icons{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(var(--paper-rgb), .14);
  width: 100%;
}
.quick-icon{
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--paper-rgb), .04);
  color: var(--paper);
  border-radius: 2px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.quick-icon svg{ width: 20px; height: 20px; fill: currentColor; }
.quick-icon:hover, .quick-icon:focus-visible{ background: var(--accent); color: var(--black); transform: translateY(-2px); }

.quick-nav{ display: none; }

@media (max-width: 860px){
  .quick-icons{ display: none; }
  body.has-quicknav{ padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .quick-nav{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 940;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(var(--black-rgb), .94);
    border-top: 1px solid rgba(var(--paper-rgb), .14);
  }
  .quick-nav a{
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px;
    height: 60px;
    color: var(--paper);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
  }
  .quick-nav svg{ width: 20px; height: 20px; fill: currentColor; }
  .quick-nav a:active{ color: var(--accent); }
  /* the Book button rides above the bar instead of under it */
  body.has-quicknav .book-fab{ bottom: calc(60px + var(--edge) + env(safe-area-inset-bottom, 0px)); }
}
