@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');
@import url('https://fonts.cdnfonts.com/css/bootle');
@import url('https://fonts.cdnfonts.com/css/hellfire-club');
@import url('https://fonts.cdnfonts.com/css/upbolters-2');
@import url('https://fonts.cdnfonts.com/css/timberwolf');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
}

::-webkit-scrollbar {
    width: 0;
}

:root{
    --width-default: min(1200px, 90vw);
    --diameter: 1432px;
    --main-color: #6F8FAF;
    --second-color: #A7C7E7;
    --third-color: #B6D0E2;
    --extra-color: #ADD8E6;
    --highlight-color: #B0C4DE;
    --shade1-color: #101010;
    --shade2-color: #f8f8ff;
    --main-font:'BOOTLE', sans-serif;
    --second-font: 'UPBOLTERS', sans-serif;
    --text-font: 'Timberwolf', sans-serif;
    --cool-font: 'Timberwolf 3D', sans-serif;
    /* Motion: easeOut-style, 0.6–0.9s, no bounce. UX: deliberate, premium feel. */
    --motion-duration: 0.75s;
    --motion-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --motion-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --motion-stagger: 0.08s;
}

html {
  font-family: var(--text-font), 'Poppins', sans-serif;
}

body,
button {
  background-color: var(--shade2-color);
  font-family: inherit;
}

.container {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/*Navigation*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  min-height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  transition: all .50s ease;
  background: transparent;
  backdrop-filter: blur(30px);
  padding: 0 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  align-items: center;
}

.nav-left {
  flex: 1;
  justify-content: space-around;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-right: 0;
  flex-wrap: wrap;
}

.nav-center {
  flex: 1;
  justify-content: center;
}

.nav-right {
  flex: 1;
  justify-content: space-around;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-left: 0;
  flex-wrap: wrap;
}

.logo img{
  width: clamp(3.5rem, 5vw, 4.5rem);
    margin: 0;
  max-height: clamp(2.25rem, 4vw, 3.25rem);
  object-fit: contain;
}

.navbar .headline a{
    color: var(--shade2-color);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: 0.3 linear;
    font-family: 'BOOTLE', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    text-decoration-color: var(--extra-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Active nav link state */
.navbar .headline a.active {
  color: var(--extra-color);
  text-decoration-color: var(--extra-color);
  font-weight: 600;
}

.headline a:hover::before,
.headline a:hover{
    color: var(--extra-color);
    width: 100%;
    height: 0.5px;
}

/*Front*/

.main-container {
  position: relative;
  background: none;
}

/* Parallax depth: bg moves slower than scroll. Transform-only, no layout shift. */
.main-container .parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-position: center;
  background-size: cover;
  will-change: transform;
}

.front {
  position: relative;
  width: 100%;
  left: 0;
  z-index: 5;
  overflow: hidden;
}

header {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.slider{
    color: #eee;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.slider .list .item{
    position: absolute;
    inset: 0 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1s;
}
.slider .list .item .content{
  position: absolute;
  /* responsive vertical placement to keep hero text visually consistent */
  top: clamp(8%, 16vh, 22%);
  left: 50%;
  transform: translate(-50%, 0);
  width: min(92vw, 860px);
  max-width: 100%;
  padding: 0 1rem;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.5rem, 2vw, 2rem);
  align-items: center;
  justify-items: center;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-transform: uppercase;
  text-shadow: 0 0 80px #000;
}
.slider .list .item .content h2{
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  font-family: var(--main-font);
  line-height: 1.1;
  text-align: center;
  transform: translateY(-100%);
  transition: transform 1s;
}

.slider .list .item .content p{
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  letter-spacing: 1.2px;
  text-align: center;
  font-family: var(--text-font);
  line-height: 1.2;
  transition: transform 1s;

}

/* item default */
.slider .list .item .image{
    flex-shrink: 0;
    width: var(--diameter);
    height: var(--diameter);
    background-image: var(--url);
    background-size: var(--diameter) var(--diameter);
    background-position: center;
    transform: rotate(-60deg);
    position: relative;
    transition: 1s;
    opacity: 1;
    top: 25%;
}
.slider .list .item .image::before, 
.slider .list .item .image::after{
    position: absolute;
    width: 70%;
    height: 70%;
    content: '';
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)  rotate(-120deg);
    background-image: 
    linear-gradient(to right, #0004, #0004),
    var(--url);
    background-size: var(--diameter) var(--diameter);
    background-position: center;
    transition: 1s;
}
.slider .list .item .image::after{
    width: 30%;
    height: 30%;
    background-image: var(--url);
    border: 3px solid #fff2;
    transform: translate(-50%, -50%) rotate(-170deg);
}

/* default  */
.slider .list .item .image{
    filter: blur(30px);
}

.slider .list .item{
    pointer-events: none;
    opacity: 0;
}
/* item active */
.slider .list .item.active{
    pointer-events: auto;
    opacity: 1;
}
.slider .item.active .image{
    filter: blur(0px);
    transform: rotate(0deg);
}
.slider .item.active .image::before,
.slider .item.active .image::after
{
    transform: translate(-50%, -50%) rotate(0deg) ;
}
.slider .list .item.active .content h2{
    transform: translateY(0);
}

