/* ============================
   Nexhive — Design tokens (futuristic HUD refresh)
============================ */
:root {
  /* Base shifted from warm charcoal/brown to a cool near-black "deep
     space" surface — the gold accent (matched to the logo, unchanged)
     now reads as the one warm signal against a cold, technical field
     instead of blending into an all-warm palette. A second accent,
     --accent-tech (electric cyan), is new: gold stays the brand/CTA
     color, cyan is reserved for interface/system chrome — grid lines,
     focus states, corner brackets, data labels — so the two never
     compete for the same job. */
  --ink: #eef2f8;
  --ink-soft: #8891a3;
  --paper: #08090d;
  --paper-alt: #0e1017;
  --surface: #12141d;
  --line: #232837;
  --line-soft: #1a1e29;
  --accent: #f2b705;
  --accent-dark: #d99a10;
  --accent-soft: #3a2f0c;
  --accent-ink: #f6d98a;
  --accent-2: #e0954a;
  --accent-2-soft: #3a2818;
  --accent-tech: #4fd8ff;
  --accent-tech-soft: #0e2b38;
  --success: #3ecf8e;

  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Sharper, more clipped-corner than round — panels reach for the corner
     cut (see --cut-sm/--cut-lg clip-paths below) rather than a big radius,
     so "rounded" only remains for small controls like inputs and pills. */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0,0,0,.3);
  --shadow-md: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 36px 70px -24px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 12px 28px -8px rgba(242, 183, 5, 0.4);
  --shadow-glow-tech: 0 0 0 1px rgba(79, 216, 255, .25), 0 12px 28px -10px rgba(79, 216, 255, .3);
  --container-w: 1180px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
/* Some browsers render a <select>'s dropdown/multi-select option list using
   OS-native colors instead of the page's, ignoring the select's own
   background/color — pin every option explicitly so it never renders as
   unreadable light-on-light regardless of the browser's default. */
select option { background-color: var(--paper); color: var(--ink); }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-tech);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex: none;
  box-shadow: 0 0 6px rgba(242,183,5,.6);
}

/* HUD backdrop, fixed behind everything — a faint blueprint/circuit grid
   plus two cold glow blobs, replacing the old warm gradient-mesh. Kept
   very low-contrast on purpose: it should read as texture on a dark
   panel, not as a pattern anyone consciously notices. */
.hex-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(79,216,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,216,255,.05) 1px, transparent 1px),
    radial-gradient(650px circle at 10% -5%, rgba(242,183,5,.08), transparent 55%),
    radial-gradient(600px circle at 96% 10%, rgba(79,216,255,.07), transparent 55%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  background-color: var(--paper);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.4) 60%, transparent 100%);
}
/* One restrained "signal" sweep — a near-invisible band of light drifting
   slowly down the fixed backdrop, the one thing that makes the page read
   as quietly alive rather than a static image. Pure background-position
   animation (GPU-composited, no layout/paint cost), so it's cheap enough
   to leave running for the life of the page. */
.hex-noise::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(79,216,255,.05) 50%, transparent 100%);
  background-size: 100% 260%;
  animation: hexSignalSweep 16s linear infinite;
}
@keyframes hexSignalSweep {
  0% { background-position: 0 -160%; }
  100% { background-position: 0 260%; }
}
@media (prefers-reduced-motion: reduce) {
  .hex-noise::after { display: none; }
}

/* ============================
   Buttons
============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  /* Clipped opposite corners instead of a pill — the one shape swap that
     does the most to shift every button on the site from "friendly SaaS"
     to "console control" without touching layout. */
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .2s, color .2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #10130a;
  box-shadow: 0 6px 16px -8px rgba(242,183,5,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .65s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::before { left: 130%; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent-tech); color: var(--accent-tech); transform: translateY(-2px); box-shadow: var(--shadow-glow-tech); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent-tech); box-shadow: var(--shadow-glow-tech); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ============================
   Header
============================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 9, 13, .72);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(8, 9, 13, .92);
  box-shadow: 0 1px 0 rgba(79,216,255,.15), var(--shadow-sm);
}

.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  transform: scaleX(0); transform-origin: left; z-index: 60;
  transition: transform .1s linear;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
/* Public location selector — only rendered once a second branch is Active,
   so most visitors never see it. */
.location-select { position: relative; margin-right: auto; margin-left: 22px; }
.location-select select {
  appearance: none; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 28px 8px 14px; font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer;
}
.location-select select:hover, .location-select select:focus { border-color: var(--accent-tech); outline: none; }
.location-select-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
@media (max-width: 980px) { .location-select { margin-left: 12px; } }
@media (max-width: 640px) { .location-select select { font-size: 12px; padding: 7px 24px 7px 11px; } }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-hl { color: var(--accent); }
.brand-mark { width: 28px; height: 32px; color: var(--ink); flex: none; }
.brand-hex { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.6; }
/* An uploaded logo isn't forced into the hex mark's small fixed box — it
   gets a taller cap and sizes its own width from its natural aspect ratio,
   so a wide logo and a square one both come out looking right. */
img.brand-mark { width: auto; height: 44px; max-width: 200px; object-fit: contain; border-radius: 6px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color .2s; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent-tech); border-radius: 2px;
  box-shadow: 0 0 8px rgba(79,216,255,.7);
  transition: right .25s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============================
   Hero
============================ */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
  /* Driven by motion.js on desktop mousemove — the two glow layers below
     read at different depths off the same two numbers, which is what
     actually sells "spatial" rather than a single flat backdrop shifting
     as one unit. Left at 0 gives every non-JS/reduced-motion visitor the
     identical static layout that was already here. */
  --px: 0;
  --py: 0;
}
/* Briefly lifted while the entrance logo is mid-flight from center-screen
   to its resting spot, so the oversized icon isn't clipped; restored the
   moment it lands. */
