/* ProxyLair public showcase (ADR-014) -- design tokens ported directly
   from HIRO's src/api/static/styles.css for brand consistency across
   both surfaces (per ADR-014 2.2's aesthetic requirement). */

:root {
  --bg: #05080b;
  --bg-deep: #020304;
  --surface: #0a131a;
  --surface-raised: #0f1c26;
  --hairline: rgba(0, 229, 255, 0.16);
  --hairline-strong: rgba(0, 229, 255, 0.35);
  --text: #e8f6fb;
  --text-muted: #6f96a6;
  --cyan: #00e5ff;
  --cyan-dim: #0a8fa8;
  --cyan-glow: rgba(0, 229, 255, 0.55);
  --cyan-ink: #00232b;
  --magenta: #ff3d9a;
  --magenta-glow: rgba(255, 61, 154, 0.5);
  --amber: #ffb84d;
  --success: #2dffb3;
  --error: #ff4d6a;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --mono: "SFMono-Regular", ui-monospace, Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
  margin: 0 0 10px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(2,3,4,0.85), transparent);
  backdrop-filter: blur(6px);
}

.nav-logo { height: 30px; }

.nav-links {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--cyan); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  gap: 24px;
  opacity: 0.22;
  filter: blur(1px) saturate(1.1);
  animation: hero-drift 40s linear infinite;
}
.hero-backdrop img {
  height: 120%;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
@keyframes hero-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-33%); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 78%);
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-wordmark { height: 96px; margin: 0 auto 28px; filter: drop-shadow(0 0 24px var(--cyan-glow)); }

.hero-tagline {
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--text-muted);
  margin: 0 0 34px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.5px solid var(--hairline-strong);
  background: var(--surface-raised);
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  border-color: var(--cyan);
  color: var(--cyan-ink);
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.btn-primary:hover { box-shadow: 0 0 34px var(--cyan-glow); }

/* ---------- Section shell ---------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 24px;
}

.section-heading { max-width: 640px; margin: 0 0 48px; }
.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
}
.section-intro { color: var(--text-muted); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.flip-card {
  perspective: 1400px;
  aspect-ratio: 5 / 7;
  cursor: pointer;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 550ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px var(--hairline), 0 16px 40px rgba(0,0,0,0.5);
}
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-raised);
}
.flip-card-face img { width: 100%; height: 100%; object-fit: cover; }
.flip-card-back { transform: rotateY(180deg); }

.flip-card:hover .flip-card-inner {
  box-shadow: 0 0 0 1.5px var(--card-accent, var(--cyan)), 0 20px 50px rgba(0,0,0,0.55),
              0 0 30px color-mix(in srgb, var(--card-accent, var(--cyan)) 35%, transparent);
}

.card-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(2,3,4,0.92), transparent);
  pointer-events: none;
}
.card-meta .title { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.card-meta .sub { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em; }

.card-expand-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: rgba(5,8,11,0.7);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.card-expand-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.gallery-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 32px 0 0;
}

/* ---------- Process ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.process-step {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
}
.process-step .num { font-family: var(--mono); color: var(--cyan); font-size: 13px; opacity: 0.8; }
.process-step h3 { margin: 8px 0 8px; font-size: 17px; }
.process-step p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

.material-note {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--cyan);
  padding-left: 16px;
}

/* ---------- Watch / content hub ---------- */

.watch-embed {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 32px;
}
.watch-embed iframe { width: 100%; height: 100%; border: 0; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  transition: border-color 150ms ease, color 150ms ease;
}
.social-pill:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Contact ---------- */

.contact { text-align: center; }
.contact h2 { max-width: 100%; }
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Persistent contact dock ---------- */

.contact-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  gap: 10px;
}
.contact-dock .btn { padding: 12px 20px; font-size: 13px; }

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2,3,4,0.85);
  backdrop-filter: blur(4px);
}
.lightbox-overlay.hidden { display: none; }

.lightbox-panel {
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.lightbox-image { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.lightbox-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.lightbox-sub { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin: 0 0 14px; }
.lightbox-caption { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0 0 18px; }

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 40px 24px 100px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .section { padding: 80px 20px; }
  .nav { padding: 14px 18px; }
  .nav-links { gap: 14px; font-size: 11px; }
}
