/* ===== Get Out And Drive — Portfolio Styles ===== */

@import url('fonts/fonts.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #07070d;
  color: #ece4d6;
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  overflow: hidden;
}

.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; letter-spacing: -0.015em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ===== Animations ===== */
@keyframes goad-fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes goad-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes goad-layer  { from { opacity: 0; } to { opacity: 1; } }
@keyframes goad-img    { from { opacity: 0; } to { opacity: 1; } }

.goad-fadeup     { animation: goad-fadeup 1.1s cubic-bezier(.2,.6,.2,1) forwards; opacity: 0; }
.goad-fadein     { animation: goad-fadein 0.4s ease-out forwards; opacity: 0; }
.goad-layer-fade { animation: goad-layer 0.4s ease-out; }
.goad-img-fade   { animation: goad-img 0.3s ease-out; }

/* ===== App container ===== */
.goad-app {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #07070d;
}
.goad-canvas { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.goad-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at center, transparent 55%, rgba(0,0,0,0.45) 100%);
}

/* ===== Loader & empty state ===== */
.goad-loader, .goad-empty {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: #07070d;
  text-align: center;
  padding: 20px;
}
.goad-empty { flex-direction: column; }

/* ===== Top bar ===== */
.goad-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
  z-index: 26;
}
@media (min-width: 768px) { .goad-topbar { padding: 32px; } }
.goad-topbar-right { display: flex; gap: 20px; align-items: center; }
@media (min-width: 768px) { .goad-topbar-right { gap: 28px; } }

