:root {
  --bg: #0c0907;
  --surface: #171210;
  --surface-2: #221b17;
  --line: rgba(217, 164, 105, 0.14);
  --text: #faf6f0;
  --muted: rgba(250, 246, 240, 0.55);
  --radius: 18px;
  --gap: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255, 255, 255, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 22px 44px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 22px 0 0;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 18px auto 0;
  max-width: 28ch;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(245, 245, 247, 0.9);
}

.intro {
  margin: 16px auto 0;
  max-width: 52ch;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* ---------- Grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 96px;
}

@media (min-width: 620px)  { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px)  { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Card ---------- */
.th {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow:
    0 0 0 1px var(--line),
    0 18px 40px -24px rgba(0, 0, 0, 0.9);
  transform: translateZ(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* soft shimmer while the photo is not loaded yet */
.th::before,
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.th.ready::before,
.banner.ready::before { opacity: 0; animation: none; }

@keyframes shimmer {
  from { background-position: 140% 0; }
  to   { background-position: -40% 0; }
}

@media (hover: hover) {
  .th:hover {
    transform: translateY(-4px) scale(1.012);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.16),
      0 30px 60px -20px rgba(0, 0, 0, 1);
  }
}

.th svg,
.banner svg {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

[data-go] { cursor: pointer; }

.th svg:focus-visible,
.banner svg:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -3px;
}

.th image,
.banner image {
  opacity: 0;
  transition: opacity 0.6s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.th image.loaded,
.banner image.loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .th, .th image, .th::before,
  .banner, .banner image, .banner::before { transition: none; animation: none; }
  .th:hover { transform: none; }
}

/* ---------- Banners ---------- */
.banner {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 1180 / 220;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media (hover: hover) {
  .banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 60px -20px rgba(0, 0, 0, 1);
  }
}

@media (max-width: 619px) {
  .banner { aspect-ratio: 16 / 7; }
}
