/* ============================================================
   GARRETT ERICKSON — PHOTOGRAPHS
   Black / architectural. Hairlines, uppercase grotesk, mono
   index labels. Images do the talking.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-raise: #111111;
  --ink: #e8e8e6;
  --ink-dim: #8f8f8c;
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-soft: rgba(255, 255, 255, 0.07);
  --accent: #ffffff;

  --font-sans: "Helvetica Neue", Helvetica, "Neue Haas Grotesk", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 3.75rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- type utilities ---------- */

.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.rule { border: 0; border-top: 1px solid var(--hairline); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 100;
  border-bottom: 1px solid var(--hairline-soft);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__links a[aria-current="page"]::after {
  content: "";
  display: block;
  border-top: 1px solid var(--ink);
  margin-top: 3px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__img-wrap,
.panel__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img-wrap img,
.panel__img-wrap img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
  filter: brightness(0.82) contrast(1.04);
}

.hero::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.05) 35%,
    rgba(10, 10, 10, 0.05) 60%,
    rgba(10, 10, 10, 0.78) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad) clamp(2rem, 6vh, 4.5rem);
}

.hero__title {
  font-size: clamp(2.6rem, 9.5vw, 8.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--accent);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  animation: drift 2.6s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(-50%); }
  to   { transform: translateY(calc(-50% + 12px)); }
}

/* ---------- statement ---------- */

.statement {
  padding: clamp(5rem, 14vh, 9rem) var(--pad);
  border-bottom: 1px solid var(--hairline-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
}

.statement p {
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  font-weight: 400;
  max-width: 42ch;
  color: var(--ink);
}

.statement p em {
  font-style: normal;
  color: var(--ink-dim);
}

/* ---------- parallax feature panels ---------- */

.panel {
  position: relative;
  height: 92svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.panel--portrait .panel__img-wrap {
  left: 50%;
  right: 0;
}

.panel--portrait::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--bg);
  z-index: 1;
}

.panel--portrait .panel__side {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  bottom: clamp(2rem, 8vh, 5rem);
  width: calc(50% - var(--pad) * 2);
}

.panel--portrait .panel__side h2 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0.75rem 0 1rem;
}

.panel__caption {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 var(--pad) clamp(1.5rem, 5vh, 3rem);
}

.panel__caption h2 {
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel--portrait .panel__caption { display: none; }

/* ---------- home gallery strips ---------- */

.strip {
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
  border-bottom: 1px solid var(--hairline-soft);
}

.strip__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.25rem;
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

.strip__grid .ph:nth-child(3n + 1) { grid-column: span 7; }
.strip__grid .ph:nth-child(3n + 2) { grid-column: span 5; margin-top: clamp(2rem, 6vw, 5rem); }
.strip__grid .ph:nth-child(3n)     { grid-column: 4 / span 6; }

/* ---------- photo card (shared) ---------- */

.ph {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
}

.ph figure {
  overflow: hidden;
  background: var(--bg-raise);
}

.ph img {
  width: 100%;
  height: auto;
  filter: brightness(0.94);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.ph:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

.ph figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
}

.ph__title {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- archive CTA ---------- */

.cta {
  display: block;
  padding: clamp(5rem, 16vh, 10rem) var(--pad);
  text-align: center;
  position: relative;
}

.cta__big {
  font-size: clamp(2.2rem, 7.5vw, 6.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: letter-spacing 0.45s ease;
}

.cta:hover .cta__big { letter-spacing: 0.12em; }

.cta .mono { display: block; margin-top: 1.25rem; }

/* ---------- archive page ---------- */

.archive-head {
  padding: calc(var(--nav-h) + clamp(3rem, 9vh, 6rem)) var(--pad) 0;
}

.archive-head h1 {
  font-size: clamp(2.6rem, 8vw, 7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.95;
}

.archive-head .mono { display: block; margin-top: 1rem; }

.filters {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.1rem var(--pad);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline-soft);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-btn sup {
  font-size: 0.55rem;
  margin-left: 0.35em;
  opacity: 0.7;
}

.filter-btn:hover { color: var(--ink); border-color: var(--ink-dim); }

.filter-btn.is-active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.archive-grid {
  columns: 3;
  column-gap: clamp(1rem, 2vw, 1.75rem);
  padding: clamp(2rem, 5vh, 3.5rem) var(--pad) clamp(4rem, 10vh, 6rem);
}

.archive-grid .ph {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.archive-empty {
  column-span: all;
  padding: 4rem var(--pad) 8rem;
  text-align: center;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 5, 0.96);
  display: none;
  flex-direction: column;
  padding: var(--pad);
}

.lightbox.is-open { display: flex; }

.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  margin-top: 1rem;
}

.lightbox__nav {
  display: flex;
  gap: 1.5rem;
}

.lightbox button {
  background: none;
  border: 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.lightbox button:hover { color: var(--ink); }

.lightbox__close {
  position: absolute;
  top: 1.1rem;
  right: var(--pad);
}

/* ---------- coming soon (sports) ---------- */

.soon {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 4rem;
}

.soon__frame {
  border: 1px solid var(--hairline);
  padding: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 10vw, 9rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.soon__frame::before,
.soon__frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
}

.soon__frame::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.soon__frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.soon__title {
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  text-stroke: 1px var(--ink);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid var(--hairline-soft);
}

.footer a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; }

  .strip__grid .ph:nth-child(3n + 1),
  .strip__grid .ph:nth-child(3n + 2),
  .strip__grid .ph:nth-child(3n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .archive-grid { columns: 2; }

  .panel--portrait .panel__img-wrap { left: 0; }
  .panel--portrait::before { display: none; }
  .panel--portrait .panel__side { display: none; }
  .panel--portrait .panel__caption { display: flex; }
}

@media (max-width: 560px) {
  .archive-grid { columns: 1; }
  .nav__links { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__img-wrap img,
  .panel__img-wrap img {
    top: 0;
    height: 100%;
    transform: none !important;
  }

  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
