/* --------- RESET & BASE --------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0; /* no rounded corners anywhere */
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --bg-alt: #101010;
  --bg-alt-2: #151515;
  --text: #ffffff;
  --muted: #909090;
  --border-subtle: #2a2a2a;
  --error: #ff4d4d;
  --success: #38c172;
  --header-height: 64px;
  --transition-fast: 0.18s ease-out;
  --transition-base: 0.25s ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #000;
  color: var(--text);
  line-height: 1.5;
}

:target {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* --------- LAYOUT HELPERS --------- */
.section {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section--padded {
  padding: 5rem 1.5rem;
}

.section--dark {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--darker {
  background: var(--bg-alt-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section__header {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__title {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: "Anton", system-ui;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--muted);
}

/* --------- BUTTONS --------- */
.btn {
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.btn--primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn--primary:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
  transform: translateY(-1px);
}

.btn--ghost {
  background: #000000;
  border-color: var(--border-subtle);
}

.btn--ghost:hover {
  background: #1a1a1a;
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* --------- HEADER / NAV --------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.site-header__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo__mark {
  width: 26px;
  height: 26px;
  border: 1px solid #ffffff;
  background: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.logo__text {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav__link {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width var(--transition-base);
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 100%;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 32px;
  border: 1px solid var(--border-subtle);
  background: #000000;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
}

.nav-toggle__line {
  width: 18px;
  height: 2px;
  background: var(--muted);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* --------- HERO --------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text);
  background: #000000;
}

/* Video background layer */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;          /* was -2 */
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* crop to fill screen */
}

/* Dark gradient overlay on top of video, but under text */
.hero__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.85)
  );
  transition: background 0.6s ease;
  mix-blend-mode: normal;
  pointer-events: none;
}

/* Content sits ABOVE video + overlay */
.hero__content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: 3.5rem 1.4rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero__title {
  max-width: 720px;
  font-family: "Anton", system-ui;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.hero__subtitle {
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Meta info also on top of video */
.hero__meta {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.85);
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When UI is minimized (after 5s) */
body.ui-minimal .site-header {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

body.ui-minimal .hero__content,
body.ui-minimal .hero__meta {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

body.ui-minimal .hero__media-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.4)
  );
}

/* --------- HERO LOADING STATE --------- */

/* While the hero video is loading, keep the page hidden */
body.body--hero-loading {
  background: #000; /* full black */
}

/* Hide header, main content, and footer during loading */
body.body--hero-loading .site-header,
body.body--hero-loading main,
body.body--hero-loading .site-footer {
  opacity: 0;
  pointer-events: none;
}

/* When not loading, fade in smoothly */
.site-header,
main,
.site-footer {
  transition: opacity 0.5s ease;
}

/* Optional: fade-in for the video itself */
.hero__video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__video--ready {
  opacity: 1;
}

/* --------- GALLERY --------- */

/* Make gallery section span full width but with padding */
#gallery.section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Keep header nicely centered within full-width section */
#gallery .section__header {
  width: min(1120px, 100%);
  margin: 0 auto 2.5rem;
  padding-inline: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem; /* padding between media */
  width: min(1400px, 100%);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item__media {
  position: relative;
  aspect-ratio: 16 / 9; /* responsive crop */
  overflow: hidden;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop to fill container */
  transition: transform 0.5s ease-out;
}

.gallery-item__info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text);
  text-align: center;
  padding: 0.5rem;
  transition: opacity var(--transition-base);
}

.gallery-item__info h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "Anton", system-ui;
}

.gallery-item:hover .gallery-item__info,
.gallery-item:focus-within .gallery-item__info {
  opacity: 0;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: none;
}

.gallery-item--video::before,
.gallery-item--photo::before {
  content: attr(data-label);
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.75);
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --------- ABOUT --------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about__text {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.about__subheading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-family: "Anton", system-ui;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-list__item {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  background: #000000;
  border: 1px solid var(--border-subtle);
  color: var(--muted);
}

.about__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.about__portrait {
  width: 210px;
  height: 210px;
  border: 2px solid #ffffff;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.about__details {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------- GEAR --------- */
.gear {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gear-item {
  border: 1px solid var(--border-subtle);
  background: #000000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gear-item__title {
  font-family: "Anton", system-ui;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gear-item__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.gear-item__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.gear-item__list li + li {
  margin-top: 0.25rem;
}

/* --------- CONTACT --------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact__form-wrapper {
  background: #000000;
  border: 1px solid var(--border-subtle);
  padding: 2rem 2rem 2.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
}

input,
textarea {
  border: 1px solid var(--border-subtle);
  background: #0a0a0a;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input::placeholder,
textarea::placeholder {
  color: #5e5e5e;
}

input:focus,
textarea:focus {
  border-color: #ffffff;
  background: #111111;
}

.form-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-message {
  min-height: 1.1rem;
  font-size: 0.8rem;
}

.form-message--error {
  color: var(--error);
}

.form-message--success {
  color: var(--success);
}

.contact__details {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact__heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: "Anton", system-ui;
}

.contact__line {
  margin: 0 0 1.2rem;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.social-list a {
  font-size: 0.9rem;
}

.contact__note {
  font-size: 0.82rem;
}

/* --------- FOOTER --------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: #000000;
}

/* --------- LIGHTBOX (GALLERY MODAL) --------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox--open {
  display: flex;
}

.lightbox__content {
  position: relative;
  max-width: calc(100vw - 3rem);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2.75rem; /* space for close button */
}

/* Media wrapper just centers the item */
.lightbox__media {
  flex: 1 1 auto;
  background: #000000;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Always show the entire photo/video:
   - constrained by viewport width & height
   - no scrolling, no cropping */
.lightbox__media img,
.lightbox__media video {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox__caption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: left;
}

/* Close button always inside the visible area */
.lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 1px solid var(--border-subtle);
  background: #000000;
  color: var(--text);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lightbox__close:hover {
  border-color: #ffffff;
  background: #111111;
}

/* Prevent background scroll when lightbox is open */
body.body--lightbox-open {
  overflow: hidden;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__side {
    flex-direction: row;
    align-items: center;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__details {
    order: -1;
  }

  .gear {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    padding-inline: 1rem;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: calc(var(--header-height) - 6px);
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: #000000;
    border: 1px solid var(--border-subtle);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--transition-base),
      transform var(--transition-base);
  }

  .site-nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__side {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact__form-wrapper {
    padding-inline: 1.4rem;
  }

  .hero__meta {
    display: none;
  }

  .gear {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------- HERO LOADER (SPLASH) --------- */

body.body--hero-loading {
  overflow: hidden; /* prevent scrolling while loading */
}

/* Fullscreen black overlay */
.hero-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.6s ease;
}

/* Fade out & disable interaction once hidden */
.hero-loader--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Loader content styling */
.hero-loader__inner {
  text-align: center;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
}

.hero-loader__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-loader__mark {
  border: 1px solid #ffffff;
  padding: 0.4rem 0.6rem;
  font-family: "Anton", system-ui;
  font-size: 0.8rem;
}

.hero-loader__name {
  font-weight: 500;
}

.hero-loader__text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Optional: fade-in for hero video once ready */
.hero__video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__video--ready {
  opacity: 1;
}

