* {
  margin: 0;
  box-sizing: border-box;
  background-color: #1E1E1E;
}

@font-face {
  font-family: Satoshi;
  src: url(Satoshi-Variable.ttf);
}


html {
  font-size: calc(16px + 0.5vmax);
  font-family: Satoshi, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body {
  background-color: var(--secondary-color);
}

a {
  color: currentColor;
}

a.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--highlight-color);
  text-decoration: none;
}

a.button:hover,
a.button:focus {
  background-color: var(--highlight-color);
}

h2 {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  font-variation-settings: 'wght' 700;
}

h3 {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.25;
  font-variation-settings: 'wght' 700;

  max-width: 16ch;
  text-wrap: balance;
}

p {
  margin: 1.5rem 0;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

img {
  vertical-align: bottom;
  max-width: 100%;
}

header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: 'nav1 logo nav2';
  gap: 1rem;

  font-size: max(16px, 0.75rem);

  align-items: center;
  padding: 1rem 2rem;

  background-color: #1E1E1E;
  color: var(--secondary-color);
}

header nav {
  display: flex;
  gap: 2rem;
}

header h1 {
  grid-area: logo;
  text-align: center;

  font-size: 0;
}

header h1 img {
  width: 8rem;
}

header a {
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

header a:hover,
header a:focus {
  text-decoration-color: var(--highlight-color);
}

header nav:first-of-type {
  grid-area: nav1;
}

header nav:last-of-type {
  grid-area: nav2;
  justify-self: end;
}

section.hero,
section.intro,
section.savvy {
  margin: 1rem;
  padding: 2rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

section.hero {
  background-image: url(hero.jpg);
  background-size: cover;
  background-color: var(--primary-color);
  color: var(--secondary-color);

  aspect-ratio: 16 / 9;

  align-items: end;
}

section.hero h2 {
  text-wrap: balance;
  grid-column: 2;
}

section.intro div {
  grid-column: 2;
}

section.vid {
  height: 600vh;
  position: relative;
}

section.vid div.holder {
  position: sticky;
  top: 0;
}

section.vid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.vid div.story {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--secondary-color);
}

section.vid div.story div {
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer {
  padding: 2rem;

  background-color: var(--highlight-color);
}

footer img {
  width: 100%;
  vertical-align: bottom;
}

@media (max-width: 720px) {
  header {
    display: block;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  header h1 {
    margin: 0 0 1rem 0;
  }

  header nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  section.hero,
  section.intro,
  section.savvy {
    margin: 1rem;
    padding: 1rem;

    grid-template-columns: 1fr;
    gap: 1rem 0;
  }
}



section.vid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* adjust as needed */
  background: linear-gradient(
    to bottom, 
    rgba(30,30,47,0) 0%,   /* transparent at top */
    #1E1E1E 100%           /* timeline background at bottom */
  );
  pointer-events: none;
  z-index: 2;
}



.gif{
  position: absolute;
  left: 10%;
  top: 500%;
  width: 780px;
  height: 180px;
  z-index: 4;
  background-color: transparent;
  
}


.hero-gif {
  /* max-width: 980px;      limit width so it doesn't overflow */
  margin: 2rem auto 2rem;/* space above/below; increase top value if you want more gap */
  width: 90%;            /* responsive sizing */
  display: block;
  text-align: center; 
  background-color: #1E1E1E;   /* centers inline images if you prefer */
}

/* The image itself */
.hero-gif-img {
  background-color: #1E1E1E;
  display: block;
  width: 200%;
  height: auto;          /* preserve aspect ratio */
  max-height: 260px;     /* optional: caps visual height */
  object-fit: cover;     /* fills the box while preserving ratio */
  border-radius: 8px;    /* optional visual polish */
}




/* CSS */
:root{
  --gap: 1rem;
  --card-radius: 12px;
  --card-bg: #ffffff;    /* change to dark if you want dark cards */
  --card-elev: 0 6px 18px rgba(0,0,0,0.12);
  --title-color: #111;
  --sub-color: #adadad;
  --mini-size: 44px;
}

/* Grid: 2 columns */
.card-grid{
  /* margin-top: 1rem;  */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  align-items: start;
  padding: 1rem;
  background-color: #1E1E1E;
}

/* Card (no grid lines) */
.card{
  background-color: #242424;
  border-radius: var(--card-radius);
  box-shadow: var(--card-elev);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Hero image at top */
.card-hero img{
  display: block;
  width: 100%;
  height: 260px;           /* adjust height */
  object-fit: cover;
}
.card-hero2 img{
  display: block;
  width: 100%;
  height: 460px;           /* adjust height */
  object-fit: cover;
}

/* Body with heading & subheading */
.card-body{
  padding: 1rem;
  flex: 1 1 auto; /* allows footer to sit at bottom */
}
.card-title{
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
  color: white;
  line-height: 1.2;
}
.card-sub{
  margin: 0;
  color: rgb(223, 223, 223);
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Footer with two mini linked images */
.card-footer{
  padding: 0.75rem 1rem 1rem 1rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.card-footer a{
  display: inline-block;
  width: var(--mini-size);
  height: var(--mini-size);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-footer a img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* hover */
.card-footer a:hover,
.card-footer a:focus{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Responsive: single column on small screens */
@media (max-width: 720px){
  .card-grid{
    grid-template-columns: 1fr;
  }
}