/* ===== Buttons (link-style) ===== */
.goad-btn-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  background: none; border: none; color: #ece4d6;
  padding: 8px 0; cursor: pointer;
  transition: opacity 0.2s ease;
  border-bottom: 1px solid transparent;
}
.goad-btn-link:hover { opacity: 0.6; }
.goad-btn-link.active { border-bottom-color: #ece4d6; }

/* ===== View toggle ===== */
.goad-toggle { display: flex; align-items: center; }
.goad-toggle-btn {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  background: none; border: none;
  padding: 8px;
  color: #6e6458; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease;
}
.goad-toggle-btn:hover { opacity: 0.8; }
.goad-toggle-btn.active { color: #ece4d6; border-bottom-color: #ece4d6; }
.goad-toggle-sep {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: #3a3530; margin: 0 4px;
}

/* ===== Hints ===== */
.goad-hint-center, .goad-hint-right, .goad-hint-left {
  position: absolute; bottom: 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #7a7062; z-index: 20;
}
.goad-hint-center {
  left: 50%; transform: translateX(-50%);
  text-align: center; white-space: nowrap;
  pointer-events: none;
}
.goad-hint-right { right: 20px; pointer-events: none; }
.goad-hint-left  { left: 20px; }
.goad-hint-left a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.goad-hint-left a:hover { opacity: 0.85; border-bottom-color: #7a7062; }
.goad-hint-left .sep { margin: 0 6px; color: #3a3530; }
@media (min-width: 768px) {
  .goad-hint-center, .goad-hint-right, .goad-hint-left { font-size: 10px; }
  .goad-hint-right { right: 32px; }
  .goad-hint-left  { left: 32px; }
}
/* Hide center hint on narrow screens — legal links take priority for space */
@media (max-width: 640px) {
  .goad-hint-center { display: none; }
}

/* ===== Chronological Index ===== */
.goad-index {
  position: fixed; inset: 0;
  background: #07070d;
  overflow-y: auto;
  z-index: 25;
}
.goad-index-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
@media (min-width: 768px) {
  .goad-index-header { padding: 48px 48px 64px; }
}
.goad-index-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 96px;
}
@media (min-width: 768px) {
  .goad-index-list { padding: 0 0 96px; }
}
.goad-index-item { margin-bottom: 64px; }
@media (min-width: 768px) { .goad-index-item { margin-bottom: 112px; } }
.goad-index-imgbtn {
  display: block; width: 100%; padding: 0; border: none;
  background: none; cursor: pointer;
  transition: opacity 0.2s ease;
}
.goad-index-imgbtn:hover { opacity: 0.9; }
.goad-index-imgbtn img {
  width: 100%; display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.goad-index-textbtn {
  display: block; margin: 24px auto 0; text-align: center;
  background: none; border: none; cursor: pointer; padding: 0;
  transition: opacity 0.2s ease;
}
.goad-index-textbtn:hover { opacity: 0.8; }

/* ===== Album overlay ===== */
.goad-album {
  position: fixed; inset: 0;
  background: #07070d;
  overflow-y: auto;
  z-index: 30;
}

.goad-album-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(7,7,13,0.95) 0%, rgba(7,7,13,0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 768px) { .goad-album-topbar { padding: 32px; } }
.goad-album-topbar-right {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #7a7062;
}

.goad-album-title {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px; padding-right: 20px;
}
@media (min-width: 768px) {
  .goad-album-title { padding-left: 48px; padding-right: 48px; }
}

/* ===== Sheet (contact sheet) ===== */
.goad-sheet-hint {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #7a7062;
}
@media (min-width: 768px) { .goad-sheet-hint { padding: 0 48px 16px; } }
.goad-sheet-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 0 20px 64px;
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .goad-sheet-grid {
    padding: 0 48px 96px;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .goad-sheet-grid { grid-template-columns: repeat(4, 1fr); }
}
.goad-sheet-tile {
  position: relative; overflow: hidden; cursor: pointer;
  background: none; border: none; padding: 0;
  display: block; width: 100%;
}
.goad-sheet-tile img {
  width: 100%; display: block;
  aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 0.7s ease;
}
.goad-sheet-tile:hover img { transform: scale(1.05); }
.goad-sheet-tile-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,1);
  opacity: 0; transition: opacity 0.3s;
}
.goad-sheet-tile:hover .goad-sheet-tile-overlay { opacity: 0.3; }
.goad-sheet-tile-num {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #ece4d6; opacity: 0.6;
  transition: opacity 0.3s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.goad-sheet-tile:hover .goad-sheet-tile-num { opacity: 1; }

/* ===== Filmstrip (within album) ===== */
.goad-strip {
  max-width: 720px; margin: 0 auto;
  padding: 0 20px 80px;
}
@media (min-width: 768px) { .goad-strip { padding: 0 0 80px; } }
.goad-strip-item { margin-bottom: 64px; }
@media (min-width: 768px) { .goad-strip-item { margin-bottom: 96px; } }
.goad-strip-imgbtn {
  display: block; width: 100%; padding: 0; border: none;
  background: none; cursor: pointer;
  transition: opacity 0.2s ease;
}
.goad-strip-imgbtn:hover { opacity: 0.9; }
.goad-strip-imgbtn img {
  width: 100%; display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.goad-strip-num {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  margin-top: 16px; text-align: center; color: #5a5248;
}
.goad-strip-end {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  text-align: center; padding-bottom: 32px; color: #5a5248;
}

/* ===== Fullscreen ===== */
.goad-fs {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(7,7,13,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.goad-fs-topbar {
  position: absolute; top: 20px; right: 20px; z-index: 51;
  display: flex; gap: 16px;
}
@media (min-width: 768px) {
  .goad-fs-topbar { top: 32px; right: 32px; gap: 24px; }
}
.goad-fs-stage {
  position: absolute; top: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  transition: right 0.5s cubic-bezier(.2,.6,.2,1);
}
.goad-fs-stage img {
  display: block;
  max-width: 92%; max-height: 88vh; object-fit: contain;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.8));
}
.goad-fs-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: none; border: none; cursor: pointer;
  color: #ece4d6; opacity: 0.4;
  transition: opacity 0.2s ease;
  z-index: 51;
}
.goad-fs-nav:hover { opacity: 1; }
.goad-fs-prev { left: 20px; }
.goad-fs-next { right: 20px; transition: right 0.5s cubic-bezier(.2,.6,.2,1), opacity 0.2s ease; }
@media (min-width: 768px) { .goad-fs-nav { display: flex; } }

.goad-fs-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #7a7062; pointer-events: none; white-space: nowrap;
  text-align: center;
  transition: right 0.5s;
}
.goad-desktop-only { display: none; }
.goad-mobile-only  { display: inline; }
@media (min-width: 768px) {
  .goad-desktop-only { display: inline; }
  .goad-mobile-only  { display: none; }
}

.goad-fs-exif {
  position: absolute; top: 0; right: 0; height: 100%; width: 320px;
  background: rgba(15,15,23,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid #1f1d28;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.2,.6,.2,1);
  padding: 96px 32px 32px;
  overflow-y: auto;
  z-index: 50;
}
.goad-fs-exif.open { transform: translateX(0); }
.goad-fs-exif-row { margin-bottom: 20px; }

/* ===== About panel ===== */
.goad-about {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,7,13,0.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.goad-about-inner {
  max-width: 560px; margin: 0 auto;
  padding: 0 32px;
}
.goad-about-text { font-size: 15px; line-height: 1.7; color: #b8b0a2; }
.goad-about-text p { margin: 0 0 16px; }
.goad-about-text a { color: #ece4d6; }
@media (min-width: 768px) { .goad-about-text { font-size: 16px; } }
.goad-about-close { position: absolute; top: 20px; right: 20px; }
@media (min-width: 768px) { .goad-about-close { top: 32px; right: 32px; } }

/* Hide WordPress admin bar offset issue */
html { margin-top: 0 !important; }
* html body { margin-top: 0 !important; }
