/* Mercatus Concierge — Maison Concierge
   Luxury hospitality × private-bank editorial
   Mercatus Blueprints accent / charcoal / ivory */
:root {
  --bg: #070708;
  --bg-deep: #050506;
  --bg-elev: #0E0E10;
  --bg-panel: rgba(244, 239, 230, 0.035);
  --bg-glass: rgba(14, 14, 16, 0.72);
  --ivory: #F4EFE6;
  --ivory-dim: rgba(244, 239, 230, 0.72);
  --muted: #9A948A;
  --muted-soft: #6E695F;
  --champagne: #C4A574;
  --champagne-dim: rgba(196, 165, 116, 0.18);
  --champagne-glow: rgba(196, 165, 116, 0.35);
  --accent: #C8102E;
  --accent-dim: rgba(200, 16, 46, 0.16);
  --accent-glow: rgba(200, 16, 46, 0.38);
  --hairline: rgba(244, 239, 230, 0.08);
  --hairline-strong: rgba(244, 239, 230, 0.14);
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-weight: 400;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* —— Reveal on scroll (CSS-only, IntersectionObserver-free via animation on load + reduced-motion) —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.9s var(--ease) forwards;
}

.reveal.delay-1 { animation-delay: 0.12s; }
.reveal.delay-2 { animation-delay: 0.22s; }
.reveal.delay-3 { animation-delay: 0.32s; }

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.delay-1,
  .reveal.delay-2,
  .reveal.delay-3 {
    opacity: 1;
    transform: none;
    animation: none;
  }
  html { scroll-behavior: auto; }
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 7, 8, 0.78);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory);
  line-height: 1;
}

.mark span {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }

/* —— Hero —— */
.hero {
  padding: 5.5rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 78% 28%, var(--champagne-dim), transparent 65%),
    radial-gradient(ellipse 40% 35% at 12% 75%, var(--accent-dim), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(244, 239, 230, 0.03), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  position: relative;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    gap: 3.5rem;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 28ch;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font);
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--ivory);
  box-shadow: 0 8px 28px var(--accent-dim);
}

.btn-primary:hover {
  background: #e01436;
  box-shadow: 0 12px 36px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--ivory);
}

.btn-ghost:hover {
  border-color: var(--ivory-dim);
  background: rgba(244, 239, 230, 0.04);
  transform: translateY(-1px);
}

/* —— Assist stage —— */
.assist-stage {
  position: relative;
  isolation: isolate;
}

.stage-canvas {
  position: absolute;
  inset: -6% -4%;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 35%, transparent 72%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.stage-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(244, 239, 230, 0.04) inset,
    0 24px 64px rgba(0, 0, 0, 0.45);
}

.stage-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  background: rgba(7, 7, 8, 0.55);
  border-bottom: 1px solid var(--hairline);
}

.chrome-dots {
  display: flex;
  gap: 0.4rem;
}

.chrome-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
  display: block;
}

.chrome-dots i:nth-child(1) { background: var(--accent); }
.chrome-dots i:nth-child(2) { background: var(--champagne); opacity: 0.55; }
.chrome-dots i:nth-child(3) { background: #3a3530; }

.chrome-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.chrome-label em {
  font-style: normal;
  color: var(--champagne);
}

.chrome-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
  border: 1px solid var(--hairline);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.stage-body {
  position: relative;
  min-height: 380px;
  background: linear-gradient(165deg, rgba(14, 14, 16, 0.9) 0%, rgba(7, 7, 8, 0.95) 100%);
}

.assist-collapsed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 380px;
  padding: 2.5rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.assist-collapsed:hover {
  background: var(--accent-dim);
}

.assist-collapsed[hidden],
.assist-panel[hidden] {
  display: none !important;
}

.robot-sil {
  width: 88px;
  height: 108px;
  position: relative;
  filter: drop-shadow(0 0 18px var(--champagne-glow));
}

.robot-sil .head {
  width: 48px;
  height: 40px;
  margin: 0 auto;
  border: 1.5px solid var(--champagne);
  border-radius: 10px 10px 5px 5px;
  background: rgba(196, 165, 116, 0.1);
  position: relative;
}

.robot-sil .eye {
  position: absolute;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 8px var(--ivory);
  animation: blink 4s infinite;
}

.robot-sil .eye.l { left: 10px; }
.robot-sil .eye.r { right: 10px; }

.robot-sil .torso {
  width: 56px;
  height: 44px;
  margin: 6px auto 0;
  border: 1.5px solid rgba(196, 165, 116, 0.35);
  border-top-color: var(--champagne);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(196, 165, 116, 0.12), transparent);
}

