:root {
  --bg: #000;
  --fg: #fff;
  --accent: rgba(255, 255, 255, 0);
  --max-width: 1100px;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 48px 28px;
  box-sizing: border-box;
}

.site-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 60;
  padding-bottom: 2px;
}

.site-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 5rem;
  line-height: 1;
}

.tagline {
  margin: 6px 0 0 0;
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.96);
  max-width: 100%;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* Hero */
.hero {
  margin-top: 28px;
  width: 100%;
  height: 52vh;
  min-height: 320px;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  background: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0);
  perspective: 1200px;
  z-index: 10;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 60%;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.12) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
}

.image-scene {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
  display: block;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* show entire image */
  object-position: center;
  /* always centered */
  transform: scale(1) translateZ(0);
  transition: transform 0.3s ease;
  backface-visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero .bg-text {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%) translateZ(-80px);
  font-family: "Edu NSW ACT Cursive", cursive;
  font-weight: 200;
  font-size: 3.8rem;
  color: #ffd700;
  pointer-events: none;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  z-index: 1;
  white-space: nowrap;
}

.hero-caption {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 8px auto;
  /* top/bottom margin + auto left/right */
  text-align: center;
  max-width: 90%;
  /* optional, keeps caption from being too wide */
}

.intro {
  margin: 28px 0 36px 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 80px;
}

.col h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  margin: 0 0 12px 0;
}

.col p {
  margin: 0 0 18px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.muted {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .site-title {
    font-size: 2.4rem;
  }

  .tagline {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero {
    height: 44vh;
    min-height: 260px;
  }

  .hero::before {
    width: 100%;
    height: 45%;
  }

  .hero .bg-text {
    left: 20px;
    top: 20px;
    font-size: 1.4rem;
    transform: translateZ(0);
  }

  .columns {
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 0 18px 36px 18px;
  }

  .columns {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero {
    height: 38vh;
    min-height: 220px;
    perspective: none;
  }

  .image-scene {
    transform: none !important;
  }

  .hero img {
    transform: scale(1.01);
  }
}

.site-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  /* responsive size */
  letter-spacing: -1px;
  line-height: 0.95;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  margin: 0 0 6px;
}

.tagline {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 10px;
  font-size: 1rem;
  opacity: 0.95;
}

/* subtle animated underline for About page */
.site-title + .tagline {
  position: relative;
  padding-bottom: 8px;
}

.site-title + .tagline:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 120px;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(0.01);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* trigger underline on hover over header */
.site-header:hover .site-title + .tagline:after {
  transform: scaleX(1);
}

.media-showcase {
  margin-top: 100px;
  text-align: center;
}

.media-showcase h2 {
  font-family: "Neue Machina", sans-serif !important;
  font-size: 2.6rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.media-showcase p.muted {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 48px;
  font-size: 1.05rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* layout grid that adapts and eliminates empty spacing */
.media-mosaic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  perspective: 800px;
}

.media-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  width: clamp(260px, 28vw, 360px);
  aspect-ratio: 4 / 3;
  /* keeps uniform height even for mixed image ratios */
  transform: rotate(var(--rot)) translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  will-change: transform, box-shadow;
}

/* Ensure full image visibility, avoid cropping or borders */
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* show entire image */
  background-color: rgba(0, 0, 0, 0.7);
  /* fills space behind transparent areas */
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(0.95) contrast(1.05);
  border: none;
}

/* Caption styling */
.media-card span {
  display: block;
  font-size: 0.9rem;
  padding: 8px 0 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  background: transparent;
}

/* Hover effects */
.media-card:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.12);
}

.media-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Remove black edge flashes on transition back */
.media-card,
.media-card img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
}

/* Responsive tweaks */
@media (max-width: 980px) {
  .media-mosaic {
    gap: 20px;
  }

  .media-card {
    width: 44%;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 720px) {
  .media-card {
    width: 90%;
    aspect-ratio: auto;
  }
}

@font-face {
  font-family: "Neue Machina";
  src: url("/RIGNITC/assets/fonts/Neue Machina Bl.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

.site-title {
  font-family: "Neue Machina", sans-serif !important;
  font-size: 5em;
  /* adjust size as needed */
}

h1,
h2 {
  font-family: "Neue Machina", sans-serif !important;
}
