/* Hero Section Styles - DO NOT MODIFY TO PRESERVE ANIMATION */

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  /* Fallback */
  height: 100dvh;
  overflow: hidden;
}

.revealers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Fallback */
  height: 100dvh;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.revealer {
  flex: 1;
  width: 100%;
  background-color: #fff;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.images {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  width: 100%;
  height: 100%;
  visibility: visible;
  will-change: transform;
  opacity: 0;
}

.img:first-child {
  opacity: 1;
}

.images.stacked-container {
  position: absolute;
  left: 2em;
  bottom: 2em;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 1em;
  transform: none;
  will-change: transform;
}

.img.stacked {
  position: relative;
  width: 150px;
  height: 100px;
  transform: none;
  top: auto;
  left: auto;
  opacity: 1;
  will-change: transform;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.site-logo {
  position: absolute;
  top: 2em;
  left: 2em;
  display: flex;
  z-index: 100;
}

.site-logo {
  display: flex;
  gap: 1em;
}

.site-logo a {
  display: flex;
  gap: 1em;
  text-decoration: none;
}

/* Logo Image Styles */
.logo-img {
  height: clamp(50px, 6vw, 80px);
  width: auto;
  display: block;
}

/* Footer Logo */
.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: invert(1) brightness(2);
}

.site-logo h1 {
  color: #000;
  font-family: var(--font-main);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-logo h1 sup {
  position: absolute;
  top: -0.125em;
  font-size: clamp(1rem, 2vw, 2rem);
}

.nav {
  position: absolute;
  right: 0;
  width: auto;
  padding: 2em;
  display: flex;
  justify-content: flex-end;
  gap: clamp(0.5em, 2vw, 1em);
  z-index: 100;
  flex-wrap: wrap;
}

.nav .nav-item {
  position: relative;
  z-index: 100;
}

.nav .nav-item p {
  position: relative;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 500;
}

.nav .nav-item a {
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 100;
  cursor: pointer;
}

.nav .nav-item a:hover {
  opacity: 0.6;
}

.team-img {
  position: absolute;
  right: 2em;
  bottom: 2em;
  width: 40%;
  height: 50%;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
}

.team-img img {
  /* filter removed to keep color images */
}

.site-info {
  position: absolute;
  bottom: 2em;
  left: 2em;
  width: calc(100% - 4em);
  max-width: 50%;
  height: auto;
  min-height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-info .row {
  display: flex;
  gap: 2em;
}

.site-info .row .col {
  flex: 1;
}

.site-info h2 {
  font-size: clamp(18px, 3vw, 25px);
  font-weight: 500;
  line-height: 1.25;
}

.site-info p {
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.5vw, 11px);
  font-weight: 500;
  color: #000;
}

.site-info .row:nth-child(2) .col:nth-child(2) {
  display: flex;
}

.address,
.socials {
  flex: 1;
}

.address p,
.socials p {
  line-height: 1.25;
}

.word,
.nav-item,
.line {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.word h1,
.nav-item p,
.site-info h2 .line span,
.line p {
  position: relative;
  will-change: transform;
}

.site-info h2 .line span {
  display: block;
  transform: translateY(100%);
}

.word h1,
.nav-item p,
.line p {
  transform: translateY(100%);
}

/* Mobile and Tablet Responsive Styles */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .site-logo {
    top: 1.5em;
    left: 1.5em;
  }

  .nav {
    padding: 1.5em;
    gap: 0.8em;
  }

  .team-img {
    right: 1.5em;
    bottom: 1.5em;
    width: 45%;
    height: 45%;
  }

  .site-info {
    bottom: 1.5em;
    left: 1.5em;
    width: calc(50% - 1.5em);
  }

  .site-info .row {
    gap: 1.5em;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .container {
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    overflow-y: hidden;
    /* Prevent double scrollbars mainly, content manages overflow */
  }

  .img {
    transform: translate(-50%, -50%) scale(1.1);
    /* Reduced scale for mobile */
  }

  .site-logo {
    top: 1em;
    left: 1em;
    gap: 0.5em;
  }

  .site-logo h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .nav {
    position: fixed;
    top: 1em;
    right: 1em;
    width: auto;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5em 1em;
    gap: 0.5em;
  }

  .nav .nav-item p {
    font-size: 14px;
  }

  .team-img {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 300px;
    margin: 2em 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }

  .site-info {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 1em;
    margin-top: 2em;
  }

  .site-info .row {
    flex-direction: column;
    gap: 1em;
  }

  .site-info .row .col {
    flex: none;
  }

  .site-info h2 {
    font-size: clamp(20px, 4vw, 28px);
    margin-bottom: 1em;
  }

  .site-info .row:nth-child(2) .col:nth-child(2) {
    flex-direction: column;
    gap: 2em;
  }

  .images.stacked-container {
    left: 1em;
    bottom: 1em;
  }

  .img.stacked {
    width: 120px;
    height: 80px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .site-logo {
    flex-direction: column;
    gap: 0;
    top: 0.5em;
    left: 0.5em;
  }

  .site-logo h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }

  .nav {
    display: none !important;
    /* Force hide on small mobile, rely on toggle */
  }

  .nav .nav-item p {
    font-size: 11px;
  }

  .hero-content {
    padding-top: 6em;
  }

  .team-img {
    height: 200px;
    width: 80%;
    margin: 0 auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .site-info {
    padding: 0.5em;
    margin-top: 1em;
  }

  .site-info h2 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.3;
  }

  .site-info p {
    font-size: 10px;
  }

  .images.stacked-container {
    left: 0.5em;
    bottom: 0.5em;
  }

  .img.stacked {
    width: 100px;
    height: 70px;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .site-logo h1 {
    font-size: 1.2rem;
  }

  .nav .nav-item p {
    font-size: 11px;
  }

  .site-info h2 {
    font-size: 16px;
  }

  .site-info p {
    font-size: 9px;
  }

  .img.stacked {
    width: 80px;
    height: 60px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    position: relative;
    padding: 1em;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .site-logo {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 1em;
  }

  .nav {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 1em;
  }

  .img {
    transform: translate(-50%, -50%) scale(1.2);
  }

  .team-img {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 200px;
    margin: 1em 0;
  }

  .site-info {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    flex: 1;
  }

  .images.stacked-container {
    position: absolute;
    right: 1em;
    bottom: 1em;
    left: auto;
  }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1em;
  right: 1em;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 8px;
  padding: 0.8em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 1);
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #8e0000;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 6em 2em 2em 2em;
}

.mobile-nav-overlay.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.mobile-nav-overlay .nav-item {
  clip-path: none;
}

.mobile-nav-overlay .nav-item p {
  font-size: 2rem;
  font-weight: 500;
  transform: none;
}

.mobile-nav-overlay .nav-item a {
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay .nav-item a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .nav {
    display: none;
  }
}

/* Restored Desktop Hero Responsiveness */
/* Safe Zone Scatter Layout for Mobile */
/* Mobile styles moved to mobile.css for mobile.html */