.robot-sil .core {
  width: 11px;
  height: 11px;
  margin: 14px auto 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 92%, 100% { opacity: 1; transform: scaleY(1); }
  95% { opacity: 0.2; transform: scaleY(0.15); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .robot-sil .eye,
  .robot-sil .core { animation: none; }
}

.talk-cta {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  border: 1px solid rgba(196, 165, 116, 0.45);
  padding: 0.75rem 1.4rem;
  background: rgba(196, 165, 116, 0.08);
  border-radius: 999px;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.assist-collapsed:hover .talk-cta {
  background: rgba(196, 165, 116, 0.16);
  border-color: var(--champagne);
  box-shadow: 0 0 20px var(--champagne-dim);
}

.assist-panel {
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.assist-msgs {
  flex: 1;
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}

.msg {
  max-width: 88%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}

.msg-bot {
  align-self: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--champagne);
  color: var(--ivory);
}

.msg-bot strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.msg-hint {
  align-self: stretch;
  max-width: 100%;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px dashed var(--hairline-strong);
  background: transparent;
  text-align: center;
  padding: 0.7rem;
}

.assist-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--hairline);
  background: rgba(7, 7, 8, 0.5);
}

.assist-compose input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-family: var(--font);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.assist-compose input:focus {
  border-color: var(--champagne);
}

.assist-compose input::placeholder { color: var(--muted-soft); }

.assist-compose .btn {
  padding: 0.75rem 1.2rem;
  white-space: nowrap;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--hairline);
  background: rgba(5, 5, 6, 0.6);
}

.panel-footer button {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.panel-footer button:hover { color: var(--ivory); }

.panel-footer a {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
}

.panel-footer a:hover { color: var(--ivory); }

.captions {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  display: flex;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg-deep);
}

.cap {
  flex: 1;
  padding: 0.7rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
  border-right: 1px solid var(--hairline);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cap:last-child { border-right: none; }
.cap.on {
  color: var(--ivory);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* —— Sections —— */
.section {
  padding: 6.5rem 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1rem;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 3rem;
  max-width: 18ch;
}

.value-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .value-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.pillar {
  padding: 2rem 1.5rem;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.pillar:hover {
  border-color: rgba(196, 165, 116, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.pillar-mark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--champagne);
  margin-bottom: 1.25rem;
  line-height: 1;
  opacity: 0.85;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
  color: var(--ivory);
}

.pillar p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
}

/* —— Desks —— */
.desks {
  background: var(--bg-elev);
  border-block: 1px solid var(--hairline);
}

.desk-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .desk-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .desk-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}

.desk {
  padding: 2.1rem 1.65rem;
  background: rgba(7, 7, 8, 0.55);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.desk:hover {
  border-color: rgba(196, 165, 116, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.desk-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--champagne);
  margin-bottom: 1.1rem;
  line-height: 1;
  opacity: 0.9;
}

.desk h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.desk p {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}

/* —— CTA —— */
.cta {
  padding: 7.5rem 0 6.5rem;
  text-align: center;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 20% 20% 30%;
  background: radial-gradient(ellipse at center, var(--champagne-dim), transparent 70%);
  pointer-events: none;
}

.cta .wrap { position: relative; }

.cta .section-label {
  margin-bottom: 1.25rem;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cta > .wrap > p,
.cta p:not(.cta-note):not(.section-label) {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2.25rem;
  max-width: 38ch;
  margin-inline: auto;
  font-weight: 300;
}

.cta .hero-actions {
  justify-content: center;
}

.cta-note {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted-soft);
}

.cta-note a {
  color: var(--champagne);
  transition: color 0.25s var(--ease);
}

.cta-note a:hover { color: var(--ivory); }

/* —— Footer —— */
.foot {
  border-top: 1px solid var(--hairline);
  padding: 1.75rem 0;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  font-weight: 300;
}

.foot a:hover { color: var(--champagne); }

/* —— Assist overlay —— */
.assist-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.assist-overlay.open {
  opacity: 1;
  visibility: visible;
}

.overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.5rem;
  background: rgba(7, 7, 8, 0.9);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.overlay-bar .chrome-label { font-size: 0.68rem; }

.overlay-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.overlay-actions a,
.overlay-actions button {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--hairline);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.overlay-actions a {
  color: var(--ivory);
  border-color: rgba(196, 165, 116, 0.4);
  background: rgba(196, 165, 116, 0.1);
}

.overlay-actions a:hover,
.overlay-actions button:hover {
  color: var(--ivory);
  border-color: var(--champagne);
}

.overlay-frame-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1.5rem;
  text-align: center;
}

.overlay-robot {
  width: 72px;
  height: 88px;
  filter: drop-shadow(0 0 22px var(--champagne-glow));
}

.overlay-frame-wrap h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.overlay-frame-wrap p {
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.95rem;
  font-weight: 300;
}

.overlay-frame-wrap .btn { margin-top: 0.5rem; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .wrap { width: min(100% - 1.75rem, var(--max)); }
  .nav-inner { width: min(100% - 1.75rem, var(--max)); }
  .foot-inner { width: min(100% - 1.75rem, var(--max)); }
  .hero { padding: 3.5rem 0 4.5rem; }
  .section { padding: 4.5rem 0; }
  .cta { padding: 5rem 0 4.5rem; }
  .captions { flex-wrap: wrap; }
  .cap { flex: 1 1 45%; border-bottom: 1px solid var(--hairline); }
}

/* —— Mercatus Lab Ops desk —— */
.desk--clickup,
.desk--ops-lab {
  border-color: rgba(196, 165, 116, 0.35);
  background: linear-gradient(160deg, rgba(196, 165, 116, 0.08), rgba(7, 7, 8, 0.55));
}
.desk-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--champagne);
  text-decoration: none;
}
.desk-link:hover { text-decoration: underline; }

