/* ============================================================
   Fonts
   ============================================================ */

@font-face {
  font-family: 'Suisse Int\'l';
  src: url('fonts/SuisseIntl-Regular.woff2') format('woff2'),
       local('Suisse Int\'l Regular'),
       local('SuisseIntl-Regular');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Int\'l';
  src: url('fonts/SuisseIntl-Medium.woff2') format('woff2'),
       local('Suisse Int\'l Medium'),
       local('SuisseIntl-Medium');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

*::selection {
    color: #000;
    background-color: #B3B3B3;
}

html, body {
  min-height: 100vh;
  background: #000;
  color: #757575;
  font-family: 'Suisse Int\'l', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img, video {
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: calc(100vw - 48px);
  display: flex;
  column-gap: 4px;
  align-items: flex-start;
  justify-content: center;
  padding: 4px;
  border-radius: 50px;
  background: rgba(22, 21, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.navbar-link {
  flex: 1 0 0;
  min-height: 1px;
  min-width: 1px;
  border-radius: 46px;
  transition: background-color 300ms ease-out;
}

.navbar-link:hover {
    background-color: #222;
}

.navbar-link.active {
  background: #000;
}

.navbar-link-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
}

.navbar-link-text {
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  color: #7b7b7b;
  transition: color 200ms ease-out;
}

.navbar-link.active .navbar-link-text {
  color: #b3b3b3;
}

/* ============================================================
   Page Layout
   ============================================================ */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #000;
  padding-left: 24px;
  padding-right: 24px;
}

.page--home {
  gap: 140px;
  padding-top: 240px;
  padding-bottom: 140px;
}

.page--work {
  gap: 140px;
  padding-top: 240px;
  padding-bottom: 24px;
}

.page--about {
  gap: 80px;
  padding-top: 176px;
  padding-bottom: 140px;
}

/* ============================================================
   Typography
   ============================================================ */

.heading-text,
.work-card-title {
  font-weight: 500;
  color: #b3b3b3;
  width: 100%;
}

.body-text {
  width: 100%;
}

.body-text--leading-0 {
  line-height: 0;
}

.body-text--leading-0 span,
.body-text--leading-0 a {
  line-height: 22px;
}

/* ============================================================
   Content Sections
   ============================================================ */

.content-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
  max-width: 840px;
  width: 100%;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  max-width: 480px;
  width: 100%;
}

.text-block--gap-10 {
  gap: 10px;
}

.text-block--no-max {
  max-width: none;
}

/* ============================================================
   Links
   ============================================================ */

.link-gold {
  color: #b88114;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  cursor: pointer;
  transition: color 200ms ease-out;
}

.link-gold:hover {
  color: #d19a1b;
}

.email-highlight {
  color: #b3b3b3;
  text-decoration: underline;
}

/* ============================================================
   Showreel
   ============================================================ */

.showreel {
  width: 100%;
  max-width: 1488px;
  max-height: 720px;
  aspect-ratio: 1920 / 1080;
  overflow: hidden;
}

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

/* ============================================================
   Work Grid
   ============================================================ */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px 24px;
  width: 100%;
  max-width: 1488px;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Work Card
   ============================================================ */

.work-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.work-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 480;
  overflow: hidden;
}

.work-card-media img,
.work-card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.work-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.work-card-desc {
  font-size: 14px;
  line-height: 20px;
  width: 100%;
}

/* ============================================================
   About Page
   ============================================================ */

.about-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 480px;
  width: 100%;
}

.about-section--gap-16 {
  gap: 16px;
}

.about-section--gap-8 {
  gap: 8px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.about-body p + p {
  margin-top: 10px;
}

.recognitions-list {
  line-height: 0;
  list-style: disc;
}

.recognitions-list li {
  margin-inline-start: 24px;
  list-style: disc;
}

.recognitions-list li span {
  line-height: 22px;
}

/* ============================================================
   Animations — Fade Up (page load)
   ============================================================ */

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

.animate-on-load {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.animate-on-load[data-delay="0"]   { animation-delay: 0s; }
.animate-on-load[data-delay="0.1"] { animation-delay: 0.1s; }
.animate-on-load[data-delay="0.2"] { animation-delay: 0.2s; }
.animate-on-load[data-delay="0.3"] { animation-delay: 0.3s; }

/* ============================================================
   Animations — Fade Up (scroll into view)
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 768px) {
  .navbar {
    max-width: calc(100vw - 32px);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    top: auto;
  }
  
  .navbar-link-inner {
    padding: 16px 24px;
  }

  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page--home {
    padding-top: 100px;
    padding-bottom: 120px;
    gap: 80px;
  }

  .page--work {
    padding-top: 100px;
    padding-bottom: 100px;
    gap: 80px;
  }

  .page--about {
    padding-top: 100px;
    padding-bottom: 120px;
    gap: 80px;
  }

  .work-grid {
    gap: 48px;
  }
}