.hero.hero-intro-active { overflow: visible; }
.hero-intro-active .hero-wordmark-icon { position: relative; z-index: 5; }
.hero::before {
  content: "";
  position: absolute; top: -220px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(242,183,5,.10), rgba(224,149,74,.05) 45%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  /* Nearer layer — moves further per unit of cursor motion. */
  transform: translate(calc(var(--px) * 22px), calc(var(--py) * 16px));
  transition: transform .6s var(--ease);
}
.hero::after {
  content: "";
  position: absolute; bottom: -260px; left: -200px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(79,216,255,.07), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  /* Farther layer — drifts the opposite way and less far, so the two
     glows separate in depth instead of sliding together as one card. */
  transform: translate(calc(var(--px) * -12px), calc(var(--py) * -9px));
  transition: transform .8s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { transition: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
/* Grid items default to min-width:auto, which refuses to shrink a column
   below its content's intrinsic (nowrap) width — this is what forced the
   whole copy column wider than the viewport on narrow phones. */
.hero-grid > * { min-width: 0; }
.hero-visual {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  /* The copy column is much taller than the logo block (long subheading),
     so centering this column within that full row height left a big empty
     gap above the logo — anchoring to the top of the row instead keeps it
     level with the eyebrow/heading up top, where the copy column starts. */
  align-self: start;
  margin-top: 12px;
}
.hero-wordmark { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; }
.hero-icon-wrap { position: relative; display: grid; place-items: center; margin-bottom: 28px; }
/* Soft pulsing light behind the icon — the icon itself is just the yellow
   mark now (transparent PNG, no background plate), so this is what gives it
   a glowing, "lit from within" feel instead of sitting flat on the page. */
.hero-logo-glow {
  position: absolute;
  width: clamp(160px, 19vw, 273px);
  height: clamp(160px, 19vw, 273px);
  background: radial-gradient(circle, rgba(242, 183, 5, .55), rgba(224, 149, 74, .22) 45%, transparent 72%);
  filter: blur(22px);
  animation: heroGlowPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
/* While motion.js is running the choreographed entrance, it owns opacity/
   scale directly — pausing the CSS loop here avoids the two fighting over
   the same properties. Re-enabled the moment the entrance finishes. */
.hero-logo-glow.js-intro { animation: none; opacity: 0; }
.hero-lines.js-intro .hero-line { animation: none; opacity: 0; transform: translateX(-52px); }
.hero-wordmark-icon {
  position: relative;
  z-index: 1;
  width: clamp(127px, 14vw, 200px); height: auto; object-fit: contain;
  color: var(--accent);
  filter: drop-shadow(0 8px 30px rgba(242, 183, 5, .4)) brightness(1.08) saturate(1.12);
  animation: heroIconFloat 6s ease-in-out infinite;
  transform-origin: 50% 60%;
}
@keyframes heroIconFloat {
  0% { transform: translateY(0) rotate(0deg) scale(1); filter: drop-shadow(0 8px 30px rgba(242, 183, 5, .4)) brightness(1.08) saturate(1.12); }
  25% { transform: translateY(-9px) rotate(-3deg) scale(1.015); filter: drop-shadow(0 16px 34px rgba(242, 183, 5, .5)) brightness(1.1) saturate(1.12); }
  50% { transform: translateY(-14px) rotate(0deg) scale(1.03); filter: drop-shadow(0 22px 38px rgba(242, 183, 5, .6)) brightness(1.12) saturate(1.15); }
  75% { transform: translateY(-9px) rotate(3deg) scale(1.015); filter: drop-shadow(0 16px 34px rgba(242, 183, 5, .5)) brightness(1.1) saturate(1.12); }
  100% { transform: translateY(0) rotate(0deg) scale(1); filter: drop-shadow(0 8px 30px rgba(242, 183, 5, .4)) brightness(1.08) saturate(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark-icon { animation: none; }
  .hero-logo-glow { animation: none; opacity: .8; }
}
.hero-wordmark-icon .brand-hex { fill: rgba(242, 183, 5, .1); stroke: var(--accent); stroke-width: 1.6; }
.hero-wordmark-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 68px);
  letter-spacing: .05em;
  color: var(--ink);
  margin: 0 0 18px;
}
.hero-wordmark-text span { color: var(--accent); }
.hero-wordmark-tag {
  display: flex; align-items: center; justify-content: center; gap: clamp(6px, 2.2vw, 12px);
  font-size: clamp(9.5px, 3vw, 16px); font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase;
  /* Brighter than plain --ink-soft — this sits right under a near-white
     wordmark and a solid-gold "HIVE", so the muted default read as a dim
     smudge under two much brighter elements. */
  color: var(--ink-soft);
  color: color-mix(in srgb, var(--ink-soft) 35%, var(--ink) 65%);
  margin: 0;
}
.hero-wordmark-tag i { font-style: normal; color: var(--accent); font-size: 9px; }
/* Fills the leftover height below the wordmark on wide screens (see the
   comment in _hero.html) — a thin guideline descending from the mark with
   a few faint hex outlines drifting along it, each on its own slow,
   independent loop so it reads as quietly alive rather than looping in
   an obviously repeating way. Desktop only; mobile stacks the two
   columns, so there's no leftover gap there to fill in the first place. */
.hero-visual-deco { display: none; }
@media (min-width: 981px) {
  .hero-visual-deco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 48px;
    color: var(--accent);
  }
  .hero-deco-line {
    width: 1px; height: 64px;
    background: linear-gradient(var(--line), transparent);
  }
  .hero-deco-hex { width: 22px; height: auto; opacity: .35; }
  .hero-deco-hex-1 { animation: heroDecoFloat 9s ease-in-out infinite; }
  .hero-deco-hex-2 { width: 15px; opacity: .22; animation: heroDecoFloat 12s ease-in-out infinite -3s; }
  .hero-deco-hex-3 { width: 28px; opacity: .16; animation: heroDecoFloat 15s ease-in-out infinite -7s; }
}
@keyframes heroDecoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-deco-hex { animation: none; }
}
.hero-copy h1 {
  /* Tuned against the actual rendered width of the longest line ("Conquer
     With Courage") at each breakpoint, measured with canvas.measureText —
     not a rough character-count guess — so nowrap genuinely never breaks,
     down to a 320px viewport, instead of just usually fitting. */
  font-size: clamp(18px, 6.5vw, 48px);
  line-height: 1.22;
  margin-bottom: .55em;
}
/* Each line of the heading (one per newline typed in the admin textarea)
   slides in from the left and settles into place, one after another —
   staggered via animation-delay per nth line instead of a JS timeline, so
   it always plays on load with no scroll-trigger dependency (the hero is
   already in view the moment the page loads). */
.hero-line {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-52px);
  animation: heroLineIn .8s cubic-bezier(.16,.9,.28,1) forwards;
}
.hero-line:nth-child(1) { animation-delay: .1s; }
.hero-line:nth-child(2) { animation-delay: .32s; }
.hero-line:nth-child(3) { animation-delay: .54s; }
.hero-line:nth-child(4) { animation-delay: .76s; }
.hero-line:nth-child(5) { animation-delay: .98s; }
@keyframes heroLineIn {
  from { opacity: 0; transform: translateX(-52px); }
  to { opacity: 1; transform: translateX(0); }
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  /* Two independent loops on two different properties — the gradient
     sweep and a slow glow breathe — so the highlighted word never quite
     sits still, without either one being showy on its own. */
  animation: heroEmShimmer 5s ease-in-out infinite, heroEmGlow 4s ease-in-out infinite;
}
@keyframes heroEmShimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
@keyframes heroEmGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(242, 183, 5, 0)); }
  50% { filter: drop-shadow(0 0 9px rgba(242, 183, 5, .45)); }
}
/* The closing word of each line (Intent / Purpose / Courage) gets a
   highlighter-marker stroke instead of a badge/pill — a loose, hand-drawn
   swipe of colour that draws in behind the word (never a boxed background),
   so it reads as emphasis on the word itself rather than a UI chip stuck
   onto the sentence. The stroke is an absolutely-positioned pseudo-element,
   so it never adds real inline width to .hero-line — it can't reopen the
   nowrap overflow budget that took real tuning to get right. */
.hero-line-chip {
  position: relative;
  z-index: 0;
  display: inline-block;
}
.hero-line-chip::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.05em -0.16em -0.02em;
  background: linear-gradient(100deg, var(--accent-2), var(--accent), var(--accent-2));
  background-size: 220% 100%;
  opacity: .8;
  /* Uneven corners so the stroke reads as a loose marker swipe, not a
     precise, machine-drawn rectangle. */
  border-radius: 0.6em 0.18em 0.55em 0.2em / 0.9em 0.3em 0.85em 0.35em;
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left center;
  animation: heroChipDraw .55s cubic-bezier(.2,.9,.3,1) forwards, heroChipShimmer 6s ease-in-out infinite;
}
.hero-line:nth-child(1) .hero-line-chip::before { animation-delay: .95s, 1.5s; }
.hero-line:nth-child(2) .hero-line-chip::before { animation-delay: 1.17s, 1.7s; }
.hero-line:nth-child(3) .hero-line-chip::before { animation-delay: 1.39s, 1.9s; }
@keyframes heroChipDraw {
  to { transform: scaleX(1) rotate(-1deg); }
}
@keyframes heroChipShimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 em { animation: none; }
  .hero-line { animation: none; opacity: 1; transform: none; }
  .hero-line-chip::before { animation: none; transform: scaleX(1) rotate(-1deg); }
}
.hero-copy .lede {
  font-size: 18px;
  max-width: 65ch;
  color: var(--ink-soft);
  /* Same reasoning as .hero-copy h1 above — a longer subheading typed as
     several paragraphs (blank line between them) should keep those breaks
     instead of running together into one block. */
  white-space: pre-line;
}
/* The subheading is typed as several paragraphs — shown flat, that reads as
   a wall of theory under a punchy headline. Splitting it gives the opening
   line the weight of a statement (big, bright, quote-marked) and demotes
   the rest to quiet supporting detail along a thin accent rule, the way an
   editorial pull-quote sits above its footnote rather than blending into
   it. */
.hero-copy .lede-hook {
  position: relative;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  max-width: 30ch;
  padding-left: 26px;
  margin-bottom: 24px;
}
.hero-copy .lede-hook::before {
  content: "\201C";
  position: absolute;
  left: -6px;
  top: -0.28em;
  font-family: var(--font-display);
  font-size: 2.6em;
  line-height: 1;
  color: var(--accent);
  opacity: .55;
}
.lede-detail {
  position: relative;
  padding-left: 18px;
  max-width: 52ch;
  margin-bottom: 6px;
}
.lede-detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: .4;
}
.lede-detail p {
  font-size: 14.5px;
  line-height: 1.7;
  /* Brighter than plain --ink-soft — still reads as the supporting voice
     under the hook line (smaller size does that job), but no longer dim
     enough to look muted or unfinished. */
  color: var(--ink-soft);
  color: color-mix(in srgb, var(--ink-soft) 40%, var(--ink) 60%);
  opacity: 1;
  margin-bottom: .85em;
}
.lede-detail p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.hero-meta span { font-size: 13px; color: var(--ink-soft); }

/* Confetti burst on successful enquiry/booking submission */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 400; }
.confetti-piece {
  position: fixed; width: 8px; height: 8px; border-radius: 2px;
  transform: translate(-50%, -50%);
  animation: confettiBurst .85s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes confettiBurst {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.4); opacity: 0; }
}

/* Location tag — moved here from the top of the copy column (it was
   competing with the heading for the first thing a visitor reads). Reads
   more like a map pin/stamp than a status badge, sitting quietly under the
   wordmark instead of announcing itself up top. */
.hero-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 56px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(242, 183, 5, .45);
  background: rgba(242, 183, 5, .07);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-location-pin {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex: none;
  animation: heroPinBob 2.6s ease-in-out infinite;
}
@keyframes heroPinBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-location-pin { animation: none; }
}