/* item phía sau */
.slider .list .item.active ~ .item{
    opacity: 0;
}
.slider .item.active ~ .item .image{
    transform: rotate(60deg);
}
.slider .item.active ~ .item .image::before
{
    transform: translate(-50%, -50%) rotate(120deg) ;
}
.slider .item.active ~ .item .image::after
{
    transform: translate(-50%, -50%) rotate(170deg) ;
}
.slider .list .item.active ~ .item .content h2{
    transform: translateY(100%);
}
/* arrows */
.arrows{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    width: min(100%, var(--width-default));
    display: flex;
    justify-content: space-between;
}
.arrows button{
    all: unset;
    z-index: 100;
    opacity: 0;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrows button svg{
    width: 40px;
    height: 40px;
}

.slider:hover .arrows button{
    opacity: 1;
}

.arrows button:hover{
    opacity: 1;
    transform: scale(1.2);
}
.slider .list::after {
    position: absolute;
    content: '';
    top: 75%;
    left: 50%;
    width: clamp(260px, 30vw, 420px);
    height: clamp(260px, 30vw, 420px);
    transform: translate(-50%, -50%);
    background-image: url('media/model2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 5;
    animation: showModel 1s ease-in-out 1 forwards;
}
@keyframes showModel{
    from{
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.arrows button.d-none{
    opacity: 0;
    pointer-events: none;
}
@media all and (max-width: 1024px) {
    .slider .list .item .content{
        grid-template-columns: repeat(2, 300px);
    }
    .slider .list .item .content h2{
        font-size: 8em;
    }
}

@media all and (max-width: 767px) {
    .slider .list .item .content{
        grid-template-columns: 80%;
        justify-content: center;
        gap: 20px;
        top: 70px;
    }
    .slider .list .item .content h2{
        font-size: 4em;
    }
    .slider .list .item .content p{
        font-size: small;
    }
}

/*Hover Cards */
.page2{
    width: 100%;
    min-height: 100vh;
}

.page2 .cards .box{
  background-color: var(--shade1-color);
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 1rem;
  gap: 1rem;
  box-sizing: border-box;
}

.page2 .cards .box-text{
  font-size: clamp(1.1rem, 1.4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  white-space: normal;
}

.page2 .context{
    background-color: var(--shade1-color);
    height: auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 5em;
}
.page2 .context img{
    width: 100px;
}

.page2 .context .text{
    display: grid;
    color: var(--shade2-color);
    text-align: left;
}

.page2 .context .text h2{
    letter-spacing: 1px;
    font-size: 25px;
    font-weight: 300;
    font-family: var(--text-font);
    line-height: 2em;
}

.page2 .context .text p{
    font-size: 12px;
    font-weight: 100;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.page2 .cards{
    min-height: 50vh;
    position: relative;
    overflow: hidden; 
    transform-style: preserve-3d;
    background-color: var(--shade2-color);
    padding: 2rem;
}

.page2 .cards .team{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.page2 .cards .team .roster{
    overflow: hidden;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
    background-color: #111;
}

.page2 .cards .team .roster img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.page2 .cards .team .roster:hover{
    filter: brightness(1);
    transform: translateY(10px);
}

.page2 .cards .team .roster:hover + *{
    filter: brightness(0.5);
    transform: translateZ(50px) rotateY(15deg);
}

.page2 .cards .team .roster:hover + * + *{
    filter: brightness(0.3);
    transform: translateZ(30px) rotateY(9deg);
}

.page2 .cards .team .roster:hover + * + * + *{
  filter: brightness(0.1);
  transform: translateZ(15px) rotateY(3deg);
}

.page2 .cards .team .roster:has(+ *:hover){
  filter: brightness(0.5);
  transform: translateZ(50px) rotateY(-15deg);
}

.page2 .cards .team .roster:has(+ * + *:hover){
  filter: brightness(0.3);
  transform: translateZ(30px) rotateY(-9deg);
}

.page2 .cards .team .roster:has(+ * + * + *:hover){
  filter: brightness(0.1);
  transform: translateZ(15px) rotateY(-3deg);
}

/* animation */
.carousel .list .item:nth-child(1){
  z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content h2,
.carousel .list .item:nth-child(1) .content .author{
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .5s 1s linear 1 forwards;
}

@keyframes showContent{
  to{
      transform: translateY(0px);
      filter: blur(0px);
      opacity: 1;
  }
}
.carousel .list .item:nth-child(1) .content .title{
  animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
  animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
  animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
  animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
  to{
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1){
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
  z-index: 100;
}
@keyframes showThumbnail{
  from{
      width: 0;
      opacity: 0;
  }
}
.carousel.next .thumbnail{
  animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
  from{
      transform: translateX(150px);
  }
}

/* running time */

.carousel .time{
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: #6F8FAF;
  left: 0;
  top: 0;
}

.carousel.next .time,
.carousel.prev .time{
  animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
  from{ width: 100%}
  to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}
@keyframes outFrame{
  to{
      width: 150px;
      height: 220px;
      bottom: 50px;
      left: 50%;
      border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1){
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
  pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
  animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
  to{
      transform: translateY(-150px);
      filter: blur(20px);
      opacity: 0;
  }
}
@media screen and (max-width: 678px) {
  .carousel .list .item .content{
      padding-right: 0;
  }
  .carousel .list .item .content .title{
      font-size: 30px;
  }
}

/* Projects Section - Page 3 */
 .page3{
  width: 100%;
  max-width: 1600px;
  background-color: var(--shade2-color);
  padding: 0 2rem;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

.page3 .box{
  background-color: var(--shade1-color);
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
  margin: 0 auto 1rem;
  width: 100%;
  box-sizing: border-box;
}

.page3 .box-text{
  color: #ffffff;
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
}

.page3 .carousel{
  min-height: 100vh;
  height: auto;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page3 .carousel .list{
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100%;
}

.page3 .carousel .list .item{
  width: 100%;
  min-height: 100vh;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.page3 .carousel .list .item:first-child,
.page3 .carousel .list .item.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.page3 .carousel .list .item {
  width: 100%;
  min-height: 100vh;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  background: #000;
}
.page3 .carousel .list .item video,
.page3 .carousel .list .item iframe {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: none;
}
.page3 .carousel .list .item .poster {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.35s ease;
}
.page3 .carousel-play-overlay {
  transition: opacity 0.25s ease;
}
.page3 .carousel .list .item.active video,
.page3 .carousel .list .item:first-child video,
.page3 .carousel .list .item.active iframe,
.page3 .carousel .list .item:first-child iframe{
  visibility: visible;
  opacity: 1;
}
.page3 .carousel .list .item .content{
  position: absolute;
  top: clamp(8%, 12vh, 16%);
  width: clamp(260px, 36vw, 520px);
  max-width: 46%;
  left: clamp(4%, 5vw, 60px);
  transform: none;
  padding-right: 0;
  box-sizing: border-box;
  color: var(--shade2-color);
  text-shadow: 0 5px 10px var(--shade1-color);
  pointer-events: none; /* allow clicks to pass through to video controls */
  z-index: 3;
}

@media (max-width: 768px) {
  .page3 .carousel .list .item video{
    /* avoid aggressive cropping on narrow screens */
    object-fit: contain;
    background: #000;
  }
}
.page3 .carousel .list .item .content{
  position: absolute;
  top: clamp(8%, 12vh, 16%);
  width: clamp(260px, 36vw, 520px);
  max-width: 46%;
  left: clamp(4%, 5vw, 60px);
  transform: none;
  padding-right: 0;
  box-sizing: border-box;
  color: var(--shade2-color);
  text-shadow: 0 5px 10px var(--shade1-color);
  pointer-events: none; /* allow clicks to pass through to video controls */
  z-index: 4;
}

.page3 .carousel .list .item .content h2{
  font-size: 30px;
  font-weight: 100;
  letter-spacing: 1px;
  background-color: var(--shade1-color);
  width: fit-content;
  color: var(--shade2-color);
  line-height: 30px;
  font-family: var(--text-font);
}

.page3 .carousel .list .item .author{
  font-family: var(--main-font);
  letter-spacing: 2px;
}
/* thumbail */
.page3 .carousel-footer{
  position: absolute;
  inset: auto 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 0 1rem;
  margin: 0 auto;
  box-sizing: border-box;
  pointer-events: none;
}
.page3 .carousel-footer .thumb-nav{
  flex: 0 0 auto;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}
.page3 .thumbnail{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 12px);
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 720px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.page3 .thumbnail::-webkit-scrollbar{
  display: none;
}

.page3 .thumbnail::-webkit-scrollbar-track,
.page3 .thumbnail::-webkit-scrollbar-thumb{
  background: transparent;
}

.page3 .thumbnail .item{
  width: clamp(80px, 12vw, 110px);
  height: clamp(100px, 15vw, 140px);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(255, 255, 255, 0.06);
  scroll-snap-align: center;
}

.page3 .thumbnail .item video,
.page3 .thumbnail .item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.carousel .content.fade-out h2,
.carousel .content.fade-out .author{
  animation: hideContent 0.8s ease forwards;
}

@keyframes hideContent{
  from{
    opacity: 1;
    transform: translateY(0px);
    filter: blur(0px);
  }
  to{
    opacity: 0;
    transform: translateY(-12px);
    filter: blur(4px);
  }
}
/* Active Thumbnail Styles - Page 3 */
.page3 .thumbnail .item.active {
    border: 2px solid #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}
.page3 .thumbnail .item video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.page3 .carousel .list .item .content *{
  pointer-events: none;
}

.page3 .thumb-nav{
  width: clamp(36px, 8vw, 48px);
  height: clamp(36px, 8vw, 48px);
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #111111;
  font-family: monospace;
  font-weight: 800;
  font-size: 1.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page3 .thumb-nav:hover{
  background-color: rgba(255, 255, 255, 1);
}
.page3 .thumb-nav:focus{
  outline: none;
}

.page4-publication{
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) 2rem 2rem;
  box-sizing: border-box;
  background-color: var(--shade2-color);
}

.page4-publication .box{
  background-color: var(--shade1-color);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.page4-publication .box-text{
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.publication-sections{
  display: grid;
  gap: 2rem;
}

.publication-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .publication-row{
    grid-template-columns: 1fr;
  }
}

.publication-category{
  display: grid;
  gap: 1rem;
}

.publication-category h3{
  margin: 0;
  color: #111;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.publication-grid.ratio-1-1 .publication-item{
  aspect-ratio: 1 / 1;
}

.publication-grid.ratio-3-1 .publication-item{
  aspect-ratio: 3 / 1;
}

.publication-grid.ratio-a4-landscape .publication-item{
  aspect-ratio: 1.414 / 1;
}

.publication-grid.ratio-500-700 .publication-item{
  aspect-ratio: 5 / 7;
}

.publication-grid.ratio-a4-portrait .publication-item{
  aspect-ratio: 1 / 1.414;
}

.publication-grid.ratio-3-4 .publication-item{
  aspect-ratio: 3 / 4;
}

.publication-grid.ratio-9-16 .publication-item{
  aspect-ratio: 9 / 16;
}

.publication-item{
  overflow: hidden;
  border-radius: 20px;
  background-color: #111;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  cursor: search;
}

.publication-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.publication-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
}

.publication-modal.hidden{
  display: none;
}

.publication-modal__content{
  position: relative;
  width: min(100%, 1100px);
  max-height: 90vh;
  padding: 1rem;
  border-radius: 24px;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.publication-modal__content img{
  width: 100%;
  height: auto;
  max-height: calc(90vh - 3rem);
  display: block;
  border-radius: 16px;
  object-fit: contain;
}

.publication-modal__close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.publication-modal__close:hover{
  background: rgba(255, 255, 255, 0.2);
}

.publication-item:hover img{
  transform: scale(1.03);
}

/* animation */
.carousel .list .item:nth-child(1){
  z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content h2,
.carousel .list .item:nth-child(1) .content .author{
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .5s 1s linear 1 forwards;
}

@keyframes showContent{
  to{
      transform: translateY(0px);
      filter: blur(0px);
      opacity: 1;
  }
}
.carousel .list .item:nth-child(1) .content .title{
  animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
  animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
  animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
  animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
  to{
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1){
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
  z-index: 100;
}
@keyframes showThumbnail{
  from{
      width: 0;
      opacity: 0;
  }
}
.carousel.next .thumbnail{
  animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
  from{
      transform: translateX(150px);
  }
}

/* running time */

.carousel .time{
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: #f1683a;
  left: 0;
  top: 0;
}

.carousel.next .time,
.carousel.prev .time{
  animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
  from{ width: 100%}
  to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}
@keyframes outFrame{
  to{
      width: 150px;
      height: 220px;
      bottom: 50px;
      left: 50%;
      border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1){
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
  pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
  animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
  to{
      transform: translateY(-150px);
      filter: blur(20px);
      opacity: 0;
  }
}
@media screen and (max-width: 678px) {
  .carousel .list .item .content{
      padding-right: 0;
  }
  .carousel .list .item .content .title{
      font-size: 30px;
  }
}

/*Available for Freelance & Back to Top*/
.freelance-bar {
  background-color: var(--shade1-color);
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.freelance-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.freelance-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

.status-text {
  color: var(--shade2-color);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.back-to-top {
  background: none;
  border: none;
  color: var(--shade2-color);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  transition: opacity 0.3s;
}

.back-to-top:hover {
  opacity: 0.8;
}

.top-arrow {
  width: 32px;
  height: 32px;
  background-color: var(--shade2-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shade1-color);
}

.top-arrow i {
  font-size: 1.2rem;
}

/*Jumbotron Section*/
.jumbotron-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Parallax depth: gradient layer moves subtly with scroll. */
.jumbotron-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  transform: translate3d(0, calc(var(--parallax-y, 0) * 0.4px), 0);
  will-change: transform;
}

.jumbotron-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 100%;
  background: 
    radial-gradient(ellipse at center, rgba(111, 143, 175, 0.2) 0%, rgba(111, 143, 175, 0.1) 30%, transparent 70%),
    linear-gradient(
      to right,
      rgba(42, 42, 42, 0) 0%,
      rgba(111, 143, 175, 0.12) 15%,
      rgba(182, 208, 226, 0.18) 30%,
      rgba(111, 143, 175, 0.25) 50%,
      rgba(182, 208, 226, 0.18) 70%,
      rgba(111, 143, 175, 0.12) 85%,
      rgba(26, 26, 26, 0) 100%
    );
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}

.jumbotron-left {
  width: 50%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: #2a2a2a;
  z-index: 2;
}

.jumbotron-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.jumbotron-quote {
  font-family: var(--text-font);
  font-size: 5rem;
  font-weight: 700;
  color: var(--shade2-color);
  line-height: 1.2;
  letter-spacing: 5px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.green-dot {
  color: var(--extra-color);
}

.jumbotron-subtitle {
  font-family:'Poppins', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 100;
  color: var(--shade2-color);
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.jumbotron-right {
  width: 50%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #2a2a2a;
  position: relative;
  z-index: 2;
}

.profile-section {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.profile-image-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.profile-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  z-index: 3;
  pointer-events: none;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: var(--main-font);
  font-size: 2rem;
  font-weight: 600;
  color: var(--shade2-color);
  margin: 0 0 0.5rem 0;
}

.profile-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #999;
  margin: 0 0 1rem 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shade2-color);
  font-size: 1.2rem;
  transition: opacity 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  opacity: 0.7;
}

.contact-section {
  margin-top: 2rem;
}

.contact-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.contact-email {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--shade2-color);
  text-decoration: none;
  display: block;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s;
}

.contact-email:hover {
  opacity: 0.8;
}

.contact-description {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-description b {
  color: var(--shade2-color);
  font-weight: 600;
}

.resume-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--shade1-color);
  color: var(--shade2-color);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.resume-button:hover {
  transform: translateY(-2px);
}

.resume-button i {
  font-size: 1.2rem;
  transform: rotate(45deg);
}

.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
  background: rgba(10, 10, 10, .68);
  backdrop-filter: blur(12px);
}

.resume-modal.hidden {
  display: none;
}

.resume-modal__content {
  display: flex;
  flex-direction: column;
  width: min(100%, 70rem);
  height: min(92svh, 60rem);
  overflow: hidden;
  color: var(--shade2-color);
  background: #171717;
  border: 1px solid rgba(182, 208, 226, .35);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .45);
}

.resume-modal__header {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.resume-modal__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.resume-modal__separator {
  margin: 0 .5rem;
  color: rgba(255, 255, 255, .65);
}

.resume-modal__controls button,
.resume-modal__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: .45rem .7rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: .25rem;
  color: var(--shade2-color);
  background: #252525;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.resume-modal__controls button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.resume-modal__controls output {
  min-width: 3.5rem;
  text-align: center;
  font-size: .85rem;
}

.resume-modal__download {
  color: #111;
  background: var(--extra-color);
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}

.resume-modal__download i {
  font-size: 1.25rem;
}

.resume-modal__fit {
  padding: .45rem .7rem;
}

.resume-modal__fit i {
  font-size: 1.25rem;
  transition: transform .2s ease;
}

.resume-modal__fit.is-fit-page i {
  transform: rotate(90deg);
}

.resume-modal__close {
  position: absolute;
  top: 50%;
  right: .75rem;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: var(--shade2-color);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.resume-modal__viewer {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  background: #333;
}

.resume-modal__viewer canvas {
  display: block;
  margin: 0 auto 1rem;
  background: #fff;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .35);
}

.resume-modal__viewer p {
  margin: 1rem;
  color: var(--shade2-color);
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

@media (max-width: 500px) {
  .resume-modal {
    padding: .5rem;
  }

  .resume-modal__header {
    min-height: 6.5rem;
    padding: 2.75rem .5rem .5rem;
  }

  .resume-modal__controls {
    justify-content: center;
  }

  .resume-modal__controls button,
  .resume-modal__download {
    min-width: 2rem;
    min-height: 2rem;
    padding: .25rem;
  }

  .resume-modal__controls output {
    min-width: 2.75rem;
    font-size: .75rem;
  }

  .resume-modal__fit i,
  .resume-modal__download i {
    font-size: 1.1rem;
  }

  .resume-modal__controls .resume-modal__fit {
    padding-right: .25rem;
    padding-left: .25rem;
  }

  .resume-modal__separator {
    margin: 0 .15rem;
  }

  .resume-modal__close {
    top: .25rem;
    right: .5rem;
    width: 2rem;
    height: 2rem;
    transform: none;
  }
}

/* Native video fullscreen keeps the media proportional on every device. */
.page3 .carousel .list .item video:fullscreen,
.page3 .carousel .list .item video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  background: #000;
}

.page3 .carousel .list .item video::backdrop,
.page3 .carousel .list .item video::-webkit-full-screen-backdrop {
  background: #000;
}

@media (max-width: 968px) {
  .jumbotron-section {
    flex-direction: column;
  }
  
  .jumbotron-left,
  .jumbotron-right {
    width: 100%;
    padding: 3rem 2rem;
  }
  
  .jumbotron-quote {
    font-size: 3rem;
  }
}

@media (max-width: 1024px) {
  .nav-left,
  .nav-right {
    justify-content: center;
  }
  .slider .list .item .content {
    top: 18%;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page2 .context {
    padding: clamp(2rem, 4vw, 4rem);
  }
  .page3 .carousel {
    min-height: 95vh;
  }
  .page3 .carousel .list .item .content {
    padding-right: clamp(1rem, 10vw, 20%);
  }
}

@media (max-width: 768px) {
  .navbar {
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  .nav-left,
  .nav-right {
    width: 100%;
    justify-content: center;
  }
  .page2 .context {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .page3 .carousel {
    min-height: auto;
  }
  .page3 .carousel .list .item {
    min-height: 55vh;
  }
  .page3 .carousel .list .item .content {
    top: 15%;
    width: min(94vw, 520px);
    max-width: 90%;
    padding-right: 1rem;
  }
  .page3 .carousel-footer {
    position: absolute;
    inset: auto 0 16px;
    transform: none;
    width: 100%;
    max-width: 1100px;
    gap: 8px;
    padding: 0 1rem;
    margin: 0 auto;
  }
  .page3 .carousel-footer .thumbnail {
    gap: 8px;
    flex: 0 1 auto;
    max-width: min(100%, 680px);
  }
  .page3 .carousel-footer .thumb-nav {
    width: 36px;
    height: 36px;
  }
  .page4-publication {
    padding: 2rem 1rem 1.5rem;
  }
  #footer .content .footer-section {
    padding: 1.5rem;
  }
}

@media (max-width: 425px) {
  .navbar {
    gap: 0.5rem;
  }
  .nav-left,
  .nav-right {
    gap: 0.75rem;
  }
  .logo img {
    width: 85px;
  }
  .slider .list .item .content {
    top: 12%;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .slider .list .item .content h2 {
    font-size: clamp(2.4rem, 12vw, 3rem);
  }
  .slider .list .item .content p {
    font-size: 1rem;
  }
  .page3 .carousel-footer {
    position: absolute;
    inset: auto 0 12px;
    transform: none;
    width: 100%;
    max-width: 920px;
    gap: 6px;
    padding: 0 0.75rem;
  }
  .page3 .thumbnail {
    gap: 6px;
    flex: 0 1 auto;
    max-width: min(100%, 560px);
  }
  .page3 .thumbnail .item {
    width: clamp(60px, 16vw, 80px);
    height: clamp(70px, 18vw, 90px);
  }
  .page3 .thumb-nav {
    width: 32px;
    height: 32px;
  }
  .page4-publication {
    padding: 1.5rem 1rem 1rem;
  }
  #footer .content {
    width: 100%;
  }
}

/*Footer */
#footer{
    min-height: 50vh;
    width: 100%;
    background: var(--shade1-color);
    padding: 2rem 0;
}

#footer .content{
    width: min(90%, 1200px);
    margin: 0 auto;
    padding-top: 2rem;
}

#footer .content .footer-section img{
  max-width: 220px;
    width: 100%;
    height: auto;
  display: block;
}

#footer .content .footer-section > .logo {
  flex: 0 0 clamp(9rem, 16vw, 14rem);
  display: flex;
  justify-content: center;
}

#footer .content .footer-section > .logo > a {
  display: block;
  width: 100%;
}

#footer .content .footer-section {
    border-bottom: 1px solid #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(1.5rem, 3vw, 2rem) 0;
}
#footer .content .footer-item {
    color: var(--shade2-color);
    text-align: left;
  min-width: 0;
}

#footer .content .footer-item .title{
    text-decoration: none;
    color: var(--shade2-color);
    font-size: 0.8em;
    font-weight: 200;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    line-height: 25px;
}

#footer .content .footer-item .name {
    color: var(--shade2-color);
    font-size: 1.5em;
    text-transform: uppercase;
    font-family: 'BOOTLE', sans-serif;
    padding-bottom: 1rem;
}

#footer .sub-nav{
    color: var(--shade2-color);
    display: grid;
    gap: 0.5rem;
    position: static;
}

#footer .sub-nav a{
    font-size: 0.8em;
    font-weight: 200;
    text-transform: capitalize;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    line-height: 25px;
    color: var(--shade2-color);
    text-decoration: none;
    overflow-wrap: anywhere;
}

#footer .sub-nav i{
    font-size: 13px;
    color: var(--shade2-color);
    transition: all .50s ease;
}

#footer .sub-nav i:hover{
    color: var(--main-color);
}


#footer .license h2{
    padding-top: 2rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6em;
    font-weight: 200;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   SCROLL-BASED MOTION ANIMATIONS
   UX: Premium, minimal, Awwwards-level. Fade + translateY, scale-in, stagger.
   Performance: transform/opacity only; no layout shifts. Respect reduced motion.
   ========================================================================== */

/* Respect prefers-reduced-motion: disable or minimize motion for accessibility. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration: 0.01ms;
    --motion-stagger: 0;
  }
  .scroll-animate,
  .scroll-animate--hero,
  .scroll-animate--card,
  .scroll-animate--cta { transition: none !important; }
  .scroll-animate--cta.in-view .freelance-content { animation: none !important; }
  .scroll-animate:not(.in-view) { opacity: 0; }
  .scroll-animate.in-view { opacity: 1; transform: none !important; }
  .scroll-animate--hero.in-view { filter: blur(0); }
  .slider .list .item .content.scroll-animate--hero.in-view { transform: translateX(-50%) !important; }
  .scroll-animate--stagger.in-view .scroll-animate__child { transform: none !important; }
  .scroll-animate--stagger.in-view .scroll-animate--card { transform: none !important; }
  .main-container .parallax-bg,
  .jumbotron-section::before {
    transform: none !important;
    will-change: auto !important;
  }
}

/* Base: fade-in + translateY(20–40px). Avoids layout shift by using transform. */
.scroll-animate {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--motion-duration) var(--motion-ease-out),
    transform var(--motion-duration) var(--motion-ease-out);
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hero: text slides up with slight blur removal. Reinforces hierarchy on load. */
.scroll-animate--hero {
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity var(--motion-duration) var(--motion-ease-out),
    transform var(--motion-duration) var(--motion-ease-out),
    filter var(--motion-duration) var(--motion-ease-out);
}

.scroll-animate--hero.in-view {
  transform: translateY(0);
  filter: blur(0);
}

/* Slider .content uses translateX(-50%) for centering; preserve it. */
.slider .list .item .content.scroll-animate--hero {
  transform: translateX(-50%) translateY(28px);
}

.slider .list .item .content.scroll-animate--hero.in-view {
  transform: translateX(-50%) translateY(0);
}

/* Cards: subtle scale-in (0.95 → 1) + fade. Adds depth without distraction. */
.scroll-animate--card {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity var(--motion-duration) var(--motion-ease-out),
    transform var(--motion-duration) var(--motion-ease-out);
}

.scroll-animate--card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger: delay children by index. Lists/grids feel sequential, premium. */
.scroll-animate--stagger .scroll-animate__child {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--motion-duration) var(--motion-ease-out),
    transform var(--motion-duration) var(--motion-ease-out);
}

.scroll-animate--stagger.in-view .scroll-animate__child {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate--stagger .scroll-animate__child[data-scroll-index="0"] { transition-delay: 0s; }
.scroll-animate--stagger .scroll-animate__child[data-scroll-index="1"] { transition-delay: calc(var(--motion-stagger) * 1); }
.scroll-animate--stagger .scroll-animate__child[data-scroll-index="2"] { transition-delay: calc(var(--motion-stagger) * 2); }
.scroll-animate--stagger .scroll-animate__child[data-scroll-index="3"] { transition-delay: calc(var(--motion-stagger) * 3); }
.scroll-animate--stagger .scroll-animate__child[data-scroll-index="4"] { transition-delay: calc(var(--motion-stagger) * 4); }

/* Card stagger also uses scale; override for .scroll-animate--card children. */
.scroll-animate--stagger .scroll-animate--card {
  transform: translateY(24px) scale(0.96);
}
.scroll-animate--stagger.in-view .scroll-animate--card {
  transform: translateY(0) scale(1);
}

/* CTA: very subtle pulse when in view. Attention grab without over-animation. */
.scroll-animate--cta {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--motion-duration) var(--motion-ease-out),
    transform var(--motion-duration) var(--motion-ease-out);
}

.scroll-animate--cta.in-view {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate--cta.in-view .freelance-content {
  animation: cta-pulse 3s var(--motion-ease) infinite;
}

@keyframes cta-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

/* Projects / roster cards: hover micro-interactions — lift, glow, soft shadow. */
.page2 .cards .team .roster.scroll-animate--card {
  transition:
    opacity var(--motion-duration) var(--motion-ease-out),
    transform var(--motion-duration) var(--motion-ease-out),
    filter 0.4s var(--motion-ease),
    box-shadow 0.4s var(--motion-ease);
}

.page2 .cards .team .roster.scroll-animate--card:hover {
  filter: brightness(1);
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(111, 143, 175, 0.25);
}

/* Parallax: --parallax-y set by scroll-animations.js. See .parallax-bg and jumbotron ::before. */

/* Responsive foundations */
:root {
  --page-gutter: clamp(1rem, 4vw, 3.5rem);
  --section-gutter: clamp(1rem, 5vw, 5rem);
}

html {
  overflow-x: hidden;
  scroll-padding-top: 4.5rem;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

img, svg, video, iframe {
  max-width: 100%;
}

button, input, textarea, select {
  max-width: 100%;
}

button, a, input, textarea, select {
  touch-action: manipulation;
}

.navbar {
  min-height: 4rem;
  padding: 0 var(--page-gutter);
  gap: clamp(.5rem, 2vw, 2rem);
}

.nav-left, .nav-right {
  flex: 1 1 0;
  min-width: 0;
  justify-content: space-evenly;
}

.nav-center {
  flex: 0 0 clamp(5rem, 9vw, 7rem);
  min-width: 0;
}

.logo img {
  display: block;
  width: clamp(4.5rem, 9vw, 6.5rem);
  height: auto;
}

.mobile-menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: .65rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--shade2-color);
  transition: transform .2s ease, opacity .2s ease;
}

.main-container, .front, header, .slider {
  min-height: 100svh;
}

.slider {
  width: 100%;
  height: 100svh;
}

.slider .list .item .content {
  top: clamp(6rem, 18svh, 11rem);
  width: min(90%, 54rem);
  gap: .5rem;
}

.slider .list .item .content h2 {
  max-width: 100%;
  font-size: clamp(2rem, 7vw, 5.5rem);
  overflow-wrap: anywhere;
}

.slider .list .item .content p {
  font-size: clamp(.85rem, 1.8vw, 1.1rem);
}

.slider .list .item .image {
  width: min(var(--diameter), 180vw);
  height: min(var(--diameter), 180vw);
  background-size: cover;
  top: 18%;
}

.arrows {
  bottom: clamp(1rem, 4vh, 2rem);
  width: min(calc(100% - 2 * var(--page-gutter)), 75rem);
}

.arrows button, .page3 .thumb-nav, .publication-modal__close,
.back-to-top, .resume-button {
  min-height: 2.75rem;
}

.page2 .context {
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: var(--section-gutter);
}

.page2 .context img {
  width: clamp(5rem, 12vw, 8rem);
  height: auto;
  flex: 0 0 auto;
}

.page2 .context .text {
  width: min(100%, 48rem);
  min-width: 0;
}

.page2 .context .text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
}

.page2 .context .text p {
  font-size: clamp(.75rem, 1.3vw, .95rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.page2 .context {
  display: grid;
  grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  width: min(100%, 100rem);
  margin: 0 auto;
}

.page2 .context img {
  width: min(100%, 8rem);
  max-height: 8rem;
  object-fit: contain;
  justify-self: center;
}

.page2 .context .text {
  width: min(100%, 52rem);
  min-width: 0;
}

.page2 .context .text h2,
.page2 .context .text p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page2 .context .text h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.page2 .context .text p {
  margin: .75rem 0 0;
  font-size: clamp(.72rem, 1.2vw, .95rem);
  line-height: 1.65;
  letter-spacing: clamp(.03em, .12vw, .08em);
  text-transform: none;
}

.page2 .cards, .page3, .page4-publication {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.page2 .cards .team {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.page3 .carousel, .page3 .carousel .list {
  min-height: clamp(30rem, 78svh, 52rem);
}

.page3 .carousel .list .item {
  min-height: 100%;
}

.page3 .carousel .list .item .content {
  width: min(45%, 32rem);
  max-width: calc(100% - 2 * var(--page-gutter));
  left: var(--page-gutter);
}

.page3 .carousel .list .item .content h2 {
  max-width: 100%;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.page3 .carousel-footer {
  bottom: clamp(.75rem, 3vw, 1.5rem);
  padding: 0 var(--page-gutter);
}

.page3 .thumbnail {
  width: min(100%, 45rem);
}

.page3 .thumbnail .item {
  width: clamp(4.25rem, 10vw, 7rem);
  height: clamp(4.75rem, 12vw, 8rem);
  border-radius: 10px;
}

.publication-sections {
  width: min(100%, 90rem);
  margin: 0 auto;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.publication-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.publication-item {
  border-radius: clamp(8px, 1.5vw, 20px);
}

.publication-modal {
  padding: max(1rem, env(safe-area-inset-top)) var(--page-gutter) max(1rem, env(safe-area-inset-bottom));
}

.publication-modal__content {
  width: min(100%, 70rem);
  max-height: min(92svh, 60rem);
  padding: clamp(.5rem, 2vw, 1rem);
  overflow: auto;
}

.publication-modal__content img {
  max-height: calc(92svh - 2rem);
  object-fit: contain;
}

.freelance-bar {
  padding: .75rem var(--page-gutter);
}

.freelance-content {
  gap: 1rem;
}

.status-text, .back-to-top {
  font-size: clamp(.75rem, 1.5vw, .9rem);
}

.jumbotron-section {
  min-height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jumbotron-left, .jumbotron-right {
  width: auto;
  min-width: 0;
  padding: clamp(2rem, 5vw, 5rem) var(--section-gutter);
}

.jumbotron-quote {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  letter-spacing: clamp(1px, .4vw, 5px);
  overflow-wrap: anywhere;
}

.profile-section {
  flex-wrap: wrap;
}

.profile-image-wrapper {
  width: clamp(5rem, 10vw, 7.5rem);
  height: clamp(5rem, 10vw, 7.5rem);
}

.profile-name {
  font-size: clamp(1.35rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}

.contact-email {
  font-size: clamp(.9rem, 1.8vw, 1.2rem);
  overflow-wrap: anywhere;
}

.resume-button {
  padding: .8rem 1.25rem;
}

#footer .content {
  width: min(calc(100% - 2 * var(--page-gutter)), 75rem);
}

#footer .content .footer-section {
  padding: clamp(1.5rem, 4vw, 2rem) 0;
  align-items: flex-start;
}

#footer .content .footer-item {
  min-width: 0;
}

#footer .content .footer-item .title, #footer .sub-nav a {
  overflow-wrap: anywhere;
}

#footer .license h2 {
  font-size: clamp(.55rem, 1.2vw, .7rem);
  line-height: 1.6;
}

@media (max-width: 767px) {
  :root {
    --navbar-height: clamp(2.75rem, 4vw, 3rem);
  }

  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  .navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 4rem;
    padding: .5rem var(--page-gutter);
  }

  .nav-left, .nav-right {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    padding: .75rem var(--page-gutter);
    background: rgba(16, 16, 16, .96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-right {
    top: 8.5rem;
  }

  .navbar.mobile-open .nav-left, .navbar.mobile-open .nav-right {
    display: flex;
  }

  .navbar .headline {
    width: 100%;
    text-align: center;
  }

  .navbar .headline a {
    display: block;
    min-height: 2.75rem;
    padding: .75rem .5rem;
    font-size: .85rem;
  }

  .nav-center {
    grid-column: 2;
    grid-row: 1;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: var(--page-gutter);
    top: .6rem;
  }

  .navbar.mobile-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.mobile-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .navbar.mobile-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .slider .list .item .content {
    top: clamp(5rem, 16svh, 8rem);
    width: calc(100% - 2 * var(--page-gutter));
  }

  .slider .list .item .image {
    position: absolute;
    top: var(--navbar-height);
    left: 50%;
    width: min(var(--diameter), 180vw);
    height: min(var(--diameter), 180vw);
    transform-origin: top center;
    transform: translateX(-50%) rotate(-60deg);
  }

  .slider .item.active .image {
    transform: translateX(-50%) rotate(0deg) scale(1.12);
  }

  .slider .list .item.active ~ .item .image {
    transform: translateX(-50%) rotate(60deg);
  }

  .slider .list::after {
    top: 68%;
    width: clamp(12rem, 62vw, 22rem);
    height: clamp(12rem, 62vw, 22rem);
  }

  .page3 .carousel, .page3 .carousel .list {
    min-height: min(78svh, 38rem);
  }

  .page3 .carousel .list .item .content {
    top: 10%;
    width: calc(100% - 2 * var(--page-gutter));
    max-width: none;
  }

  .page3 .carousel .list .item video {
    object-fit: contain;
  }

  .jumbotron-section {
    grid-template-columns: 1fr;
  }

  .jumbotron-left, .jumbotron-right {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .jumbotron-left {
    min-height: 50svh;
  }

  .jumbotron-right {
    min-height: auto;
  }

  .profile-section {
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 420px) {
  .page2 .context {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.25rem;
    padding: clamp(2rem, 8vw, 3rem) var(--page-gutter);
  }

  .page2 .context img {
    width: clamp(4.5rem, 25vw, 7rem);
    max-height: 7rem;
  }

  .page2 .context .text {
    width: 100%;
    text-align: center;
  }

  .page2 .context .text h2 {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .page2 .context .text p {
    font-size: clamp(.72rem, 3.2vw, .85rem);
    line-height: 1.55;
    letter-spacing: .03em;
  }

  .page2 .cards {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .page2 .cards .team {
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
  }

  .page2 .cards .team .roster img {
    aspect-ratio: 3 / 4;
  }

  .page3 .carousel-footer {
    padding-left: .5rem;
    padding-right: .5rem;
  }

  .page3 .thumbnail .item {
    width: 4rem;
    height: 4.5rem;
  }

  .freelance-content {
    align-items: center;
    flex-direction: row;
  }

  .freelance-status {
    max-width: 100%;
    min-width: 0;
  }

  .status-dot {
    flex: 0 0 8px;
  }

  .status-text {
    font-size: clamp(.7rem, 3vw, .85rem);
    line-height: 1.4;
  }

  .back-to-top {
    align-self: center;
  }

  .back-to-top > span {
    display: none;
  }
}

/* Navbar scale and full-screen mobile menu */
.navbar {
  min-height: clamp(2.75rem, 4vw, 3.75rem);
  padding-top: clamp(.2rem, .6vw, .5rem);
  padding-bottom: clamp(.2rem, .6vw, .5rem);
}

.navbar .headline a {
  font-size: clamp(.65rem, 1vw, .8rem);
}

.logo img {
  width: clamp(4rem, 8vw, 6rem);
}

@media (max-width: 767px) {
  .navbar {
    min-height: clamp(2.75rem, 4vw, 3rem);
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar:not(.mobile-open) .logo img {
    width: clamp(3.5rem, 16vw, 4.5rem);
    max-height: 2.25rem;
  }

  .navbar:not(.mobile-open) .mobile-menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .mobile-menu-toggle {
    top: 50%;
    transform: translateY(-50%);
  }

  .navbar.mobile-open {
    height: 100svh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: clamp(1rem, 4vh, 2.5rem) var(--page-gutter);
    background: rgba(16, 16, 16, .7);
    backdrop-filter: blur(24px);
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  .navbar.mobile-open .nav-center {
    order: 1;
    flex: 0 0 clamp(3.5rem, 12vh, 6rem);
    width: 100%;
    justify-content: center;
  }

  .navbar.mobile-open .nav-left,
  .navbar.mobile-open .nav-right {
    position: static;
    order: 2;
    display: flex;
    width: 100%;
    flex: 1 1 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
  }

  .navbar.mobile-open .nav-right {
    order: 3;
  }

  .navbar.mobile-open .headline {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar.mobile-open .headline a {
    width: 100%;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .9rem .75rem;
    font-size: clamp(1rem, 4vw, 1.35rem);
  }

  .navbar.mobile-open .mobile-menu-toggle {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: var(--page-gutter);
    z-index: 20;
    transform: none;
  }
}

@media (min-width: 1600px) {
  .page2 .context, .page2 .cards,
  .jumbotron-section, #footer .content {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Keep the About and contact sections fixed to the viewport width. */
.page2 .context,
.jumbotron-section {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.page2 .context {
  column-gap: clamp(1.25rem, 4vw, 4rem);
  row-gap: clamp(1.25rem, 4vw, 2.5rem);
}

.page2 .context > *,
.jumbotron-section > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.jumbotron-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jumbotron-left,
.jumbotron-right {
  width: auto;
  min-width: 0;
}

@media (max-width: 968px) {
  .jumbotron-section {
    grid-template-columns: 1fr;
  }
}

/* Hero tuning: keep the reveal subtle and zoom the active artwork on small screens. */
.slider .list .item .content.scroll-animate--hero {
  transform: translateX(-50%) translateY(12px);
}

.slider .list .item .content.scroll-animate--hero.in-view {
  transform: translateX(-50%) translateY(0);
}

.slider .item.active .image {
  transform: rotate(0deg) scale(1.04);
}

@media (max-width: 767px) {
  .slider .item.active .image {
    transform: translateX(-50%) rotate(0deg) scale(1.12);
  }
}

@media (max-width: 420px) {
  .slider .item.active .image {
    transform: translateX(-50%) rotate(0deg) scale(1.2);
  }
}

@media (max-width: 350px) {
  .slider .list .item .image {
    width: min(var(--diameter), max(100vw, 100svh));
    height: min(var(--diameter), max(100vw, 100svh));
  }

  .slider .item.active .image {
    transform: translateX(-50%) rotate(0deg) scale(1);
  }
}

/* Hero typography grows on smaller screens for stronger, readable emphasis. */
.slider .list .item .content h2 {
  font-size: clamp(3.5rem, 2.8vw, 3.5rem);
  line-height: 1;
}

.slider .list .item .content p {
  font-size: clamp(.9rem, .7vw, 1.05rem);
}

@media (max-width: 1024px) {
  .slider .list .item .content h2 {
    font-size: clamp(3.75rem, 4vw, 4rem);
  }

  .slider .list .item .content p {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  }
}

@media (max-width: 767px) {
  .slider .list .item .content h2 {
    font-size: clamp(4.25rem, 12vw, 4.75rem);
  }

  .slider .list .item .content p {
    font-size: clamp(1.2rem, 4.5vw, 1.35rem);
  }
}

@media (max-width: 420px) {
  .slider .list .item .content h2 {
    font-size: clamp(4.5rem, 16vw, 5rem);
  }

  .slider .list .item .content p {
    font-size: clamp(1.35rem, 5vw, 1.45rem);
  }
}

@media (min-width: 520px) and (max-width: 1024px) {
  .slider .list .item .content {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(.5rem, 2vw, 1rem);
  }

  .slider .list .item .content h2 {
    max-width: 100%;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
  }

  .slider .list .item .content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }
}

/* Project videos keep the 1920 x 1080 (16:9) frame at every viewport size. */
.page3 .carousel {
  width: 100%;
  max-width: 1600px;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.page3 .carousel .list {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.page3 .carousel .list .item {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.page3 .carousel .list .item video,
.page3 .carousel .list .item iframe,
.page3 .carousel .list .item .poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .page3 .carousel .list .item video {
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .page3 .carousel {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    gap: .75rem;
  }

  .page3 .carousel .list {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .page3 .carousel .list .item {
    height: 100%;
    aspect-ratio: 16 / 9;
  }

  .page3 .carousel-footer {
    position: static;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    width: 100%;
    max-width: none;
    min-height: 4.75rem;
    padding: 0;
    gap: .5rem;
    pointer-events: auto;
  }

  .page3 .carousel-footer .thumb-nav {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    font-size: 1.1rem;
  }

  .page3 .thumbnail {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: flex-start;
    gap: .5rem;
    padding: .25rem 0;
  }

  .page3 .thumbnail .item {
    width: clamp(3.5rem, 18vw, 4.5rem);
    height: clamp(4rem, 21vw, 5.25rem);
    border-radius: 8px;
  }

  .page3 .carousel .time {
    position: absolute;
    top: 0;
  }

  #footer {
    min-height: auto;
    padding: 1.75rem 0 1.25rem;
  }

  #footer .content {
    width: min(calc(100% - 2 * var(--page-gutter)), 24rem);
    padding-top: 1rem;
  }

  #footer .content .footer-section {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(1.25rem, 5vw, 2rem);
    padding: 1.5rem 0;
    text-align: center;
  }

  #footer .content .footer-section img {
    width: clamp(9rem, 40vw, 12rem);
    max-width: none;
  }

  #footer .content .footer-item {
    width: 100%;
    text-align: center;
  }

  #footer .content .footer-item .name {
    padding-bottom: .5rem;
    font-size: clamp(1.25rem, 5.5vw, 1.6rem);
    line-height: 1.15;
  }

  #footer .content .footer-item .title,
  #footer .sub-nav a {
    font-size: clamp(.78rem, 3.2vw, .95rem);
    line-height: 1.65;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
  }

  #footer .sub-nav {
    justify-items: center;
    gap: .35rem;
  }

  #footer .sub-nav i {
    font-size: 1rem;
  }

  #footer .license h2 {
    padding: 1.25rem var(--page-gutter) 0;
    font-size: clamp(.58rem, 2.5vw, .72rem);
    line-height: 1.7;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .jumbotron-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .jumbotron-left,
  .jumbotron-right {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  }

  .jumbotron-quote {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }

  .profile-section {
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .profile-info {
    min-width: 0;
  }

  #footer {
    min-height: auto;
    padding: 1.5rem 0;
  }

  #footer .content {
    width: min(calc(100% - 2 * var(--page-gutter)), 64rem);
    padding-top: 1rem;
  }

  #footer .content .footer-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .7fr);
    align-items: center;
    justify-content: initial;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 3vw, 2rem) 0;
  }

  #footer .content .footer-section > .logo {
    width: min(100%, 12rem);
    min-width: 0;
    flex: initial;
    justify-content: flex-start;
  }

  #footer .content .footer-section img {
    width: 100%;
    max-width: 12rem;
  }

  #footer .content .footer-item {
    width: 100%;
    align-self: center;
  }

  #footer .content .footer-item .name {
    padding-bottom: .65rem;
    font-size: clamp(1.25rem, 2.6vw, 1.5rem);
    line-height: 1.15;
  }

  #footer .content .footer-item .title,
  #footer .sub-nav a {
    font-size: clamp(.75rem, 1.35vw, .85rem);
    line-height: 1.65;
    letter-spacing: .03em;
    overflow-wrap: anywhere;
  }

  #footer .sub-nav {
    justify-items: start;
    gap: .35rem;
  }

  #footer .license h2 {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.25rem var(--page-gutter) 0;
    font-size: clamp(.58rem, 1vw, .7rem);
    line-height: 1.7;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 583px) {
  #footer .content .footer-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    column-gap: clamp(.75rem, 3vw, 1.25rem);
    row-gap: 1.5rem;
    text-align: center;
  }

  #footer .content .footer-section > .logo {
    grid-column: 1 / -1;
  }

  #footer .content .footer-item {
    width: 100%;
    text-align: center;
  }

  #footer .sub-nav {
    justify-items: center;
  }

  #footer .content .footer-section img {
    width: clamp(10rem, 44vw, 14rem);
  }
}

#footer {
  min-height: 0;
  padding-bottom: .75rem;
}