.ops-desk,
.clickup-ops { background: var(--bg); padding-top: 5.5rem; }
.ops-lede,
.clickup-lede {
  max-width: 62ch;
  color: var(--muted);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
}

.ops-banner,
.cu-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(196, 165, 116, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--champagne-dim), rgba(200, 16, 46, 0.06));
  color: var(--ivory);
  font-size: 0.9rem;
  line-height: 1.45;
}
.ops-banner-main { display: flex; flex-wrap: wrap; gap: 0.35rem 0.55rem; align-items: baseline; }
.ops-banner-main strong { font-weight: 500; color: var(--ivory); }
.ops-banner-main span { color: var(--ivory-dim); font-weight: 300; }
.ops-banner code,
.cu-banner code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--champagne);
}
.ops-banner-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ops-pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 165, 116, 0.45);
  color: var(--champagne);
  background: rgba(7, 7, 8, 0.35);
}
.ops-pill--muted {
  border-color: var(--hairline-strong);
  color: var(--muted);
}

.ops-panel,
.cu-panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ops-panel-head,
.cu-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}
.ops-panel-head h3,
.cu-panel-head h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 0.55rem;
  letter-spacing: 0.01em;
}
.ops-actions,
.cu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ops-status,
.cu-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.ops-status strong,
.cu-status strong { color: var(--ivory); font-weight: 500; }
.ops-status-detail,
.cu-status-detail {
  width: 100%;
  font-size: 0.78rem;
  opacity: 0.9;
  color: var(--muted);
}
.ops-dot,
.cu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 3px var(--champagne-dim);
}
.ops-status--local .ops-dot { background: var(--champagne); }
.ops-status--checking .ops-dot {
  background: #7a9cc4;
  animation: ops-pulse 1.2s ease infinite;
}
@keyframes ops-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ops-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}
.ops-filter {
  appearance: none;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.ops-filter:hover { color: var(--ivory); border-color: var(--hairline-strong); }
.ops-filter.is-active {
  color: var(--bg);
  background: var(--champagne);
  border-color: var(--champagne);
}

.ops-kanban {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .ops-kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

.ops-col {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(7, 7, 8, 0.55);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.ops-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
}
.ops-col-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
}
.ops-col-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  min-width: 1.4rem;
  text-align: center;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.ops-col-body {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 200px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ops-col-body.is-drop-target {
  background: rgba(196, 165, 116, 0.07);
  outline: 1px dashed rgba(196, 165, 116, 0.45);
  outline-offset: -4px;
  border-radius: 6px;
}
.ops-col-empty,
.ops-empty {
  color: var(--muted-soft);
  font-size: 0.82rem;
  font-weight: 300;
  padding: 0.5rem 0.15rem;
}

.ops-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, rgba(244, 239, 230, 0.04), rgba(7, 7, 8, 0.4));
  padding: 0.85rem 0.9rem 0.75rem;
  cursor: grab;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ops-card:hover {
  border-color: rgba(196, 165, 116, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.ops-card.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
  transform: scale(0.98);
}
.ops-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.ops-list-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
}
.ops-pri {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.ops-pri--urgent {
  border-color: rgba(200, 16, 46, 0.55);
  color: #f0a0ab;
  background: var(--accent-dim);
}
.ops-pri--high {
  border-color: rgba(196, 165, 116, 0.55);
  color: var(--champagne);
}
.ops-pri--low { opacity: 0.7; }
.ops-card-title {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ivory);
  margin: 0 0 0.35rem;
}
.ops-card-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.4;
  margin: 0 0 0.65rem;
}
.ops-card-move { display: block; margin-top: 0.35rem; }
.ops-status-select {
  width: 100%;
  appearance: none;
  background: rgba(7, 7, 8, 0.65);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--ivory-dim);
  font-family: var(--font);
  font-size: 0.75rem;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}
