:root {
  --brand: #1f4e79;
  --brand-dark: #14304b;
  --accent: #e8a317;
  --text: #1d2226;
  --muted: #5b666f;
  --bg: #f6f7f9;
  --card: #fff;
  --line: #dde2e7;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: .75rem 1rem;
  z-index: 200;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--brand);
  letter-spacing: -.01em;
}
.site-header nav { display: flex; gap: 1.1rem; }
.site-header nav a {
  text-decoration: none;
  color: var(--text);
  padding-bottom: 2px;
  font-weight: 500;
}
.site-header nav a.active,
.site-header nav a:hover { border-bottom: 2px solid var(--accent); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 12vw, 7rem) 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.hero-img,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-img { object-fit: cover; z-index: -2; }
/* Rotating banner: slides are stacked and cross-faded by app.js. */
.hero-slide { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  background: linear-gradient(rgba(9, 26, 42, .60), rgba(9, 26, 42, .74));
  z-index: -1;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0 0 .6rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero p { font-size: clamp(1rem, 2.2vw, 1.15rem); margin: 0 auto 1.5rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #14100a;
  padding: .75rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 650;
}
.btn:hover { background: #f2b53a; color: #14100a; }
.btn-alt {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .85);
  color: #fff;
  padding: calc(.75rem - 2px) calc(1.4rem - 2px);
}
.btn-alt:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-dark); color: #fff; }

/* Layout */
.wrap { max-width: 1000px; margin: 0 auto; padding: clamp(1.75rem, 5vw, 2.75rem) 1.25rem; }
main#main, .wrap > h1:first-child { padding-top: 2rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 .6rem; }
h2 {
  color: var(--brand);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 0 0 .75rem;
  letter-spacing: -.01em;
}
h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.lede { color: var(--muted); max-width: 62ch; margin-top: 0; }
.back { margin: 0 0 .5rem; }
.back a { text-decoration: none; font-weight: 500; }
.more { margin-top: 1.5rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.card p { margin: 0; color: var(--muted); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }

/* Photo grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
}
/* There are only a few albums, so auto-fit collapses the unused tracks and the
   cards stretch to fill the row instead of leaving a hole at the end. */
.grid.albums { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shot img,
.album img {
  width: 100%;
  /* height: auto defeats the width/height attributes' presentational hint so
     aspect-ratio actually applies; without it a portrait photo renders full
     height and blows the card out. */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e3e7ea;
}
.shot:hover img { opacity: .92; }

/* Rotating "Recent Work": six tiles show at a time; app.js advances the
   strip by moving the first tile to the end, and the arriving tile fades in. */
.recent > .shot:nth-child(n+7) { display: none; }
.recent > .shot.is-entering { animation: shot-in .6s ease-out; }
@keyframes shot-in { from { opacity: 0; transform: scale(.97); } }

.album { position: relative; display: block; text-decoration: none; color: #fff; }
.album span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem .85rem .7rem;
  background: linear-gradient(transparent, rgba(8, 20, 32, .82));
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
}
.album small { opacity: .8; font-weight: 400; }

/* Contact */
.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.contact p { margin: .35rem 0; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.75rem 1.25rem 2.25rem;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: .25rem 0; }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .5rem .8rem;
  border-radius: 6px;
}
.lb button:hover { background: rgba(255, 255, 255, .14); }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

body.lb-open { overflow: hidden; }

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
  .grid.albums { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .site-header nav { gap: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