/* ============================
   Marquee strip
============================ */
.strip {
  padding: 22px 0;
  overflow: hidden;
}
.strip-track { display: flex; gap: 14px; white-space: nowrap; animation: marquee 32s linear infinite; width: max-content; }
.strip-track span {
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 4px 16px -9px rgba(0, 0, 0, .5);
}
.strip-track span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================
   Section basics
============================ */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px; height: 3px; margin-top: 16px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease) .25s;
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-head.reveal.in h2::after { transform: scaleX(1); }
/* Editorial wipe on top of the plain fade — the heading uncovers
   left-to-right instead of just fading up, reusing the exact same
   .reveal/.in toggle main.js already flips on scroll, no extra JS. */
.section-head.reveal h2 { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease); }
.section-head.reveal.in h2 { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .section-head.reveal h2 { clip-path: none; transition: none; }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
/* A few elements (hero halves, space cards, the lead gallery photo) are
   ALSO driven by GSAP ScrollTrigger further down this file's JS, which sets
   the same opacity/transform every scroll frame — leaving this CSS
   transition active on them made it visibly fight that, easing toward a
   target that had already moved, which read as stutter while scrolling.
   GSAP owns their motion entirely on desktop; this only ever mattered above
   the breakpoint where that scroll choreography is active in the first place. */
@media (min-width: 781px) {
  .hero-copy.reveal, .hero-visual.reveal,
  .spaces-grid .space-card.reveal,
  .gallery-photo--cinematic img,
  .cta-band.reveal {
    transition: none;
  }
}
/* Directional variants — for standalone/paired elements (hero halves, a
   contact-page split, section intros), not grids, so it reads as one
   deliberate sweep rather than a chaotic pile of motion. */
.reveal-left { transform: translateX(-46px); }
.reveal-left.in { transform: translateX(0); }
.reveal-right { transform: translateX(46px); }
.reveal-right.in { transform: translateX(0); }
/* Grid cascade — cards in the same row sweep in left-to-right a beat apart,
   instead of every card in the grid arriving at the exact same instant. */
.spaces-grid .space-card:nth-child(3n+1), .facility-grid .facility-item:nth-child(3n+1) { transition-delay: 0s; }
.spaces-grid .space-card:nth-child(3n+2), .facility-grid .facility-item:nth-child(3n+2) { transition-delay: .1s; }
.spaces-grid .space-card:nth-child(3n+3), .facility-grid .facility-item:nth-child(3n+3) { transition-delay: .2s; }
.feature-list .feature-item:nth-child(1) { transition-delay: 0s; }
.feature-list .feature-item:nth-child(2) { transition-delay: .1s; }
.feature-list .feature-item:nth-child(3) { transition-delay: .2s; }
.feature-list .feature-item:nth-child(4) { transition-delay: .3s; }
.gallery-grid .gallery-photo:nth-child(1) { transition-delay: 0s; }
.gallery-grid .gallery-photo:nth-child(2) { transition-delay: .12s; }
.gallery-grid .gallery-photo:nth-child(3) { transition-delay: .24s; }

/* ============================
   Cinematic motion system (GSAP-driven, static/js/motion.js)
   — layered on top of the reveal system above, not replacing it. Everything
   here degrades gracefully to the plain .reveal fade if GSAP fails to load
   or prefers-reduced-motion is set (motion.js bails out early in that case).
============================ */

/* "NEXHIVE FLOW" — a fixed architectural rail on the left edge of the
   homepage tracking which major section is in view. Desktop only; a
   decorative wayfinding cue, not interactive. */
.nex-flow {
  position: fixed; left: 30px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 260px; z-index: 45; pointer-events: none;
}
.nex-flow-track { position: absolute; inset: 0; background: var(--line); border-radius: 2px; }
.nex-flow-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px; transition: height .5s var(--ease);
}
.nex-flow-nodes { position: absolute; inset: -4px 0; display: flex; flex-direction: column; justify-content: space-between; }
.nex-flow-node {
  width: 7px; height: 7px; margin-left: -2.5px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.nex-flow-node.is-active {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 9px rgba(242, 183, 5, .65);
  transform: scale(1.25);
}
@media (max-width: 1080px) { .nex-flow { display: none; } }

/* Room-focus hover — dims sibling space cards so the hovered one reads as
   the thing the visitor is looking at. Applied via a class on the grid
   itself so untouched cards need no per-card listener. */
.spaces-grid.has-focus .space-card:not(.is-focused) { opacity: .68; transform: scale(.98); }
.spaces-grid .space-card { transition: opacity .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }

/* Why Nexhive — vertical progression line running alongside 01–04. */
.feature-list { position: relative; }
.feature-line {
  position: absolute; left: 17px; top: 17px; bottom: 17px; width: 2px;
  background: var(--line-soft); border-radius: 2px; pointer-events: none;
}
.feature-line-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px; transition: height .5s var(--ease);
}
.feature-item .num, .feature-item h4, .feature-item p {
  transition: opacity .4s var(--ease), color .4s var(--ease);
}
.feature-item:not(.is-active) .num { opacity: .55; }
.feature-item:not(.is-active) h4 { color: var(--ink-soft); }
.feature-item:not(.is-active) p { opacity: .7; }
.feature-item.is-active .num { opacity: 1; box-shadow: 0 0 0 5px var(--accent-soft); }

/* Real Space — the first gallery photo gets the cinematic scale-in; the
   rest keep the existing curtain-wipe untouched. */
.gallery-photo--cinematic { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .nex-flow, .feature-line { display: none; }
}

/* ============================
   Space type cards
============================ */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.space-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.space-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-tech), var(--accent));
  opacity: 0; transition: opacity .3s var(--ease);
}
/* Corner brackets — a targeting-reticle mark that only appears on hover,
   the one recognizably "HUD" cue on an otherwise plain card. */
.space-card::after {
  content: "";
  position: absolute; top: 10px; right: 10px; width: 16px; height: 16px;
  border-top: 1.5px solid var(--accent-tech); border-right: 1.5px solid var(--accent-tech);
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.space-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md), 0 0 0 1px rgba(79,216,255,.18); border-color: transparent; }
.space-card:hover::before { opacity: 1; }
.space-card:hover::after { opacity: .8; transform: translate(0, 0); }
.space-card .icon-hex {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
}
.space-card .icon-hex img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm);
}
.space-card .icon-hex svg { width: 62%; height: 62%; }

/* A real uploaded photo takes over the card — bled edge-to-edge across the
   top with the space's name overlaid on it in bold white, description and
   booking links below as normal (Trendworks-style photo-first cards). */
.space-card-media {
  position: relative;
  margin: -28px -28px 20px;
  height: 200px;
  overflow: hidden;
}
.space-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.space-card:hover .space-card-media img { transform: scale(1.05); }
.space-card-media::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg, var(--paper-alt) 48%, var(--accent-soft) 100%);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform .85s var(--ease) .1s;
  pointer-events: none;
}
.space-card.reveal.in .space-card-media::after { transform: scaleX(0); }
.space-card.reveal:not(.in) .space-card-media img { transform: scale(1.14); }
.space-card-media-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px 22px;
  background: linear-gradient(180deg, transparent 45%, rgba(15,17,21,.78) 100%);
}
.space-card-media-overlay h3 {
  color: #fff; margin: 0; font-size: 21px; text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.space-card h3 { font-size: 20px; margin-bottom: 6px; }
.space-card p { font-size: 14.5px; margin-bottom: 16px; }
.space-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; color: var(--ink-soft);
  background: var(--paper-alt); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: var(--radius-sm);
}
.space-card .card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  border-top: 1px solid var(--line-soft); padding-top: 16px; width: 100%;
}
.space-card .card-cta svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
button.card-cta { background: none; border: none; cursor: pointer; font-family: inherit; }
.card-cta-secondary {
  display: block; width: 100%; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  text-align: left; padding-top: 8px; text-decoration: underline; text-underline-offset: 2px;
}
.card-cta-secondary:hover { color: var(--accent-tech); }
.space-card:hover .card-cta svg { transform: translateX(4px); }

/* ============================
   Gallery strip (admin-uploaded photos)
============================ */
.gallery-strip { padding-top: 0; }
/* Auto-fill instead of a fixed 3-column layout — the admin can add any
   number of photos/videos, so this can't assume a specific count. The
   first item still gets a slightly larger, "cinematic" spot when there
   are enough items to make that look intentional rather than lopsided. */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-photo {
  position: relative;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-alt);
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.gallery-grid:has(.gallery-photo:nth-child(3)) .gallery-photo--cinematic { aspect-ratio: auto; grid-row: span 2; grid-column: span 1; }
.gallery-photo img, .gallery-photo video, .gallery-photo iframe { width: 100%; height: 100%; object-fit: cover; border: none; transition: transform .5s var(--ease); }
.gallery-photo:hover img, .gallery-photo:hover video { transform: scale(1.04); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  pointer-events: none;
}
.gallery-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg, var(--paper-alt) 48%, var(--accent-soft) 100%);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform .85s var(--ease) .1s;
  pointer-events: none;
}
.gallery-photo.reveal.in::after { transform: scaleX(0); }
.gallery-photo.reveal:not(.in) img { transform: scale(1.14); }
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .gallery-photo--cinematic { grid-row: span 1 !important; grid-column: span 2 !important; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-photo:first-child { grid-column: span 1; }
}

