/* Andy Rogers Images — static rebuild */
:root {
  --ink: #272727;
  --ink-2: #222;
  --ink-3: #111;
  --paper: #fff;
  --muted: #3e3e3e;
  --line: #ddd;
  --focus: #0063dc;
  --max: 1200px;
  --header-h: 4rem;
  --ease: cubic-bezier(.22,.61,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink-3); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: .5rem; top: -3rem; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: .5rem; }

@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-title {
  font-weight: 700; font-size: clamp(.95rem, 2.5vw, 1.15rem);
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.nav-toggle {
  display: none; appearance: none; background: none; border: 1px solid var(--ink);
  color: var(--ink); padding: .4rem .7rem; font: inherit; cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { text-decoration: none; font-size: .85rem; letter-spacing: .04em; }
.site-nav a[aria-current="page"] { font-weight: 700; }
.nav-group { position: relative; }
.nav-group > summary {
  list-style: none; cursor: pointer; font-size: .85rem; letter-spacing: .04em;
  padding: .25rem 0;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: " ▾"; font-size: .7em; opacity: .7; }
.nav-group[open] > summary::after { content: " ▴"; }
/* Current section: bold top-level label only — do NOT auto-open the submenu */
.nav-group.is-current > summary,
.nav-link.is-current > a { font-weight: 700; }
.nav-group .submenu {
  position: absolute; right: 0; top: calc(100% + .4rem);
  min-width: 12rem; background: var(--paper); border: 1px solid var(--line);
  padding: .5rem 0; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  display: none; gap: .15rem; z-index: 60;
}
/* Closed by default; open on hover/focus-within or native click (details[open]) */
.nav-group:hover > .submenu,
.nav-group:focus-within > .submenu,
.nav-group[open] > .submenu {
  display: grid;
}
.nav-group .submenu a { display: block; padding: .4rem 1rem; white-space: nowrap; }
.nav-link { display: inline-flex; align-items: center; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  /* On small screens, only show submenu when explicitly opened (tap), not on sticky hover */
  .nav-group:hover > .submenu { display: none; }
  .nav-group:focus-within > .submenu { display: none; }
  .nav-group[open] > .submenu {
    display: grid;
    position: static; box-shadow: none; border: 0; padding: .25rem 0 .5rem .75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-group .submenu { transition: none; }
}
.resume-actions { margin-top: 1.5rem; }

main { min-height: 60vh; }
.page {
  max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 4rem;
}
.page-header { margin-bottom: 1.75rem; }
.page-header h1 {
  margin: 0 0 .35rem; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .12em; text-transform: uppercase;
}
.page-header p { margin: 0; color: var(--muted); }

.cover-grid, .gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.cover-card, .gallery-item {
  position: relative; display: block; overflow: hidden;
  background: #f3f3f3; color: inherit; text-decoration: none;
  aspect-ratio: 3 / 2;
  animation: fade-up .6s var(--ease) both;
}
.cover-card:nth-child(1){animation-delay:.02s}
.cover-card:nth-child(2){animation-delay:.06s}
.cover-card:nth-child(3){animation-delay:.1s}
.cover-card:nth-child(4){animation-delay:.14s}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.cover-card img, .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.cover-card:hover img, .gallery-item:hover img { transform: scale(1.03); }
.cover-card .label, .gallery-item .cap-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .75rem 1rem; color: #fff;
  background: linear-gradient(transparent, rgba(34,34,34,.78));
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.gallery-item { cursor: zoom-in; border: 0; padding: 0; width: 100%; font: inherit; text-align: left; }
.gallery-item .cap-hint {
  opacity: 0; transition: opacity .25s var(--ease);
  font-weight: 300; text-transform: none; letter-spacing: 0;
  display: block; line-height: 1.4; padding-top: 1.5rem;
  background: linear-gradient(rgba(34,34,34,0), rgba(34,34,34,.82) 1.5rem);
}
.gallery-item .cap-text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.gallery-item:hover .cap-hint, .gallery-item:focus-visible .cap-hint { opacity: 1; }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose .meta { color: var(--muted); }
.job + .job { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.job h2 { margin: 0 0 .35rem; font-size: 1rem; letter-spacing: .04em; }

.video-list { display: grid; gap: 2rem; }
.video-card { display: grid; gap: .75rem; max-width: 54rem; }
.video-thumb {
  position: relative; display: block; aspect-ratio: 16/9; background: #111; overflow: hidden;
  border: 0; padding: 0; cursor: pointer; width: 100%;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 4rem; height: 4rem;
  border-radius: 999px; border: 2px solid #fff; background: rgba(0,0,0,.45);
  color: #fff; font-size: 1.25rem; display: grid; place-items: center;
}
.video-frame { aspect-ratio: 16/9; width: 100%; border: 0; background: #000; }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted); font-size: .85rem; text-align: center;
}

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17,17,17,.94); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto;
}
.lightbox-top, .lightbox-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1rem;
}
.lightbox-bottom { align-items: flex-start; }
.lightbox-stage {
  display: grid; place-items: center; padding: .5rem 1rem; min-height: 0;
  touch-action: pan-y;
}
.lightbox-stage img {
  max-width: min(100%, 1600px); max-height: calc(100vh - 9rem);
  width: auto; height: auto; object-fit: contain;
  margin: 0 auto; user-select: none;
}
.lightbox button {
  appearance: none; background: transparent; border: 1px solid rgba(255,255,255,.35);
  color: #fff; font: inherit; padding: .45rem .8rem; cursor: pointer;
}
.lightbox button:hover { border-color: #fff; }
.lightbox-caption { margin: 0; max-width: 50rem; font-weight: 300; line-height: 1.5; }
.lightbox-count { opacity: .7; font-size: .85rem; white-space: nowrap; }
.lightbox-nav { display: flex; gap: .5rem; }
