/* ==========================================================================
   Monochrome Grayscale Theme — zayaanhamid.ca
   ========================================================================== */

:root {
  --bg-base: #111113;
  --bg-elevated: #18181b;
  --bg-panel-hover: rgba(255, 255, 255, 0.035);
  --bg-center-tint: rgba(255, 255, 255, 0.02);
  --border-subtle: #27272a;
  --border-strong: #3f3f46;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-light: #e4e4e7;
  --accent-white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  height: 100%;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 17, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #27272a;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-pill {
  background: #18181b;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent-light);
  background: #27272a;
}

.icon-link {
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.icon-link:hover {
  color: var(--text-primary);
  background: #27272a;
}

/* ==========================================================================
   3-Column Split Landing View
   ========================================================================== */

.split-container {
  position: relative;
  height: calc(100vh - 104px);
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.center-badge {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #18181b;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.path-panel {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  border-right: 1px solid var(--border-subtle);
  transition: background-color 0.35s ease;
}

.path-panel:last-of-type {
  border-right: none;
}

.path-panel:hover {
  background-color: var(--bg-panel-hover);
}

.path-center {
  background-color: var(--bg-center-tint);
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
}

.path-center:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Viewfinder HUD on Center Photography Panel */
.viewfinder-corners {
  position: absolute;
  inset: 28px;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.path-center:hover .viewfinder-corners {
  opacity: 0.9;
}

.viewfinder-corners span[class^="vf-"] {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--text-secondary);
  border-style: solid;
}

.vf-tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.vf-tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.vf-bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.vf-br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

.vf-rec {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: auto !important;
  height: auto !important;
  border: none !important;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Panel Typography & Buttons */
.panel-content {
  max-width: 360px;
  margin: 0 auto;
}

.panel-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-title {
  font-size: clamp(1.9rem, 2.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.panel-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #18181b;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.panel-btn:hover {
  background: #27272a;
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.panel-btn-primary {
  background: var(--accent-light);
  color: #09090b;
  border-color: var(--accent-white);
  font-weight: 600;
}

.panel-btn-primary:hover {
  background: var(--accent-white);
  color: #09090b;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  padding: 0 28px;
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  z-index: 30;
}

/* ==========================================================================
   Camera Rise + Flashbang Overlay
   ========================================================================== */

.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 11, 0);
  transition: background 0.35s ease;
}

.camera-overlay.active {
  pointer-events: all;
  background: rgba(9, 9, 11, 0.72);
}

.camera-rig {
  transform: translateY(115vh) scale(0.85);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 102;
}

.camera-overlay.rise .camera-rig {
  transform: translateY(0) scale(1.12);
}

.camera-svg {
  width: min(360px, 80vw);
  height: auto;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.85));
}

.flash-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  z-index: 105;
  pointer-events: none;
  transition: opacity 0.08s ease-out;
}

.flash-screen.bang {
  opacity: 1;
}

.flash-screen.fade-out {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Blank /media Portal Takeover
   ========================================================================== */

.media-portal {
  position: fixed;
  inset: 0;
  background: #0d0d0f;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.4s ease;
}

.media-portal.visible {
  opacity: 1;
  pointer-events: all;
}

.portal-back-btn {
  position: fixed;
  top: 18px;
  left: 190px;
  z-index: 95;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.portal-back-btn:hover {
  background: #27272a;
  border-color: var(--accent-white);
}

/* ==========================================================================
   Responsive Breakpoint
   ========================================================================== */

@media (max-width: 900px) {
  html, body {
    overflow-y: auto;
  }

  .split-container {
    height: auto;
    min-height: calc(100vh - 104px);
    grid-template-columns: 1fr;
  }

  .path-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 56px 24px;
  }

  .path-center {
    border-left: none;
    border-right: none;
  }

  .center-badge {
    display: none;
  }

  .site-footer span:nth-child(2) {
    display: none;
  }
}

.media-portal {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

#custom-media-site-root {
  height: 100%;
}

.media-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0d0d0f;
}