/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Dunvar';
  src: url('fonts/webfontkit-20260424-101930/dunbar-tall-regular-webfont.woff2') format('woff2'),
       url('fonts/webfontkit-20260424-101930/dunbar-tall-regular-webfont.woff') format('woff'),
       url('fonts/dunbar-tall-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* SCROLL SNAP */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  /* overflow-y: scroll; */
  overflow-y: hidden;
  font-family: 'Dunvar', sans-serif;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25)), url('images/2ms_Fondo_Motivotransparente_3.png');
  background-repeat: no-repeat, repeat; /* Default behavior */
  background-size: cover, 512px 512px; /* Controls the size of each tile */
  background-attachment: fixed;
}

/* VARIABLES */
:root {
  --white: #ffffff;
  --accent: #FF931E;
  --twomirror_bg_color: #1E3C4B;
  --navy_dark: #122A37;
  --twomirror_bg_color_opacity: #1e3c4b5f;
  --overlay: rgba(10, 10, 10, 0.3);
}

/* SECTION (layout only) */
.section {
  position: relative;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
}

/* VIDEO */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* FALLBACK */
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* OVERLAY */
.hero__overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(120deg, rgba(0,0,0,0.5), transparent); */
  z-index: 1;
}

/* HEADER */
.top-bar {
  position: fixed;
  background-color: var(--twomirror_bg_color);
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 10;
  
}

.splash_section {
  /* margin-top: 100px; */
  display: flex;
  width: 100%;
  height: 75vh;
  flex-direction:column;
  align-items: center;
  gap: 50px;
}

/* @media only screen and (max-width: 767px)
{
  .splash_section { flex-direction: column; }
} */

.main_text{
  margin-top: 100px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  user-select: none;
  max-height: 25vh;
}

.splash_speech_text{
  text-align: center;
  font-size: auto;
  background-color: white;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform;
}

.speech_title{
  font-size: 40px   ; 
  animation-delay: 0.2s;
}

.splash_speech_text:nth-of-type(2) {
    color: #34495e;
    animation-delay: 0.6s;
  } 

  .splash_speech_text:nth-of-type(3) {
    color: #7f8c8d;
    animation-delay: 1.0s;
  }

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media only screen and (max-width: 767px)
{
  .speech_title { 
    font-size: 5vh;
  }
}

.main_video {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--accent); 
  border-radius: 12px;
  overflow: hidden;
}

.main_video iframe {
  width: 100%;
  height: 100%;
}

.contact-bar{
  /* margin-bottom: 5vh; */
  left: 0;
  right: 0;
  height: 100%;
  /* height: 75px; */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  /* padding: 0 40px; */
  z-index: 10;
}

/* @media only screen and (max-width: 767px)
{
  .contact-bar { 
    flex-direction: column;
    bottom: 50px;
  }
} */

.contact-button{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20vw;
  height: 50px;
  background: linear-gradient(to top, #FF931E 0%, #ffa443 100%);
  text-decoration: none;
  border-radius: 12px;
  user-select: none;
}

@media only screen and (max-width: 767px)
{
  .contact-button { 
    /* height: 150px; */
    width: 75vw;
  }
}

.contact-text{
  color: var(--navy_dark);
  font-family: 'Dunvar', serif;
  pointer-events: none;
  text-align: center;
  font-size: large;
}

@media only screen and (max-width: 767px)
{
  .contact-text { font-size: 12px; }
}

.logo {
  opacity: 0;
  animation: fadeDown 0.9s ease 0.2s forwards;
}

.logo img {
  margin-top: 10px;
  height: 90px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .logo img {height: 40px;}
}

@media (max-width: 400px) {
  .logo img {height: 25px;}
}
nav {
  display: flex;
  gap: 30px;
  opacity: 0;
  animation: fadeDown 0.9s ease 0.35s forwards;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* CONTENT */
.hero__content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  padding: 40px;
  max-width: 100vw;
}

/* TEXT */
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero__headline {
  font-family: 'Dunvar', serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  color: white;
  margin-bottom: 30px;
}

.hero__headline em {
  font-style: italic;
}

/* WORD ANIMATION */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordIn 0.8s ease forwards;
}

/* CTA */
.hero__cta {
  display: inline-block;
  border: 1px solid white;
  padding: 12px 24px;
  color: white;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

/* ANIMATIONS */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}