/* ═══════════════════════════════════════════════════
   POLLOCK GEOMETRIES — hudsoncw.com
   ═══════════════════════════════════════════════════ */

/* ─── PAGE RESET (kills Understrap wrapper padding) ─── */
.page-template-page-pollock .site-main,
.page-template-page-pollock .container,
.page-template-page-pollock .entry-content,
.page-template-page-pollock #wrapper,
.page-template-page-pollock #page-wrapper,
.page-template-page-pollock #content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.page-template-page-pollock #wrapper-navbar,
.page-template-page-pollock #wrapper-footer,
.page-template-page-pollock .entry-header,
.page-template-page-pollock footer#colophon {
  display: none !important;
}

/* ─── TOKENS ─── */
#pollock-page {
  --pk-bg: #0a0a0a;
  --pk-fg: #e8e4de;
  --pk-accent: #c4a14a;
  --pk-muted: #5a564e;
  --pk-panel: rgba(10,10,10,0.88);
  --pk-border: rgba(200,190,170,0.12);
  --pk-font-display: 'Instrument Serif', Georgia, serif;
  --pk-font-mono: 'DM Mono', 'Courier New', monospace;
}

/* ─── BASE ─── */
#pollock-page {
  position: fixed;
  inset: 0;
  background: var(--pk-bg);
  color: var(--pk-fg);
  font-family: var(--pk-font-mono);
  overflow: hidden;
}

#pollock-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#pollock-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ─── LOADING ─── */
.pollock-loading {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: var(--pk-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.pollock-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.pollock-loading__title {
  font-family: var(--pk-font-display);
  font-size: 22px;
  color: var(--pk-fg);
  margin-bottom: 12px;
}

.pollock-loading__track {
  width: 200px;
  height: 1px;
  background: var(--pk-border);
  position: relative;
  overflow: hidden;
}

.pollock-loading__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--pk-accent);
  transition: width 0.3s ease;
}

.pollock-loading__status {
  font-size: 10px;
  color: var(--pk-muted);
  letter-spacing: 2px;
  margin-top: 10px;
}

/* ─── HEADER ─── */
.pollock-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.pollock-header__title {
  font-family: var(--pk-font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--pk-fg);
  line-height: 1;
  margin: 0;
}

.pollock-header__sub {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pk-muted);
  margin-top: 4px;
}

.pollock-header__right {
  text-align: right;
  font-size: 10px;
  color: var(--pk-muted);
  letter-spacing: 1px;
  line-height: 1.6;
}

.pollock-header__right a {
  color: var(--pk-accent);
  text-decoration: none;
}

.pollock-header__right a:hover {
  text-decoration: underline;
}

/* ─── CONTROLS (left rail) ─── */
.pollock-controls {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pollock-ctrl-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--pk-border);
  background: var(--pk-panel);
  color: var(--pk-fg);
  font-family: var(--pk-font-mono);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
  line-height: 1;
}

.pollock-ctrl-btn:hover {
  border-color: var(--pk-accent);
  color: var(--pk-accent);
}

.pollock-ctrl-btn.active {
  border-color: var(--pk-accent);
  background: rgba(196,161,74,0.1);
  color: var(--pk-accent);
}

.pollock-ctrl-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ─── FOOTER (bottom bar) ─── */
.pollock-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.pollock-footer__art-title {
  font-family: var(--pk-font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--pk-fg);
  max-width: 400px;
  line-height: 1.3;
}

.pollock-footer__art-date {
  font-size: 10px;
  color: var(--pk-muted);
  letter-spacing: 2px;
  margin-top: 4px;
}

.pollock-footer__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.pollock-footer__counter {
  font-size: 10px;
  color: var(--pk-muted);
  letter-spacing: 2px;
  text-align: center;
  min-width: 60px;
}

.pollock-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--pk-border);
  background: var(--pk-panel);
  color: var(--pk-fg);
  font-family: var(--pk-font-mono);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
}

.pollock-nav-btn:hover {
  border-color: var(--pk-accent);
  color: var(--pk-accent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .pollock-header { padding: 14px 16px; }
  .pollock-header__title { font-size: 20px; }
  .pollock-header__right { display: none; }

  .pollock-controls {
    left: 12px;
    gap: 4px;
  }

  .pollock-ctrl-btn {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }

  .pollock-footer { padding: 14px 16px; }
  .pollock-footer__art-title { font-size: 14px; max-width: 200px; }
}