/* ============================
   Facilities
============================ */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.facility-item {
  text-align: center; padding: 30px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.facility-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-tech); border-color: var(--accent-tech); }
.facility-icon {
  width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: grid; place-items: center; margin: 0 auto 16px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.facility-icon svg { width: 24px; height: 24px; }
.facility-item:hover .facility-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 10px 22px -8px rgba(242, 183, 5, .6);
}
.facility-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.facility-item p { font-size: 13px; margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .facility-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facility-grid { grid-template-columns: 1fr; } }

/* Facility icon animations — each one nods to what it actually represents,
   so the "on-site facilities" grid feels alive instead of six static glyphs. */
.wifi-arc { animation: wifiPulse 1.8s ease-in-out infinite; }
.wifi-arc-1 { animation-delay: 0s; }
.wifi-arc-2 { animation-delay: .18s; }
.wifi-arc-3 { animation-delay: .36s; }
@keyframes wifiPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.cctv-icon { transform-box: fill-box; transform-origin: 50% 62%; animation: cctvPan 4s ease-in-out infinite; }
@keyframes cctvPan { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.cctv-lens { transform-box: fill-box; transform-origin: center; animation: cctvBlink 1.6s ease-in-out infinite; }
@keyframes cctvBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.bolt-icon { transform-box: fill-box; transform-origin: center; animation: boltFlicker 2.6s ease-in-out infinite; }
@keyframes boltFlicker {
  0%, 18%, 22%, 52%, 58%, 100% { opacity: 1; }
  20% { opacity: .35; }
  55% { opacity: .55; }
}

.printer-paper { transform-box: fill-box; transform-origin: top center; animation: printerFeed 2.8s ease-in-out infinite; }
@keyframes printerFeed {
  0%, 25% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(5px); opacity: 1; }
  62% { transform: translateY(5px); opacity: 0; }
  63% { transform: translateY(0); opacity: 0; }
  85%, 100% { transform: translateY(0); opacity: 1; }
}
.printer-light { animation: printerBlink 2.8s ease-in-out infinite; }
@keyframes printerBlink { 0%, 45%, 100% { opacity: 1; } 50%, 62% { opacity: .3; } }

.ac-wave { transform-box: fill-box; animation: acFlow 2.2s ease-in-out infinite; }
.ac-wave-2 { animation-delay: .25s; }
@keyframes acFlow { 0%, 100% { transform: translateX(-1.5px); opacity: .7; } 50% { transform: translateX(1.5px); opacity: 1; } }
.ac-light { animation: cctvBlink 2.4s ease-in-out infinite; }

.steam-wisp { transform-box: fill-box; transform-origin: bottom center; animation: steamRise 2.2s ease-in-out infinite; }
.steam-wisp-2 { animation-delay: .5s; }
@keyframes steamRise {
  0% { transform: translateY(0) scaleY(1); opacity: .55; }
  50% { transform: translateY(-2.5px) scaleY(1.2); opacity: 1; }
  100% { transform: translateY(0) scaleY(1); opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  .wifi-arc, .cctv-icon, .cctv-lens, .bolt-icon, .printer-paper, .printer-light, .ac-wave, .ac-light, .steam-wisp {
    animation: none;
  }
}

/* ============================
   Why / features
============================ */
.features-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.feature-list { display: grid; gap: 28px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .num {
  font-family: var(--font-display); font-size: 14px; color: #fff;
  width: 34px; height: 34px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700;
}
.feature-item h4 { font-size: 17px; margin-bottom: 4px; }
.feature-item p { font-size: 14.5px; margin: 0; }

/* ============================
   Reviews — only genuine admin-entered reviews ever render here.
============================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.review-card:hover { transform: translateY(-4px); border-color: var(--accent-tech); }
.review-card--featured { border-color: var(--accent); background: linear-gradient(155deg, var(--surface), var(--accent-soft)); }
.review-stars { display: flex; gap: 3px; color: var(--accent); }
.review-stars svg { width: 15px; height: 15px; }
.review-text { font-size: 14.5px; line-height: 1.6; margin: 0; flex: 1; color: var(--ink); }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author strong { display: block; font-size: 14px; }
.review-author .muted { font-size: 12.5px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ============================
   Founding member / CTA band
============================ */
.cta-band {
  background: linear-gradient(155deg, #151824, #08090d);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; right: -60px; top: -60px; width: 300px; height: 340px;
  background: radial-gradient(circle, rgba(242,183,5,.32), rgba(224,149,74,.16) 60%, transparent 75%);
  /* A slow, quiet drift — the one moving thing behind an otherwise still
     band of text, so the section reads as alive without asking for
     attention the way a scroll-triggered animation would. */
  animation: ctaGlowDrift 11s ease-in-out infinite;
}
@keyframes ctaGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 12px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::before { animation: none; }
}
.cta-band h2 { color: var(--ink); }
.cta-band p { color: #a6adc0; }
.cta-band .btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #10130a; }
.cta-band .btn-primary:hover { box-shadow: var(--shadow-glow); }
.cta-list { display: grid; gap: 12px; }
.cta-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #d6dae4; }
.cta-list li svg { color: var(--accent-tech); flex: none; }
.cta-list svg { flex: none; margin-top: 3px; width: 16px; height: 16px; color: var(--accent); }

/* ============================
   FAQ
============================ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .3s var(--ease);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; text-align: left;
  font-family: var(--font-display); font-size: 17px; color: var(--ink);
}
.faq-q .plus { flex: none; width: 20px; height: 20px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
}
.faq-q .plus::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.faq-q .plus::after { width: 2px; height: 14px; top: 3px; left: 9px; transition: transform .3s var(--ease); }
.faq-item.open { border-color: var(--accent-tech); }
.faq-item.open .plus::after { transform: rotate(90deg); }
.faq-item.open .plus::before, .faq-item.open .plus::after { background: var(--accent-tech); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner {
  padding: 0 24px 22px; font-size: 14.5px; color: var(--ink-soft);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.faq-item.open .faq-a-inner { opacity: 1; transform: translateY(0); transition-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
  .faq-a-inner { transition-delay: 0s; }
}

/* ============================
   Page transition veil (see page-transition.js)
============================ */
.page-transition-veil {
  position: fixed; inset: 0; z-index: 950;
  background: var(--paper);
  opacity: 1;
  pointer-events: none;
  transition: opacity .26s var(--ease);
}
.page-transition-veil.is-hidden { opacity: 0; }

/* ============================
   Footer
============================ */
.site-footer { background: var(--paper-alt); border-top: 1px solid var(--line); padding: 72px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: 14px; max-width: 30ch; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-tech); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent-tech); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { color: var(--accent-tech); border-color: var(--accent-tech); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 8px;
}

/* ============================
   Command palette (⌘K quick actions)
============================ */
.cmdk-trigger {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  display: flex; align-items: center; gap: 8px;
  background: rgba(46, 43, 37, .68); color: var(--ink); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px) saturate(1.6);
  border-radius: 999px; padding: 11px 16px 11px 14px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cmdk-trigger:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(15,17,21,.3); }
.cmdk-trigger kbd {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px;
}
@media (max-width: 640px) { .cmdk-trigger span { display: none; } .cmdk-trigger { padding: 12px; } }

.cmdk-backdrop {
  position: fixed; inset: 0; z-index: 600; background: rgba(20,18,15,.55); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.cmdk-backdrop.open { opacity: 1; pointer-events: auto; }
.cmdk-panel {
  width: 100%; max-width: 560px; background: rgba(46, 43, 37, .74); border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-14px) scale(.97);
  transition: transform .25s var(--ease); max-height: 70vh; display: flex; flex-direction: column;
}
.cmdk-backdrop.open .cmdk-panel { transform: translateY(0) scale(1); }
.cmdk-input-row {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft); flex: none;
}
.cmdk-input-row input {
  flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit; color: var(--ink); background: none;
}
.cmdk-input-row kbd {
  font-size: 11px; font-weight: 700; color: var(--ink-soft); background: var(--paper-alt);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; flex: none;
}
.cmdk-results { overflow-y: auto; padding: 8px; }
.cmdk-group-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); padding: 10px 12px 4px;
}
.cmdk-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: var(--radius-sm); border: none; background: none;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.cmdk-item .cmdk-item-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
}
.cmdk-item .cmdk-item-sub { font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-top: 1px; }
.cmdk-item-label { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.cmdk-item.active { background: var(--accent-soft); }
.cmdk-item.active .cmdk-item-icon { background: var(--accent); color: #fff; }
.cmdk-empty { padding: 30px 16px; text-align: center; color: var(--ink-soft); font-size: 13.5px; }

/* ============================
   Modal / Enquiry form
============================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 5, 8, .6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  padding: 20px;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: rgba(18, 20, 29, .82);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(79, 216, 255, .12);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 520px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 20px; line-height: 1; color: var(--ink-soft);
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--paper-alt); color: var(--ink); }
/* Enquiry modal — gradient header band, matching the booking modal's
   "icon + colored band" structure but with its own brand-gradient identity
   rather than the booking modal's plain dark one. */
.enquiry-modal { padding: 0; overflow: hidden; max-width: 520px; }
.enquiry-modal .modal-close {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff;
}
.enquiry-modal .modal-close:hover { background: rgba(255,255,255,.28); }
.enquiry-modal-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; padding: 30px 36px 24px; display: flex; gap: 16px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.enquiry-modal-header::before {
  content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%);
}
.enquiry-modal-header::after {
  content: ""; position: absolute; left: -40px; bottom: -80px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.enquiry-modal-header .eyebrow { color: rgba(255,255,255,.85); position: relative; }
.enquiry-modal-header .eyebrow::before { background: #fff; }
.enquiry-modal-header h3 { color: #fff; margin: 4px 0 4px; position: relative; font-size: 22px; }
.enquiry-modal-header p { color: rgba(255,255,255,.88); position: relative; }
.enquiry-icon-circle {
  width: 44px; height: 44px; border-radius: 50%; flex: none; position: relative;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  display: grid; place-items: center; color: #fff;
}
.enquiry-modal .modal-body { padding: 26px 36px 32px; max-height: 72vh; overflow-y: auto; }

/* Conference Room booking modal */
.booking-modal { padding: 0; overflow: hidden; max-width: 560px; }
.booking-modal .modal-close {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff;
}
.booking-modal .modal-close:hover { background: rgba(255,255,255,.22); }
.booking-modal-header {
  background: linear-gradient(135deg, #151824, #08090d); color: var(--ink);
  padding: 32px 36px 26px; display: flex; gap: 16px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.booking-modal-header::before {
  content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 220px;
  background: radial-gradient(circle, rgba(242,183,5,.32), transparent 70%);
}
.booking-modal-header .eyebrow { color: var(--accent); position: relative; }
.booking-modal-header .eyebrow::before { background: var(--accent); }
.booking-modal-header h3 { color: var(--ink); margin: 4px 0 0; position: relative; }
.booking-icon-circle {
  width: 44px; height: 44px; border-radius: 50%; flex: none; position: relative;
  background: rgba(242,183,5,.18); border: 1px solid rgba(242,183,5,.45);
  display: grid; place-items: center; color: var(--accent);
}
.booking-modal .modal-body { padding: 26px 36px 32px; max-height: 72vh; overflow-y: auto; }

.booking-fieldset {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 18px 6px; margin-bottom: 18px; position: relative;
}
.booking-fieldset-label {
  position: absolute; top: -10px; left: 14px; background: var(--surface); padding: 0 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
}
.booking-fieldset .form-row:last-child { margin-bottom: 16px; }
.booking-fieldset > label:last-child { margin-bottom: 16px; }

.payment-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 2px;
}
.payment-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent-dark); }
.payment-note p { margin: 0; font-size: 12.5px; color: var(--accent-ink); font-weight: 600; line-height: 1.45; }

.booking-payment-step { display: grid; gap: 14px; }
.payment-amount-box {
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px; text-align: center;
}
.payment-amount-box .muted { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.payment-amount-value { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.slot-unavailable-note { color: #c0432f; }

.enquiry-form { display: grid; gap: 16px; }
.enquiry-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 700px) { .form-row-3 { grid-template-columns: 1fr; } }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--paper); color: var(--ink); font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  outline: none; border-color: var(--accent-tech); box-shadow: 0 0 0 3px var(--accent-tech-soft);
}
.enquiry-form textarea { resize: vertical; }
.form-status { text-align: center; font-size: 13.5px; font-weight: 600; min-height: 18px; margin: 0; }
.form-status.ok { color: var(--success); }
.form-status.err { color: #c0432f; }

/* ============================
   Page hero (inner pages)
============================ */
.page-hero { padding: 56px 0 20px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); max-width: 16ch; }
.page-hero p { font-size: 17px; max-width: 56ch; }

/* ============================
   Explore / Floor plan page
============================ */
.explore-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
@property --fp-spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes fpBorderSpin { to { --fp-spin: 360deg; } }


.plan-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease-out, box-shadow .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.plan-panel:hover { box-shadow: var(--shadow-md); }
.plan-panel::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--fp-spin, 0deg), var(--accent), var(--accent-2), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; pointer-events: none;
  animation: fpBorderSpin 8s linear infinite;
}
.plan-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; position: relative; }
.plan-toolbar h3 { margin: 0; font-size: 16px; font-family: var(--font-body); font-weight: 700; display: inline-flex; align-items: center; }
.plan-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.plan-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.plan-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.live-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft); padding: 3px 10px 3px 8px; border-radius: 999px; margin-left: 10px;
}
.live-badge i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: fpLiveDot 1.6s ease-in-out infinite;
}
@keyframes fpLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(242,183,5,.55); }
  70% { box-shadow: 0 0 0 7px rgba(242,183,5,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,183,5,0); }
}

