/* GavesMedia portfolio
   Breakpoints match the original Framer site:
   desktop >= 1200px, tablet 810–1199px, phone < 810px */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: rgb(250, 250, 250);
  --muted: rgb(140, 140, 140);
  --border: rgba(255, 255, 255, 0.1);
  --white-10: rgba(255, 255, 255, 0.1);
  --surface: rgb(5, 5, 5);
  --amber: rgb(250, 170, 0);
  --ease: cubic-bezier(0.77, 0, 0.17, 1);
  --pad: 42px;
  --radius: 15px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variation-settings: "opsz" 14;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Type ---------- */

.h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  line-height: 1.2;
  text-transform: capitalize;
  color: var(--text);
}

.body {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */

/* Label slides up to a second copy on hover, like the Framer components. */
.swap {
  display: block;
  height: 1.4em;
  overflow: hidden;
  line-height: 1.4;
}
.swap > span {
  display: block;
  white-space: nowrap;
  transition: transform 0.4s var(--ease);
}
a:hover .swap > span,
a:focus-visible .swap > span {
  transform: translateY(-100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.4s var(--ease);
}
.btn--small {
  padding: 8px 16px;
  font-size: 14px;
}
.btn:hover {
  opacity: 0.5;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 9px;
  background: rgb(27, 28, 28);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 35px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--white-10);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.4s var(--ease);
}
.pill:hover {
  opacity: 0.5;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 813px;
  overflow: hidden;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgb(109, 109, 109) 1.8%,
    rgb(107, 107, 107) 5.1%,
    rgb(61, 65, 65) 82.9%
  );
  /* Bottom of the hero fades into the black page. */
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 43.84%);
  mask-image: linear-gradient(0deg, transparent 0%, #000 43.84%);
}

.hero__img {
  position: absolute;
  top: -102px;
  left: 50%;
  z-index: 1;
  width: auto;
  height: calc(100% + 119px);
  max-width: none;
  transform: translateX(-50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  height: 385px;
  overflow: hidden;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 38px;
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--pad);
  overflow: hidden;
}

.hero__role {
  width: 436px;
  max-width: 100%;
  margin: 0;
  font-size: 1.78rem;
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  line-height: 1.2;
  color: var(--text);
}

.hero__name {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 10.8rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
}
.hero__gaves {
  font-weight: 700;
}
.hero__media {
  color: var(--amber);
}
.hero__dot {
  color: var(--text);
}

/* ---------- About / showreel ---------- */

.about {
  padding: 100px 0;
}

.about__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.about__info {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

/* ---------- Work ---------- */

.work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px var(--pad);
}

.work__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 467px;
  max-width: 100%;
  text-align: center;
}

.tag {
  width: var(--w, auto);
  max-width: 100%;
  margin: 0;
  padding: 8px 24px;
  border-radius: var(--radius);
  background: var(--amber);
  color: #fff;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 41px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.videos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

/* ---------- YouTube players ---------- */

.yt {
  position: relative;
  flex: none;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgb(15, 15, 15);
}
.yt--v {
  width: 350px;
  aspect-ratio: 9 / 16;
}
.yt--h {
  width: 350px;
  aspect-ratio: 16 / 9;
}
.yt--full {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.yt--intro {
  width: 340px;
  height: 607px;
}

.yt__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.yt__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
}
.yt__play-bg {
  fill: #212121;
  fill-opacity: 0.8;
  transition: fill 0.2s, fill-opacity 0.2s;
}
.yt__btn:hover .yt__play-bg,
.yt__btn:focus-visible .yt__play-bg {
  fill: #f00;
  fill-opacity: 1;
}

.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Contact ---------- */

.contact {
  display: flex;
  justify-content: center;
  padding: 100px var(--pad) 120px;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  transition: background-color 0.3s var(--ease);
}
.social:hover {
  background: rgb(30, 30, 30);
}

/* ---------- 404 ---------- */

.nf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px var(--pad);
  text-align: center;
}
.nf__title {
  margin: 0;
  font-size: 10rem;
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  line-height: 1;
}

/* ---------- Entrance animations ---------- */

.js .appear,
.js .appear-load {
  opacity: 0;
  transform: translateY(150px);
}
.js .appear.is-in,
.js .appear-load.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .js .appear,
  .js .appear-load {
    opacity: 1;
    transform: none;
  }
  .swap > span,
  .btn,
  .pill {
    transition: none;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1199.98px) {
  .hero {
    height: 718px;
  }
  .hero__role {
    font-size: 1.42rem;
  }
  .hero__name {
    font-size: 7rem;
  }
  .about__inner {
    gap: 40px;
    max-width: 810px;
  }
  .yt--intro {
    width: 300px;
    height: 536px;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 809.98px) {
  :root {
    --pad: 24px;
  }
  .nav__links {
    display: none;
  }
  .hero {
    height: 480px;
  }
  .hero__text {
    gap: 20px;
    max-width: 390px;
  }
  .hero__role {
    width: 100%;
    font-size: 1.14rem;
  }
  .hero__name {
    font-size: 3.1rem;
  }
  .about {
    padding: 60px 0;
  }
  .about__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    max-width: 390px;
  }
  .about__info {
    width: 100%;
  }
  .yt--intro {
    width: 100%;
    height: auto;
    aspect-ratio: 340 / 607;
  }
  .work {
    max-width: 390px;
  }
  .work__header {
    width: 100%;
  }
  .tag {
    width: 100%;
    font-size: 26px;
  }
  .videos {
    flex-direction: column;
    align-items: center;
  }
  .yt--v,
  .yt--h,
  .yt--full {
    width: 100%;
  }
  .contact {
    padding: 60px var(--pad) 80px;
  }
}