.ops-status-select:focus {
  outline: none;
  border-color: rgba(196, 165, 116, 0.55);
}

.ops-footnote {
  margin-top: 1.15rem;
  font-size: 0.75rem;
  color: var(--muted-soft);
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Close chapter — one-line Ops card (no journey redesign) */
.ops-close-card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(14, 14, 16, 0.65);
  max-width: 36rem;
  transition: border-color 0.25s var(--ease);
}
.ops-close-card:hover { border-color: rgba(196, 165, 116, 0.4); }
.ops-close-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
}
.ops-close-card strong {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ivory);
}
.ops-close-card span.ops-close-hint {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}

/* —— Footer ops micro-link (discreet) —— */
.foot-links {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.foot-ops {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.45;
  color: var(--muted) !important;
  text-decoration: none;
}
.foot-ops:hover {
  opacity: 0.85;
  color: var(--champagne) !important;
}
.nav-ops-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
.ops-page .hero { display: none; }
.ops-page .nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

/* —— Journey shell (narrative GUIDE) —— */
.journey-shell { position: relative; }

.journey-rail {
  position: fixed;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.4rem;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.journey-rail a {
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: var(--muted-soft);
  border: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.journey-rail a:hover {
  color: var(--ivory);
  border-color: var(--hairline-strong);
}

.journey-rail a.is-active {
  color: var(--bg);
  background: var(--champagne);
  border-color: var(--champagne);
}

.journey-frame-note {
  margin-top: 1.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--champagne);
}

.journey-chapter {
  scroll-margin-top: 5.5rem;
}

.chapter-layout {
  display: grid;
  gap: 2rem 3rem;
  align-items: start;
}

.chapter-layout--solo {
  max-width: 720px;
}

@media (min-width: 960px) {
  .chapter-layout:not(.chapter-layout--solo) {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
    grid-template-areas:
      "meta side"
      "body side";
  }
  .chapter-layout:not(.chapter-layout--solo) .chapter-meta { grid-area: meta; }
  .chapter-layout:not(.chapter-layout--solo) .chapter-body { grid-area: body; }
  .chapter-layout:not(.chapter-layout--solo) .chapter-side { grid-area: side; }
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.25rem;
}

.chapter-meta .section-label { margin: 0; }

.chapter-copy {
  color: var(--ivory-dim);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0.75rem 0 1.25rem;
}

.chapter-copy code,
.chapter-highlights code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--champagne);
}

.chapter-highlights {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.chapter-highlights li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.chapter-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--champagne);
  opacity: 0.85;
}

.chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.chapter-stat {
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--bg-panel);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--champagne);
  line-height: 1.45;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* Status chips */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(14, 14, 16, 0.65);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 100%;
}

.status-chip .chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42ch;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6E695F;
  box-shadow: 0 0 0 3px rgba(110, 105, 95, 0.2);
  flex-shrink: 0;
}

.status-chip--checking .chip-dot {
  background: #7a9cc4;
  box-shadow: 0 0 0 3px rgba(122, 156, 196, 0.25);
  animation: chip-pulse 1.2s ease infinite;
}

.status-chip--up {
  color: #b8d4c0;
  border-color: rgba(92, 184, 122, 0.35);
}
.status-chip--up .chip-dot {
  background: #5cb87a;
  box-shadow: 0 0 0 3px rgba(92, 184, 122, 0.25);
}

.status-chip--down {
  color: #d4b0b0;
  border-color: rgba(196, 92, 92, 0.35);
}
.status-chip--down .chip-dot {
  background: #c45c5c;
  box-shadow: 0 0 0 3px rgba(196, 92, 92, 0.25);
}

.status-chip--demo,
.status-chip--unknown {
  color: var(--champagne);
  border-color: rgba(196, 165, 116, 0.4);
}
.status-chip--demo .chip-dot,
.status-chip--unknown .chip-dot {
  background: var(--champagne);
  box-shadow: 0 0 0 3px var(--champagne-dim);
}

.status-chip--local {
  color: var(--muted);
  border-color: var(--hairline-strong);
}
.status-chip--local .chip-dot {
  background: #8a857c;
  box-shadow: 0 0 0 3px rgba(138, 133, 124, 0.2);
}

@keyframes chip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.cta .status-chip {
  margin: 0.75rem 0 1.25rem;
}

@media (max-width: 900px) {
  .journey-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .status-chip--checking .chip-dot { animation: none; }
}
