.kanit-extrabold {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: normal;
  }
  
:root {
  --banner-width: 60px;
}
  
html {
    scroll-behavior: smooth;
  }

body {
    font-family: "Kanit", sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(255, 243, 231);
  }

.page-container {
  box-sizing: border-box;
  padding-left: var(--banner-width);
}

.a {
  color: rgb(144, 251, 50);
}

.banner {
  width: 4.5%;
  box-sizing: border-box;
  background-color: rgb(197, 68, 68);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  font-weight: 600;
  z-index: 999;
  justify-content: center;
  }

  .home a, .contact a, .work a{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 9rem;
    margin-top: 10rem;
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 3rem;
    color: rgb(52, 61, 65);
    letter-spacing: 0.3rem;
    margin-bottom: 15rem;
    text-decoration: none;
    margin-left: -0.3rem;
  }
  
  .home a:hover, .contact a:hover, .work a:hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 9rem;
    margin-top: 10rem;
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 3rem;
    color: rgb(138, 157, 167);
    letter-spacing: 0.3rem;
    margin-bottom: 15rem;
    text-decoration: none;
  }
  
  .piece-details {
    /* center content horizontally and vertically, with space for left banner */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 100vh;
    margin: 0;
    padding: 0 1rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    /* leave space so the fixed left banner doesn't overlap content */
    margin-left: 60px;
  }

  .piece {
    /* fluid video sizing that caps at a reasonable maximum */
    width: min(30vw, 750px);
    max-width: 100%;
    height: auto;
    border: 8px solid rgb(222, 239, 255);
    border-radius: 20px;
    box-sizing: border-box;
    display: block;
  }

  .piece1 {
    display: none;
  }

  .title {
    color: rgb(52, 61, 65);
    font-size: 5rem;
    margin: 0 0 0 0;
  }

  .piece-description {
    color: rgb(52, 61, 65);
    font-size: 2rem;
    margin: 0;
    line-height: 1.4;
  }

  /* Fancy link styling for piece descriptions: gradient underline + lift on hover */
  .piece-description a {
    position: relative;
    display: inline-block;
    color: rgb(10, 90, 200);
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, color 160ms ease;
    padding-bottom: 2px;
  }

  .piece-description a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #ff8a00, #ff2a68, #7a5cff);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 260ms cubic-bezier(.2,.9,.2,1);
    border-radius: 4px;
    pointer-events: none;
  }

  .piece-description a:hover,
  .piece-description a:focus {
    transform: translateY(-3px);
    color: rgb(6, 35, 90);
    outline: none;
  }

  .piece-description a:focus::after,
  .piece-description a:hover::after {
    transform: scaleX(1);
  }

  /* subtle shimmer on load for attention (prefers-reduced-motion respects user settings) */
  @media (prefers-reduced-motion: no-preference) {
    .piece-description a::after {
      animation: underline-pop 900ms ease 300ms both;
    }

    @keyframes underline-pop {
      0% { transform: scaleX(0); opacity: 0; }
      60% { transform: scaleX(1.05); opacity: 1; }
      100% { transform: scaleX(1); opacity: 1; }
    }
  }

  #background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) hue-rotate(0deg) saturate(50%);
    z-index: 0;
    overflow: hidden;
  }

  @media screen and (max-width: 480px) {
    .title {
      font-size: 3rem;
      top: auto;
    }
  
    .piece-description {
      font-size: 1.5rem;
      top: auto;
      left: auto;
    }

    .piece {
      width: 95vw;
      max-width: 100%;
      height: auto;
    }
  }

/* Small screens: remove left margin (banner may convert to top nav elsewhere) and stack content */
@media screen and (max-width: 1000px) {
  .piece-details {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-left: 0;
    padding-top: 8rem;
    min-height: calc(100vh - 56px);
  }

  .banner {
    width: 12%;
  }

  .home a, .contact a, .work a{
    font-size: 2rem;
    margin-top: 8.5rem;
    margin-bottom: 12rem;
  }

  .title { font-size: 3rem; text-align: center; }
  .piece-description { font-size: 1.5rem; text-align: center; }
}