:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --fg: #f4f4f5;
  --muted: #8a8a92;
  --accent: #ff3d2e;      /* sports-creative red */
  --line: #232327;
  --gap: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(16px, 4vw, 48px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-name {
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.tab-nav {
  display: flex;
  gap: clamp(10px, 2.5vw, 26px);
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--fg); }
.tab.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.tab.disabled {
  color: #4a4a50;
  cursor: default;
}

/* ---------- Gallery grid ---------- */
main { padding: clamp(16px, 4vw, 48px); }

.photo-grid {
  /* Column masonry: handles mixed portrait/landscape cleanly, no fixed rows. */
  column-count: 4;
  column-gap: var(--gap);
}
@media (max-width: 1100px) { .photo-grid { column-count: 3; } }
@media (max-width: 760px)  { .photo-grid { column-count: 2; } }
@media (max-width: 440px)  { .photo-grid { column-count: 1; } }

.tile {
  display: block;
  margin: 0 0 var(--gap);
  break-inside: avoid;
  background: var(--bg-2);
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: saturate(0.95);
}
.tile:hover img {
  transform: scale(1.035);
  filter: saturate(1.1);
}

.tile { cursor: zoom-in; }

/* Social tiles link out to Instagram rather than opening the lightbox. */
.social-tile { cursor: pointer; }
.social-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.social-tile:hover .social-badge,
.social-tile:focus-visible .social-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lb-lock { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 7, 0.96);
  backdrop-filter: blur(4px);
  padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom);
  touch-action: pan-y;
}
.lightbox[data-open="true"] { display: flex; }

.lb-stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img {
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lb-btn {
  position: absolute;
  background: rgba(20, 20, 22, 0.6);
  color: var(--fg);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.9rem;
  font-weight: 700;
}
.lb-prev { left: clamp(8px, 3vw, 28px); }
.lb-next { right: clamp(8px, 3vw, 28px); }

.lb-close {
  top: clamp(10px, 3vw, 24px);
  right: clamp(10px, 3vw, 24px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
}

@media (max-width: 520px) {
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.5rem; }
}

/* ---------- About / Contact ---------- */
.about {
  padding: clamp(20px, 4vw, 48px);
  max-width: 1000px;
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Placeholder headshot slot: a styled empty frame + silhouette, not a stock photo. */
.headshot { margin: 0; }
.headshot-placeholder .headshot-silhouette {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 38%, var(--line) 0 16%, transparent 17%),
    radial-gradient(ellipse 60% 42% at 50% 108%, var(--line) 0 40%, transparent 41%),
    var(--bg-2);
}
.headshot-placeholder figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.about-name {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.01em;
}
.about-role {
  margin: 4px 0 20px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}
.about-text p {
  color: #d6d6da;
  line-height: 1.7;
  margin: 0 0 16px;
}
.contact-block {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-block h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 10px; }
.contact-list a {
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.contact-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 48px);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