.blueprint-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); cursor: pointer; transition: all .25s var(--ease); margin-left: auto;
}
.blueprint-toggle:hover { border-color: var(--accent); color: var(--ink); }
.blueprint-toggle.active { background: #0a1f3d; border-color: #0a1f3d; color: #8fd8ff; }

.floorplan-svg-wrap {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 38%), rgba(242,183,5,.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(139,131,112,.09) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(139,131,112,.09) 0 1px, transparent 1px 28px),
    var(--paper-alt);
}
.floorplan-svg-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; height: 46%; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(242,183,5,.12) 45%, rgba(224,149,74,.12) 55%, transparent);
  pointer-events: none; animation: fpScanSweep 7s ease-in-out infinite;
}
@keyframes fpScanSweep {
  0% { transform: translateY(-70%); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translateY(130%); opacity: 1; }
  62% { opacity: 0; }
  100% { transform: translateY(130%); opacity: 0; }
}
#floorplanSvg {
  width: 100%; height: auto; display: block; position: relative;
  animation: fpFadeIn .7s var(--ease) both;
  transition: filter .5s ease;
}
@keyframes fpFadeIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.floorplan-svg-wrap.blueprint-mode #floorplanSvg {
  filter: invert(1) hue-rotate(180deg) saturate(1.6) brightness(1.05) contrast(1.05);
}

.fp-tooltip {
  position: absolute; z-index: 3; top: 0; left: 0; pointer-events: none;
  background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700;
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transform: translateY(4px) scale(.92); transform-origin: left center;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
  box-shadow: var(--shadow-md);
}
.fp-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); }

.fp-zone { cursor: pointer; transition: filter .2s, opacity .2s, transform .25s var(--ease); transform-box: fill-box; transform-origin: center; }
.fp-zone rect, .fp-zone path.zone-shape { transition: fill .25s var(--ease), stroke .25s var(--ease), filter .25s var(--ease); }
/* Every selectable room/desk reads as a small floating 3D block on the
   plan (see #zoneExtrude in explore.html) instead of a flat painted
   rectangle — and idles with a slow, barely-there bob so the whole map
   feels quietly alive rather than a static drawing. Staggered per zone
   via nth-of-type so the room boxes don't all bob in obvious unison. */
