/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #04150a;

  overflow-x: hidden;
  overflow-y: hidden
}

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

/* ---------- Palette ---------- */
:root {
  --green-dark: #04160a;
  --green-mid: #06230f;
  --green-bar: linear-gradient(120deg, #041a0c 0%, #0a3018 55%, #05200e 100%);
  --cream: #f4f1e8;
  --text-dim: rgba(244, 241, 232, 0.78);
}

/* ---------- Page shell ---------- */
.page {
  min-height: calc(100vh - 32px);
  height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

/* ---------- Top / bottom bars ---------- */
.bar {
  background: var(--green-bar);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.bar-top {
  height: clamp(40px, 7vh, 78px);
  opacity: 0;
  transform: translateY(-100%);
  animation: slideDown 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.bar-bottom {
  min-height: clamp(84px, 13vh, 128px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: 18px clamp(20px, 6vw, 76px);
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
  flex-wrap: wrap;
}

@keyframes slideDown {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); bottom: 0px }
}

.footer-note {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.45;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-email {
  font-family: "Courier Prime", monospace;
  font-size: clamp(16px, 2.1vw, 22px);
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s ease;
}

.footer-email::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.footer-email:hover {
  color: #c9e6b8;
}

.footer-email:hover::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex: 1;
  min-height: auto;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.15);
  animation: kenBurns 9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  filter: saturate(1.05) brightness(0.98);
}

.subfooter{
  position: absolute;
  bottom: -85px;
  width: 100%;
  height: 80px;
  z-index: 1;
  background: var(--green-bar);
  animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}


@keyframes kenBurns {
  0% { transform: scale(1.15); }
  100% { transform: scale(1.02); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(2, 12, 6, 0.72) 0%, rgba(2, 12, 6, 0.42) 32%, rgba(2, 12, 6, 0.05) 58%, rgba(2, 12, 6, 0.18) 100%),
    linear-gradient(to top, rgba(2, 10, 5, 0.35) 0%, rgba(2, 10, 5, 0) 22%);
  opacity: 0;
  animation: fadeIn 1.4s ease 0.3s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  padding: 0 clamp(20px, 6vw, 76px);
}

.hero-text {
  font-family: 'Space Mono', monospace;
  color: var(--cream);
  font-size: clamp(13px, 1.35vw, 19px);
  line-height: 1.65;
  max-width: 620px;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  animation: logoIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.4));
  width: 30%;
}

@keyframes logoIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .bar-bottom {
      padding: 16px 36px 48px 36px;
    }
}

@media (max-width: 860px) {
  .hero-content {
    flex-direction: column-reverse;
    justify-content: center;
    gap: clamp(24px, 5vh, 40px);
    padding: clamp(20px, 6vw, 40px);
    text-align: left;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-logo {
    width: auto;
  }

  .hero-logo img {
    width: clamp(130px, 50vw, 200px);
  }

  .bar-bottom {
    padding: 16px 36px 48px 36px;
  }
}


@media (max-width: 640px) {
  .bar-bottom {
    padding: 16px 20px 48px 20px;
  }
}

@media (max-width: 520px) {
  .bar-top {
    height: 10px;
  }

  .hero-img {
    object-position: center 55%;
  }

  .hero-text {
    font-size: 12.5px;
    line-height: 1.6;
  }

  .bar-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar-top, .bar-bottom, .hero-overlay, .hero-text, .hero-logo, .hero-img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
