:root {
  --navy: #1e2a5e;
  --green: #2f5f4a;
  --plum: #2a1a33;
  --ink: #104f5d;
  --grey: #e4e5eb;
  --s: min(22.3vw, 40vh);

  --img-sea: url("./ind.jpg");
  --img-green: url("./uk.jpg");
  --img-urban: url("./us.jpg");
  --img-rare: url("./lab.jpg");

  --img-hero: url("./hero.png");
  --img-a: url("./photo-2.png");
  --img-b: url("./photo-1.png");
  --img-c: url("./photo-3.png");
  --img-d: url("./photo-4.png");


  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--grey);
  color: var(--navy);
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif
}

a,
button {
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer
}

/* ---------- PAGE (gets scaled by the menu) ---------- */
.page {
  position: fixed;
  inset: 0;
  background: #fff;
  overflow: hidden;
  z-index: 2;
  will-change: transform
}

.loader {
  position: absolute;
  inset: 0;
  background: var(--navy);
  z-index: 5
}

#count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7vh;
  text-align: center;
  color: #fff;
  font-size: 2.4vw;
  font-weight: 500;
  z-index: 7;
  font-variant-numeric: tabular-nums
}

.hdr {
  position: relative;
  z-index: 4;
  display: grid;
  /* grid-template-columns: 1fr auto 1fr; */
  align-items: center;
  padding: 3vh 4.3vw 0;
  font-size: 1.35vw;
  font-weight: 500
}

.hdr a:last-child {
  justify-self: center;
  text-align: center;
}

.logo {
  font-size: 2.2vw;
  font-weight: 600;
  letter-spacing: .22em
}

.logo img {
  max-width: 220px;
  width: 100%;
}

.mid {
  position: relative;
  height: var(--s);
  margin-top: 10vh
}

.marq {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 2;
  line-height: 1
}

.track {
  display: flex;
  width: max-content;
  font-size: 15.5vw;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -.02em
}

.track span {
  padding-right: .35em
}

.stack {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--s);
  height: var(--s);
  margin-left: calc(var(--s)/-2);
  z-index: 6
}

.layer {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.layer i {
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center
}

.copy {
  position: relative;
  z-index: 4;
  text-align: center;
  margin-top: 4.5vh
}

.tag {
  font-size: clamp(1.15rem, 1.7vw, 2.4rem);
  font-weight: 500;
  line-height: 1.3
}

.line {
  display: block;
  overflow: hidden;
}

.line>span {
  display: block;
  max-width: 630px;
  width: 100%;
  margin: 0 auto;

}

.video-boat {
    position: absolute;
    top: 0;
    right: 20px;
}
.video-boat video{
  width: 170px;
}

.bar {
  position: absolute;
  z-index: 4;
  left: 4.3vw;
  right: 4.3vw;
  bottom: 4vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 1.35vw
}

.ctrl {
  display: flex;
  gap: .6vw
}

.sel {
  display: flex;
  gap: 1.6vw;
  align-items: center;
  height: 3.3vw;
  padding: 0 1.9vw;
  border: 1.5px solid var(--navy);
  background: none;
  font-size: 1.35vw;
  font-weight: 500
}

.dots {
  display: grid;
  grid-template-columns: repeat(2, .35vw);
  gap: .25vw
}

.dots i {
  width: .35vw;
  height: .35vw;
  background: var(--navy)
}

.ham {
  width: 3.7vw;
  height: 3.3vw;
  background: var(--navy);
  border: 0;
  display: grid;
  place-content: center;
  gap: .35vw
}

.ham i {
  display: block;
  height: 2px;
  background: #fff;
  width: 1.3vw
}

.ham i+i {
  width: .8vw
}

/* ---------- MENU (sits under the page) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  visibility: hidden
}

.cards {
  position: absolute;
  top: 9vh;
  left: 4.2vw;
  right: 4.2vw;
  height: 66vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5vw
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: var(--c)
}

.top {
  flex: 7;
  position: relative;
  padding: 1.8vw
}

.mark {
  font-size: 2.2vw;
  font-weight: 700;
  line-height: 1
}

.mark img {
  max-width: 40px;
}

.ttl {
  position: absolute;
  right: 1.6vw;
  bottom: 1.6vw;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 3vw;
  font-weight: 500;
  line-height: 1
}

.desc {
  position: absolute;
  left: 1.8vw;
  bottom: 1.6vw;
  width: 55%;
  font-size: 1.05vw;
  line-height: 1.35
}

.img {
  flex: 3;
  overflow: hidden
}

.img i {
  display: block;
  height: 100%;
  background-size: cover;
  background-position: top center;
  transition: transform .9s cubic-bezier(.76, 0, .24, 1)
}

.card:hover .img i {
  transform: scale(1.08)
}

@media(max-width:800px) {
  :root {
    --s: 46vw
  }

  .hdr {
    font-size: 3.6vw
  }

  .logo {
    font-size: 4.4vw
  }

  .track {
    font-size: 28vw
  }

  .tag {
    font-size: 5vw
  }

  .btnbox {
    font-size: 3vw
  }

  .bar,
  .sel {
    font-size: 3.2vw
  }

  .sel {
    height: 9vw;
    padding: 0 3vw
  }

  .ham {
    width: 10vw;
    height: 9vw
  }

  .ham i {
    width: 4vw
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 3vw;
    height: 62vh
  }

  .mark {
    font-size: 5vw
  }

  .ttl {
    font-size: 6vw
  }

  .desc {
    font-size: 2.6vw;
    width: 60%
  }

  .top {
    padding: 3vw
  }
}

@media(prefers-reduced-motion:reduce) {
  .img i {
    transition: none
  }
}