.zone-shape { filter: url(#zoneExtrude); }
.fp-zone { animation: fpZoneFloat 4.5s ease-in-out infinite; }
.fp-zone:nth-of-type(2n) { animation-duration: 5.2s; animation-delay: -1.1s; }
.fp-zone:nth-of-type(3n) { animation-duration: 3.8s; animation-delay: -2.3s; }
@keyframes fpZoneFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
.fp-zone:hover, .fp-zone.active { animation-play-state: paused; }
.fp-zone:hover { transform: scale(1.035); }
.fp-zone:hover .zone-shape { fill: var(--accent-soft); stroke: var(--accent); filter: url(#zoneExtrude) drop-shadow(0 0 12px rgba(79,216,255,.55)); }
.fp-zone.active { transform: scale(1.02); }
.fp-zone.active .zone-shape {
  fill: var(--accent-soft); stroke: var(--accent-dark); stroke-width: 2.5;
  animation: fpActivePulse 1.8s ease-in-out infinite;
}
@keyframes fpActivePulse {
  0%, 100% { filter: url(#zoneExtrude) drop-shadow(0 0 6px rgba(242,183,5,.4)); }
  50% { filter: url(#zoneExtrude) drop-shadow(0 0 16px rgba(242,183,5,.85)); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-zone { animation: none; translate: 0 0; }
}
.fp-check-badge circle { animation: fpBadgeIn .25s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes fpBadgeIn { from { transform: scale(0); } to { transform: scale(1); } }
/* The floor plan itself is a fixed light/paper-colored architectural
   drawing regardless of the site's light/dark theme, so its labels use
   literal dark ink instead of the theme's --ink token (which is light in
   the current dark theme and would vanish against this white drawing). */
.fp-label { font-family: var(--font-body); font-weight: 700; fill: #2a2620; pointer-events: none; }
.fp-sublabel { font-family: var(--font-body); fill: #6b6558; pointer-events: none; }
.fp-desk { fill: #fff; stroke: #c9c2b1; stroke-width: 1; }
.fp-chair { fill: #cbb98f; stroke: #8b8370; transition: fill .25s var(--ease), stroke .25s var(--ease); }
.fp-zone:hover .fp-chair, .fp-zone.active .fp-chair { fill: var(--accent-soft); stroke: var(--accent-dark); }

/* A space the admin has turned off in Spaces — grayed out and inert on
   the floor plan instead of just being hidden from booking elsewhere. */
.fp-zone.fp-zone-inactive { cursor: not-allowed; opacity: .45; }
.fp-zone.fp-zone-inactive:hover { transform: none; }
.fp-zone.fp-zone-inactive:hover .zone-shape { fill: initial; stroke: initial; filter: none; }
.fp-zone.fp-zone-inactive:hover .fp-chair { fill: #cbb98f; stroke: #8b8370; }
#zoneList button.fp-zone-inactive { opacity: .45; cursor: not-allowed; }

.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-sm);
  min-height: 380px;
  overflow: hidden;
}
.detail-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%; animation: fpGradientSlide 4s linear infinite;
}
@keyframes fpGradientSlide { to { background-position: -200% 0; } }
.detail-panel > *:not(.placeholder) { position: relative; }
/* The real photo of whichever room/desk is selected — bled edge-to-edge
   across the top of the panel like the homepage Spaces cards, so clicking
   a zone on the plan shows what it actually looks like, not just text. */
.detail-photo { margin: -26px -26px 18px; aspect-ratio: 4/3; overflow: hidden; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#detailPanel.panel-anim > * { animation: fpDetailIn .35s var(--ease) both; }
@keyframes fpDetailIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.detail-panel .placeholder { color: var(--ink-soft); font-size: 14.5px; padding: 30px 4px; text-align: center; }
.detail-panel .placeholder svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--line); }
.detail-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.detail-title .swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.detail-panel h3 { font-size: 22px; margin-bottom: 4px; }
.detail-cap { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.detail-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail-panel .btn { margin-top: 6px; }

.zone-list { display: grid; gap: 8px; margin-top: 18px; }
.zone-list button {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper-alt); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  text-align: left;
}
.zone-list button:hover, .zone-list button.active { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.zone-list button::before {
  content: ""; width: 15px; height: 15px; flex: none; margin-right: 10px;
  border: 1.5px solid var(--line); border-radius: 4px; background: var(--surface);
  display: inline-block; order: -1;
}
.zone-list button.active::before {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.zone-list button span:last-child { margin-left: auto; }
.zone-list button.book-only { background: var(--accent); color: var(--paper); }
.zone-list button.book-only::before { content: none; }
.zone-list button.book-only:hover { background: var(--accent-dark); border-color: transparent; }

/* Multi-select "cart" list in the detail panel */
.selection-list { display: grid; gap: 8px; margin: 18px 0; }
.selection-list li {
  background: var(--paper-alt); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 10px 10px 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.selection-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.selection-row-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.chip-cal-toggle {
  border: none; background: transparent; color: var(--ink-soft); font-size: 11.5px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px; padding: 4px 6px; flex: none;
}
.chip-cal-toggle:hover { color: var(--ink); }
.chip-remove {
  width: 24px; height: 24px; border-radius: 50%; border: none; background: transparent;
  color: var(--ink-soft); font-size: 17px; line-height: 1; flex: none;
}
.chip-remove:hover { background: var(--surface); color: #c0432f; }
.btn-link {
  display: block; width: 100%; text-align: center; background: none; border: none;
  color: var(--ink-soft); font-size: 13px; font-weight: 600; padding: 10px 0 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--ink); }

/* ============================
   Pricing page
============================ */
.pricing-note {
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.highlight { background: linear-gradient(155deg, #151824, #08090d); border-color: var(--accent-tech); color: var(--ink); position: relative; }
.price-card.highlight h3, .price-card.highlight .price-amt { color: var(--ink); }
.price-card.highlight p, .price-card.highlight li { color: #c8c9d4; }
.price-card.highlight .tag { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #eceaf7; }
.price-card .badge {
  position: absolute; top: -13px; right: 28px;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(242,183,5,.5);
}
.price-card h3 { font-size: 19px; margin-bottom: 6px; }
.price-card .price-amt { font-family: var(--font-display); font-size: 38px; font-weight: 600; margin: 10px 0 2px; }
.price-card .price-amt sup { font-size: 15px; font-weight: 500; }
.price-card .price-per { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.price-card .price-enquire-note {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  margin: 18px 0 20px; padding: 10px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.price-card.highlight .price-enquire-note { color: var(--ink); border-color: rgba(255,255,255,.16); }
.price-card ul { display: grid; gap: 11px; margin: 22px 0 26px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.price-card li svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-dark); }
.price-card.highlight li svg { color: var(--accent); }

.meeting-room-card {
  margin-top: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.meeting-room-card:hover { box-shadow: var(--shadow-md); }

/* ============================
   Contact page
============================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.info-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.info-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.info-card .ic {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; flex: none;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.info-card:hover .ic { transform: scale(1.1) rotate(-6deg); background: var(--accent); color: #fff; }
.info-card h4 { font-size: 15.5px; margin-bottom: 3px; }
.info-card p { font-size: 14px; margin: 0; }
.contact-form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.contact-form-card .enquiry-form { gap: 18px; }
.contact-map {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  /* Google's default light basemap reads as a bright rectangle dropped
     onto an otherwise near-black page — this tones it down to sit inside
     the same dark palette as everything else, without hiding any detail
     (still fully legible, still fully interactive). */
  filter: grayscale(.25) invert(.92) contrast(.88) brightness(.95);
}
@media (max-width: 780px) { .contact-map { height: 280px; } }
.contact-directions-btn { display: inline-flex; margin-top: 18px; }

/* ============================
   Admin — sidebar dashboard app
============================ */
.admin-app { display: flex; min-height: 100vh; align-items: stretch; }

.admin-sidebar {
  width: 252px; flex: none;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.admin-sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 22px 20px;
  font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.admin-sidebar-brand .brand-mark { width: 26px; height: 30px; flex: none; }
.admin-sidebar-brand img.brand-mark { width: auto; height: 38px; max-width: 150px; }
.admin-sidebar-brand small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }

.admin-sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: grid; gap: 2px; align-content: start; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border-radius: var(--radius-sm); border: none; background: none;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.admin-nav-item svg { width: 18px; height: 18px; flex: none; }
.admin-nav-item:hover { background: var(--paper-alt); color: var(--ink); }
.admin-nav-item.active { background: var(--accent); color: var(--paper); }
.admin-nav-badge {
  margin-left: auto; background: var(--accent); color: var(--paper);
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; line-height: 1.5;
}
.admin-nav-item.active .admin-nav-badge { background: rgba(32,30,27,.2); color: var(--paper); }
.admin-nav-group {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding: 16px 14px 4px; opacity: .75;
}
.admin-nav-group:first-child { padding-top: 2px; }

.admin-sidebar-footer { padding: 14px 20px 20px; border-top: 1px solid var(--line-soft); }
.admin-sidebar-footer .btn { width: 100%; }

.admin-mobile-topbar {
  display: none; position: sticky; top: 0; z-index: 35;
  align-items: center; gap: 14px; height: 60px; padding: 0 18px;
  background: rgba(32,30,27,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); color: var(--ink);
}
.admin-mobile-topbar button {
  background: none; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; color: var(--ink);
  display: grid; place-items: center; flex: none;
}
.admin-mobile-topbar .brand-name { font-size: 15px; }
.admin-sidebar-scrim { display: none; }

.admin-main { flex: 1; min-width: 0; }
.admin-main-inner { padding: 36px 40px 80px; max-width: 1280px; }

.admin-panel { display: none; }
.admin-panel.active { display: block; animation: adminFadeIn .25s var(--ease); }
@keyframes adminFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.admin-page-head { margin-bottom: 28px; }
.admin-page-head h1 { font-size: 26px; margin-bottom: 4px; }

.admin-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 900px) { .admin-dash-grid { grid-template-columns: 1fr; } }
.admin-dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.admin-dash-card h3 { font-size: 15.5px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.admin-dash-card h3 a { font-size: 12.5px; font-weight: 600; color: var(--accent-dark); }
.admin-mini-list { display: grid; gap: 8px; }
.admin-mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: var(--paper-alt); border-radius: var(--radius-sm); font-size: 13px;
}
.admin-mini-row .who { font-weight: 700; color: var(--ink); }
.admin-mini-row .what { color: var(--ink-soft); font-size: 12px; }
.admin-quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media (max-width: 980px) {
  .admin-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
    transform: translateX(-100%); transition: transform .25s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-topbar { display: flex; }
  .admin-main-inner { padding: 24px 18px 60px; }
  .admin-sidebar-scrim.open {
    display: block; position: fixed; inset: 0; z-index: 45; background: rgba(15,17,21,.35);
  }
}

.admin-login-shell { min-height: 70vh; display: grid; place-items: center; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; max-width: 380px; width: 100%; box-shadow: var(--shadow-md); }
.admin-card h2 { margin-bottom: 6px; }
.admin-error { color: #c0432f; font-size: 13.5px; margin-top: -6px; }
.admin-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.admin-table th { background: var(--paper-alt); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
table.admin-table th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
table.admin-table th.sortable:hover { color: var(--ink); }
table.admin-table th.sortable::after { content: "\2195"; margin-left: 5px; opacity: .35; font-size: 11px; }
table.admin-table th.sort-asc::after { content: "\2191"; opacity: 1; color: var(--accent-dark); }
table.admin-table th.sort-desc::after { content: "\2193"; opacity: 1; color: var(--accent-dark); }

.table-filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.table-filter-bar .filter-search {
  flex: 1 1 240px; min-width: 180px; padding: 9px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-family: inherit;
}
.table-filter-bar .filter-status, .table-filter-bar .filter-space {
  padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-family: inherit; color: var(--ink);
}
.table-filter-bar .filter-date-label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600;
}
.table-filter-bar .filter-date-label input[type="date"] {
  padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-family: inherit; color: var(--ink);
}
.table-filter-bar .filter-count { font-size: 12px; white-space: nowrap; }
.list-sort-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12.5px; }
.sort-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.sort-chip:hover { border-color: var(--ink); color: var(--ink); }
.sort-chip.active { background: var(--accent); border-color: var(--accent); color: var(--paper); }
table.admin-table td.msg-cell { white-space: normal; max-width: 260px; }
.status-pill { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.status-new { background: #fde3d3; color: #a3450e; }
.status-contacted { background: #dbe9f7; color: #1f5c96; }
.status-confirmed { background: #d8f0e0; color: #226a41; }
.status-pending_payment { background: #fbe6c8; color: #a3650e; }
.status-cancelled { background: #f1e2e2; color: #94342a; }
.status-declined { background: #f1e2e2; color: #94342a; }
.status-active { background: #d8f0e0; color: #226a41; }
.status-inactive { background: #ece9e3; color: #5c574c; }
.status-coming_soon { background: #fbe6c8; color: #a3650e; }
.status-archived { background: #f1e2e2; color: #7a5a4f; }
.status-select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; background: var(--paper); color: var(--ink); }
.assign-multi { min-width: 140px; background: var(--paper); color: var(--ink); }
.assign-multi option { padding: 3px 6px; }
/* Chrome ignores a plain background-color on a selected <option> inside a
   multi-select and falls back to the OS highlight color (often white) —
   the gradient trick is the only reliable way to override it so a chosen
   space stays readable instead of turning into white-on-white. */
.assign-multi option:checked {
  background: linear-gradient(0deg, var(--accent-soft) 0%, var(--accent-soft) 100%);
  color: var(--ink);
}
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }

.admin-main label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.admin-main input, .admin-main select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 400; width: 100%;
}
.admin-main input:focus, .admin-main select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.walkin-login-toggle { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); flex-direction: row !important; }
.walkin-login-toggle input { width: auto !important; }

/* ============================
   Multi-branch admin UI
============================ */
.admin-branch-select {
  position: relative; margin: 0 16px 14px;
}
.admin-branch-select select {
  width: 100%; appearance: none; background: var(--paper-alt); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 32px 10px 12px; font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer;
}
.admin-branch-select select:focus { outline: none; border-color: var(--accent); }
.admin-branch-select-caret { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }

.admin-branch-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-branch-stats-grid .stat-card { display: flex; flex-direction: column; gap: 4px; }

.admin-table-actions { text-align: right; }
.admin-inline-menu { position: relative; display: inline-block; }
.admin-inline-menu summary {
  list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--accent-dark);
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.admin-inline-menu summary::-webkit-details-marker { display: none; }
.admin-inline-menu[open] summary { border-color: var(--accent); }
.admin-inline-menu-body {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 14px; display: grid; gap: 12px; width: 260px; text-align: left;
}
.admin-inline-menu-body form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-inline-menu-body input, .admin-inline-menu-body select {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px;
  background: var(--paper); color: var(--ink); flex: 1; min-width: 0;
}
.admin-duplicate-form { flex-wrap: wrap; }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.admin-form-grid .admin-form-span2 { grid-column: 1 / -1; }
.admin-form-grid textarea { resize: vertical; }
@media (max-width: 640px) { .admin-form-grid { grid-template-columns: 1fr; } }
.admin-edit-row { display: none; }
.admin-edit-row.open { display: table-row; }
.admin-edit-row td { padding: 22px; background: var(--paper); border-radius: var(--radius-md); }
.admin-edit-row .admin-form-grid .btn-secondary { margin-left: 10px; }
.settings-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.settings-grid { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 16px; align-items: end; }
.blocked-slot-form { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 24px; }
@media (max-width: 900px) {
  .settings-grid, .blocked-slot-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .settings-grid, .blocked-slot-form { grid-template-columns: 1fr; }
}

/* Hourly booking availability toggles */
.hourly-toggle-form { display: grid; gap: 4px; }
.toggle-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 4px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.toggle-switch-row:last-child { border-bottom: none; }
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.toggle-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle-switch-track {
  position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s var(--ease);
}
.toggle-switch-track::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease);
}
.toggle-switch input:checked + .toggle-switch-track { background: var(--success); }
.toggle-switch input:checked + .toggle-switch-track::before { transform: translateX(18px); }
.toggle-switch-subrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 4px 13px 16px; margin: -4px 0 4px; border-bottom: 1px solid var(--line-soft);
  background: var(--paper-alt); border-radius: var(--radius-sm);
}
.toggle-switch-subrow label { font-size: 13px; font-weight: 600; color: var(--ink); max-width: 62ch; }
.toggle-switch-subrow input[type="number"] {
  width: 60px; flex: none; padding: 7px 8px; text-align: center; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700;
}

/* Admin pricing — grouped cards instead of a flat input grid */
.price-settings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .price-settings-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price-settings-grid { grid-template-columns: 1fr; } }
.price-item-card { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.price-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.price-item-icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center;
}
.price-item-head h4 { margin: 0; font-size: 14.5px; font-family: var(--font-body); font-weight: 700; }
.price-item-fields { display: grid; gap: 10px; }
.price-item-fields label { font-size: 11.5px; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-item-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
}
.photo-item-preview {
  aspect-ratio: 16/10; background: var(--paper-alt);
  display: grid; place-items: center; font-size: 12.5px;
}
.photo-item-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-item-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.photo-item-body h4 { margin: 0; font-size: 14px; }
.photo-item-body p { font-size: 12px; margin: 0 0 8px; }
.photo-upload-form { display: grid; gap: 8px; margin-top: 4px; }

.photo-dropzone {
  cursor: pointer; display: grid; place-items: center; position: relative;
  transition: background .15s, border-color .15s;
}
.photo-dropzone:hover { background: var(--accent-soft); }
.photo-item-card:has(.photo-item-preview:not(:has(img))) .photo-dropzone {
  border-bottom: 2px dashed var(--line);
}
.photo-dropzone-hint { display: grid; place-items: center; gap: 6px; color: var(--ink-soft); }
.photo-dropzone-hint svg { color: var(--accent-dark); }
.photo-dropzone-hint .muted { font-size: 11.5px; font-weight: 600; }
.photo-file-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.blocked-list { display: grid; gap: 10px; }
.blocked-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper-alt); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 16px;
}
.blocked-row .info { font-size: 13.5px; }
.blocked-row .reason { color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.blocked-row form { margin: 0; }
.space-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--accent-dark); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 9px; margin-right: 8px;
}

/* Admin header + quick nav */
.admin-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 248, 244, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.admin-header .brand-name { font-size: 18px; }
.admin-quicknav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.admin-quicknav a { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.admin-quicknav a:hover { color: var(--ink); }

/* Stat cards */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 44px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm);
}
.stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

.admin-section { padding-top: 8px; margin-bottom: 56px; scroll-margin-top: 88px; }
.admin-section .count { font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.section-intro { max-width: 62ch; margin: -10px 0 20px; font-size: 13.5px; }
.status-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.bill-inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.bill-inline-form input[type="number"] {
  width: 90px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px;
}
.empty-cell { text-align: center; padding: 40px; color: var(--ink-soft); white-space: normal !important; }

/* Availability calendar */
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.calendar-toolbar select { width: auto; min-width: 190px; }
.calendar-nav { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 14.5px; }
.calendar-nav button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  font-size: 16px; color: var(--ink); cursor: pointer;
}
.calendar-nav button:hover { background: var(--paper-alt); }
.calendar-legend { display: flex; gap: 18px; margin-bottom: 18px; font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.cal-dot.green { background: var(--success); }
.cal-dot.yellow { background: var(--accent); }
.cal-dot.red { background: #c0432f; }
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0 auto 8px; max-width: 380px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); text-align: center;
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 380px; margin: 0 auto; }
.calendar-day {
  width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: var(--paper-alt);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  color: var(--ink-soft); cursor: pointer; font-family: inherit;
}
.calendar-day.empty { visibility: hidden; cursor: default; }
.calendar-day.green { background: #d8f0e0; color: #226a41; }
.calendar-day.yellow { background: #fbe6c8; color: #a3650e; }
.calendar-day.red { background: #f6d5cf; color: #9a3a26; }
.calendar-day.past { background: var(--paper-alt); color: var(--ink-soft); opacity: .55; }
.calendar-day:hover { border-color: var(--ink); }
.calendar-day.selected { outline: 2px solid var(--ink); outline-offset: 2px; }
.calendar-day:disabled { opacity: .3; cursor: not-allowed; }
.calendar-day:disabled:hover { border-color: transparent; }
.calendar-day-detail { margin-top: 20px; border-top: 1px solid var(--line-soft); padding-top: 16px; min-height: 24px; }
.cal-slot-list { display: grid; gap: 6px; font-size: 13px; margin: 0; padding: 0; list-style: none; }

/* Same calendar, smaller context — inside the booking modal */
.mini-calendar { margin-bottom: 4px; }
.mini-calendar .calendar-toolbar { justify-content: center; margin-bottom: 14px; }
.mini-calendar .calendar-legend { justify-content: center; margin-bottom: 14px; gap: 14px; font-size: 11.5px; }
.mini-calendar .calendar-day { font-size: 12px; }

@media (max-width: 720px) {
  .admin-quicknav { display: none; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .calendar-day { font-size: 11.5px; }
}

.admin-flash-wrap { display: grid; gap: 8px; margin: 20px 0 0; }
.admin-flash {
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent;
}
.admin-flash-error { background: #f6d5cf; color: #7a2a1a; border-color: #e8a892; }
.admin-flash-success { background: #d8f0e0; color: #226a41; border-color: #a9dab9; }

.admin-update-banner {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 500; display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--paper); border: none; border-radius: 999px;
  padding: 11px 20px; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-lg); animation: adminBannerIn .3s var(--ease);
}
.admin-update-banner:hover { transform: translateX(-50%) translateY(-2px); }
@keyframes adminBannerIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%); } }

/* ============================
   Customer accounts (login/signup/My Bookings)
============================ */
.auth-shell { min-height: 60vh; display: grid; place-items: center; padding: 40px 0; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; max-width: 400px; width: 100%; box-shadow: var(--shadow-md); }
.auth-card h2 { margin-bottom: 6px; }

.mybooking-list { display: grid; gap: 12px; margin-top: 18px; }
.mybooking-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 18px 18px; border-left: 3px solid var(--line);
}
.mybooking-card.status-edge-confirmed { border-left-color: var(--success); }
.mybooking-card.status-edge-new, .mybooking-card.status-edge-pending_payment { border-left-color: var(--accent); }
.mybooking-card.status-edge-contacted { border-left-color: #1f5c96; }
.mybooking-card.status-edge-declined, .mybooking-card.status-edge-cancelled { border-left-color: #94342a; }
.mybooking-card-past { opacity: .72; }
.mybooking-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mybooking-card-head strong { font-size: 15px; }
.mybooking-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 20px; }
.mybooking-detail-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 2px; }
.mybooking-detail-value { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mybooking-message { font-size: 13.5px; font-style: italic; color: var(--ink-soft); margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.mybooking-hint { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; }
.mybooking-id { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; margin-left: 8px; }
.mybooking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
/* .btn-link defaults to a full-width, centered block (right for a lone link
   under a card elsewhere) — inside this action row it needs to sit inline
   next to the other buttons instead. */
.mybooking-actions .btn-link { display: inline; width: auto; text-align: left; padding: 0; }
.mybooking-cancel-link { color: #c0432f; }
.mybooking-payment-paid { color: var(--success); }
.mybooking-payment-payment_pending { color: var(--accent-dark); }
.mybooking-payment-cancelled { color: var(--ink-soft); font-weight: 500; }

/* Booking status badges — separate from the request-status pills above
   ("pending"/"completed" here are derived display states, not raw DB
   values, so they get their own namespaced classes rather than reusing
   status-pending_payment etc. and risking a mismatch later). */
.status-mb-confirmed { background: #d8f0e0; color: #226a41; }
.status-mb-pending { background: #fbe6c8; color: #a3650e; }
.status-mb-completed { background: #dbe9f7; color: #1f5c96; }
.status-mb-cancelled { background: #f1e2e2; color: #94342a; }

.mybooking-empty {
  text-align: center; padding: 40px 24px; margin-top: 18px;
  border: 1px dashed var(--line); border-radius: var(--radius-md); background: var(--surface);
}
.mybooking-empty svg { color: var(--ink-soft); margin-bottom: 10px; }
.mybooking-empty h3 { font-size: 16px; margin-bottom: 4px; }
.mybooking-empty p { margin-bottom: 16px; font-size: 13.5px; }

.mybooking-policy-box {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-soft);
}
.mybooking-policy-box strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.mybooking-policy-box p { margin: 0 0 8px; line-height: 1.5; }
.mybooking-policy-box a { color: var(--accent); text-decoration: underline; }
.mybooking-modal { padding: 0; }
.mybooking-modal .modal-body { padding: 32px 30px; max-height: 80vh; overflow-y: auto; }
@media (max-width: 480px) {
  .mybooking-modal .modal-body { padding: 26px 20px; }
  .mybooking-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================
   Responsive
============================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); }
  .features-wrap { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 28px; }
  .explore-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .meeting-room-card { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 0 28px; gap: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    border-bottom: 1px solid transparent;
    transition: max-height .35s var(--ease), opacity .25s var(--ease), padding .35s var(--ease), border-color .35s;
  }
  .main-nav.open { max-height: 60vh; opacity: 1; padding: 12px 28px 24px; border-color: var(--line); box-shadow: var(--shadow-md); }
  .main-nav a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .spaces-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  /* Two pills side by side don't reliably fit a narrow phone width without
     wrapping awkwardly mid-row — stacking them full-width on their own
     lines reads as a deliberate choice instead of a wrap-because-it-doesn't-fit. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-list { margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Facilities / Reviews / FAQ / Working hours / Social links — admin panels */
.admin-icon-cell svg { width: 20px; height: 20px; color: var(--accent-dark); }
.admin-hours-grid, .admin-social-grid { display: grid; gap: 10px; }
.admin-hours-row, .admin-social-row {
  display: grid; grid-template-columns: 140px 1fr auto 1fr; gap: 10px; align-items: center;
}
.admin-social-row { grid-template-columns: 140px 1fr; }
.admin-hours-day { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.admin-hours-row input[type="time"], .admin-social-row input[type="url"] {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13.5px;
  background: var(--paper); color: var(--ink); width: 100%;
}
@media (max-width: 640px) {
  .admin-hours-row { grid-template-columns: 1fr 1fr; grid-template-areas: "day day" "start end"; }
  .admin-hours-row .admin-hours-day { grid-area: day; }
  .admin-hours-row span.muted { display: none; }
  .admin-social-row { grid-template-columns: 1fr; }
}

/* Announcement bar, footer legal links, banners */
.announcement-bar { background: var(--accent); color: #14120f; font-size: 13.5px; font-weight: 600; }
.announcement-bar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 20px; flex-wrap: wrap; text-align: center; }
.announcement-bar-inner a { color: #14120f; text-decoration: underline; font-weight: 700; }
.footer-legal-link { margin-left: 12px; font-size: 12.5px; color: var(--muted); }
.footer-legal-link:hover { color: var(--ink); }

.promo-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); margin: 0 0 40px; }
.promo-banner-inner { display: flex; align-items: center; gap: 24px; padding: 28px 32px; background: linear-gradient(120deg, var(--surface), var(--paper)); border: 1px solid var(--line); border-radius: var(--radius-lg); flex-wrap: wrap; }
.promo-banner-img { width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.promo-banner-text { flex: 1; min-width: 200px; }
.promo-banner-text h3 { margin: 0 0 4px; font-size: 19px; }
.promo-banner-text p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) {
  .promo-banner-inner { padding: 20px; }
  .promo-banner-img { width: 100%; height: 140px; }
}

/* ============================
   Welcome intro — full-screen, once per session, homepage only
============================ */
/* Locks scroll only for the brief moment the intro overlay is actually
   showing — removed the instant it finishes (or immediately, on a repeat
   visit within the same session, since the overlay element is stripped out
   before this class is ever added). */
body.intro-pending { overflow: hidden; }
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  opacity: 0;
  cursor: pointer;
}
.site-intro-logo-wrap {
  width: clamp(160px, 42vw, 400px);
  /* Never touches the viewport edges, even on the narrowest phones. */
  max-width: calc(100vw - 64px);
}
.site-intro-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
}
