/* Wilson Photography — homepage (matches the live photography-homepage.liquid section exactly) */

:root {
  --gap: 3px;
}

/* ── INTRO ── */
.ph-intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: phIntroUp 0.7s cubic-bezier(0.76, 0, 0.24, 1) 1.6s forwards;
  pointer-events: none;
}

@keyframes phIntroUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

.ph-intro-name {
  font-size: clamp(52px, 9.5vw, 136px);
  font-weight: 200;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  animation: phLiftIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.ph-intro-tagline {
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: phLiftIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
  margin-top: -6px;
}

@keyframes phLiftIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HEADER ── */
.ph-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg);
  opacity: 0;
  animation: phLiftIn 0.6s ease 2.3s forwards;
}

.ph-logo {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.ph-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.ph-nav a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.ph-nav a:hover { color: var(--text); }

.ph-nav .nav-prints {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
}

/* ── GRID ── */
.ph-grid {
  padding-top: calc(var(--nav-h) + var(--gap));
  column-count: 4;
  column-gap: var(--gap);
  opacity: 0;
  animation: phLiftIn 1s ease 2.2s forwards;
  list-style: none;
}

.ph-grid > li {
  break-inside: avoid;
  margin-bottom: var(--gap);
}

.ph-item {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}

.ph-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.58);
  opacity: 0;
  transition: opacity 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ph-item:hover .ph-item-overlay,
.ph-item:focus-visible .ph-item-overlay { opacity: 1; }

.ph-item-name {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #eeebe6;
  text-align: center;
  padding: 0 12px;
  transform: translateY(4px);
  transition: transform 0.28s ease;
}

.ph-item:hover .ph-item-name,
.ph-item:focus-visible .ph-item-name { transform: translateY(0); }

.ph-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── FOOTER ── */
.ph-footer {
  padding: 48px 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: phLiftIn 0.6s ease 2.5s forwards;
  flex-wrap: wrap;
  gap: 16px;
}

.ph-footer p,
.ph-footer a {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.ph-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .ph-grid { column-count: 3; } }

@media (max-width: 640px) {
  :root { --nav-h: 82px; }

  .ph-header {
    flex-direction: column;
    height: var(--nav-h);
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .ph-logo { text-align: center; }

  .ph-nav {
    gap: 20px;
    justify-content: center;
  }

  .ph-nav .nav-hide { display: none; }
  .ph-grid { column-count: 2; }
}

@media (max-width: 380px) { .ph-grid { column-count: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ph-intro { animation: none; display: none; }
  .ph-intro-name, .ph-intro-tagline { animation: none; opacity: 1; }
  .ph-header, .ph-grid, .ph-footer { animation: none; opacity: 1; }
}
