/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-size: 62.5%;
}

body,
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  color: #000;
  background-color: #fff4e4;
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1;
}

::-moz-selection {
  background-color: #000;
  color: #fff;
  text-shadow: none;
}

::selection {
  background-color: #000;
  color: #fff;
  text-shadow: none;
}

/* ========== TYPOGRAPHY ========== */
.h1,
h1 {
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-weight: 300;
  font-size: 4rem;
  line-height: 110%;
  letter-spacing: -0.015rem;
  font-style: normal;
}

@media (min-width: 1024px) {
  .h1,
  h1 {
    font-weight: 400;
    font-size: 5.90278vw;
    line-height: 101.5%;
  }
}

.h2,
h2 {
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-weight: 300;
  font-size: 2.5rem;
  line-height: 127.02%;
  font-style: normal;
}

@media (min-width: 1024px) {
  .h2,
  h2 {
    font-size: 3.2rem;
  }
}

@media (min-width: 1240px) {
  .h2,
  h2 {
    font-size: 36px;
    line-height: 56px;
  }
}

.h3,
h3 {
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-weight: 300;
  font-size: 5rem;
  line-height: 108%;
  font-style: normal;
}

@media (min-width: 1024px) {
  .h3,
  h3 {
    font-size: 8.4rem;
  }
}

@media (min-width: 1240px) {
  .h3,
  h3 {
    font-weight: 400;
    font-size: 96px;
    line-height: 128px;
  }
}

.h4,
.h5,
h4,
h5 {
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-weight: 200;
}

li,
p {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 129.02%;
}

.ttu {
  text-transform: uppercase;
}

/* ========== ELEMENT RESETS ========== */
blockquote {
  quotes: none;
}
small {
  font-size: 80%;
}
ol,
ul {
  list-style-type: none;
}

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

a:active,
a:hover,
button,
input,
select,
textarea {
  outline: 0;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

address {
  font-style: normal;
}

svg {
  width: 100%;
  height: 100%;
}

img {
  border: 0;
  vertical-align: middle;
  width: 100%;
  max-width: 100%;
  height: auto;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

/* ========== ANIMATIONS ========== */
@keyframes rotateAnim {
  to {
    transform: rotate(1turn);
  }
}

@keyframes marqueeAnim {
  0% {
    transform: translateZ(0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes starBlink {
  0%,
  60%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 0;
    transform: scale(0.7);
  }
}

@keyframes spinPause {
  0% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========== TEXT ANIMATION ========== */
.anim-char {
  display: inline-block;
  transform: translateY(101%);
  transition: transform 0.8s cubic-bezier(0.68, 0.01, 0.43, 0.875);
}

.anim-char--o {
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.68, 0.01, 0.43, 0.875),
    opacity 0.8s cubic-bezier(0.68, 0.01, 0.43, 0.875);
}

.is-visible .anim-char {
  transform: translateY(0);
}

.is-visible .anim-char--o {
  opacity: 1;
}

.anim-char-char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.68, 0.01, 0.43, 0.875);
}

.is-visible .anim-char-char {
  transform: translateY(0);
}

.oh {
  overflow: hidden;
}

/* ========== PAGE TRANSITIONS ========== */
.page-enter-active,
.page-leave-active {
  transition: opacity 0.3s cubic-bezier(0.68, 0.01, 0.43, 0.875);
}

.page-enter,
.page-leave-to {
  opacity: 0;
}

/* ========== GRID SYSTEM ========== */
.grid {
  display: grid;
  margin: 0 auto;
  padding: 0 2rem;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  gap: 0 0;
}

@media (min-width: 1024px) {
  .grid {
    gap: 0 1.04167vw;
    padding: 0 2.77778vw;
    grid-template-columns: repeat(12, 1fr);
  }
}

.gutters {
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .gutters {
    padding: 0 2.77778vw;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 54.03vw; /* 778/1440 — matches Figma canvas ratio */
  min-height: 100svh;
  background: linear-gradient(
    to bottom,
    #5eb7ff 0%,
    #80dfff 44.231%,
    #ffffff 100%
  );
  overflow: hidden;
}

.hero__wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
}

.hero__sticky {
  display: flex;
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 2rem 1.48rem;
}

@media (min-width: 1024px) {
  .hero__sticky {
    height: 100vh;
    padding: 3.125vw 3.61111vw;
  }
}

.hero__title {
  line-height: 110%;
  width: 30rem;
}

@media (min-width: 1024px) {
  .hero__title {
    width: 61.45833vw;
  }
}

.hero__circle-wrapper {
  display: inline-flex;
  margin-left: auto;
  width: 19.6rem;
  height: 19.5rem;
  position: relative;
}

@media (max-width: 1023px) {
  .hero__circle-wrapper {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero__circle-wrapper {
    width: 9.86111vw;
    height: 9.86111vw;
  }
}

@media (hover: hover) {
  .hero__circle-wrapper {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .hero__circle-wrapper:hover {
    transform: scale(1.1);
  }
  .hero__circle-wrapper:hover .hero__circle-cpu {
    transform: translate(-50%, -50%) rotate(15deg);
  }
}

.hero__circle-inner {
  opacity: 0;
  transform: scale(1.2);
  transition:
    opacity 0.5s 0.5s,
    transform 0.5s cubic-bezier(0.68, 0.01, 0.43, 0.875) 0.5s;
}

.is-visible .hero__circle-inner {
  opacity: 1;
  transform: scale(1);
}

.hero__circle-svg-wrapper {
  display: flex;
}

.hero__circle-svg {
  animation: rotateAnim 8s linear infinite forwards;
}

.hero__circle-cpu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
}

@media (hover: hover) {
  .hero__circle-cpu {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (min-width: 1024px) {
  .hero__circle-cpu {
    width: 4.65278vw;
    height: 4.79167vw;
  }
}

.hero__lottie-wrapper {
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 36rem;
  height: 36rem;
  opacity: 0;
  transition: opacity 0.6s 0.5s;
  cursor: pointer;
}

.is-visible .hero__lottie-wrapper {
  opacity: 1;
}

@media (min-width: 1024px) {
  .hero__lottie-wrapper {
    width: 32.77778vw;
    height: 31.73611vw;
    right: 0;
    transform: none;
  }
}

.hero__lottie-anim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========== INTRO SECTION ========== */
.intro {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.intro__waves {
  background-color: transparent;
  width: 100vw;
  position: absolute;
  top: 0;
  transform: translateY(-50%);
}

.intro__waves img {
  max-width: inherit;
}

.intro__container {
  margin-top: 5rem;
  margin-bottom: 4.4rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .intro__container {
    margin-top: 8.33333vw;
    margin-bottom: 6.94444vw;
  }
}

.intro__copy {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .intro__copy {
    margin-bottom: 4rem;
    max-width: 78vw;
  }
}

.intro__copy span {
  position: relative;
}

.intro__copy-svg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
}

.intro__copy-svg {
  display: flex;
  align-items: center;
  width: 5.2rem;
  height: 1.7rem;
}

@media (min-width: 1024px) {
  .intro__copy-svg {
    width: 4.44444vw;
    height: 1.52778vw;
  }
}

.intro__label {
  display: inline-flex;
  align-items: center;
  text-align: center;
  color: #000;
  font-family: "Helvetica Neue", Arial, sans-serif;
  transition-delay: 0.5s;
  opacity: 1;
}

.intro__text {
  margin-left: 0.2rem;
}

.intro__icon {
  width: 1.6rem;
}

.text-splitter {
  display: block;
  opacity: 0;
}

.text-splitter--splitted {
  opacity: 1;
}

/* ========== GALLERY SECTION ========== */
.gallery {
  position: relative;
  z-index: 1;
  display: grid;
  background-color: #fff;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 16px;
  column-gap: 16px;
  overflow: hidden;
  padding: 0;
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 3.61111vw;
    column-gap: 3.61111vw;
    padding: 0;
  }
}

.gallery-item {
  grid-column-end: span 1;
  aspect-ratio: 480 / 632;
}

.gallery-item__wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item__link {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-item__fig {
  height: 100%;
}

/* ========== BASE IMAGE ========== */
.base-image {
  display: block;
  overflow: hidden;
}

.base-image--fit {
  height: 100%;
}

.base-image--fit img {
  height: 100%;
  object-fit: cover;
}

/* ========== ABOUT SECTION ========== */
.about {
  position: relative;
  z-index: 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 11.5rem;
  padding-bottom: 9rem;
}

@media (min-width: 1024px) {
  .about {
    padding-top: 200px;
    padding-bottom: 200px;
  }
}

.about__waves {
  background-color: transparent;
  width: 100vw;
  position: absolute;
  bottom: 0;
  transform: translateY(50%) rotate(180deg);
  z-index: 1;
}

.about__waves img {
  max-width: inherit;
}

.about__wrapper {
  display: flex;
  position: relative;
  justify-content: center;
}

.about__copy {
  text-align: center;
  line-height: 114.02%;
  max-width: 34rem;
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-size: 2.5rem;
}

@media (min-width: 1024px) {
  .about__copy {
    font-size: 36px;
    line-height: 56px;
    max-width: 62vw;
  }
}

.about__copy em {
  display: inline-flex;
  position: relative;
  font-style: normal;
  cursor: pointer;
}

.about__copy em::after,
.about__copy em::before {
  content: "";
  position: absolute;
  bottom: 0.3rem;
  left: 0;
  right: 0;
  height: 0.2rem;
  transition: transform 0.6s cubic-bezier(0.68, 0.01, 0.43, 0.875);
}

@media (min-width: 390px) {
  .about__copy em::after,
  .about__copy em::before {
    bottom: 0rem;
    height: 0.2rem;
  }
}

.about__copy em::before {
  background-color: rgba(0, 0, 0, 0.18);
  transform-origin: left;
  transition-delay: 0.15s;
}

.about__copy em::after {
  background-color: #000;
  transform-origin: right;
  transform: scaleX(0);
  transition-delay: 0s;
}

.about__copy em:hover::before {
  transform-origin: right;
  transform: scaleX(0);
  transition-delay: 0s;
}

.about__copy em:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  transition-delay: 0.15s;
}

.about__svg {
  position: absolute;
  opacity: 0;
  z-index: 2;
  transform: scale(0.5) rotate(25deg);
  transition:
    transform 0.8s cubic-bezier(0.68, 0.01, 0.43, 0.875),
    opacity 0.8s cubic-bezier(0.68, 0.01, 0.43, 0.875);
}

.about__svg:nth-child(2) {
  transition-delay: 0.4s;
}
.about__svg:nth-child(3) {
  transition-delay: 0.6s;
}
.about__svg:nth-child(4) {
  transition-delay: 0.8s;
}

.is-visible .about__svg {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.about__svg--figma {
  width: 5.5rem;
  height: 5.1rem;
  bottom: calc(100% + 2.6rem);
  left: calc(50% - 2.8rem);
}

@media (min-width: 1024px) {
  .about__svg--figma {
    bottom: calc(100% + 46px);
    left: calc(50%);
    width: 96px;
    height: 96px;
  }
}

.about__svg--claude {
  top: 100%;
  left: 1rem;
  width: 5.5rem;
  height: 5.6rem;
}

@media (min-width: 1024px) {
  .about__svg--claude {
    top: calc(100% - -8px);
    right: calc(100% - -46px);
    left: unset;
    width: 96px;
    height: 96px;
  }
}

.about__svg--vscode {
  top: calc(100% + 1rem);
  right: 2rem;
  width: 5.5rem;
  height: 5.2rem;
}

@media (min-width: 1024px) {
  .about__svg--vscode {
    top: 136px;
    left: calc(100% + 40px);
    right: unset;
    width: 96px;
    height: 96px;
  }
}

/* ========== OUTRO SECTION ========== */
.outro {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #0362cb 0%, #0463cc 40.47%, #1782ff 100%);
  overflow: hidden;
}

.outro__container {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 8rem;
  padding-bottom: 10rem;
}

@media (min-width: 1024px) {
  .outro__container {
    padding-top: 260px;
    padding-bottom: 300px;
  }
}

.outro__title {
  position: relative;
  display: flex;
  color: #fff;
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 1024px) {
  .outro__title {
    max-width: 69.44444vw;
  }
}

.outro__title em {
  position: relative;
  font-style: normal;
  cursor: pointer;
}

.outro__title em::after,
.outro__title em::before {
  content: "";
  position: absolute;
  bottom: 0.6rem;
  left: 8%;
  right: 8%;
  height: 0.2rem;
  transition: transform 0.6s cubic-bezier(0.68, 0.01, 0.43, 0.875);
}

@media (min-width: 1024px) {
  .outro__title em::after,
  .outro__title em::before {
    bottom: 1.2rem;
    height: 0.4rem;
  }
}

.outro__title em::before {
  background-color: hsla(0, 0%, 100%, 0.32);
  transform-origin: left;
  transition-delay: 0.15s;
}

.outro__title em::after {
  background-color: #fff;
  transform-origin: right;
  transform: scaleX(0);
  transition-delay: 0s;
}

.outro__title em:hover::before {
  transform-origin: right;
  transform: scaleX(0);
  transition-delay: 0s;
}

.outro__title em:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  transition-delay: 0.15s;
}

.outro__title-svg-wrapper {
  display: inline-flex;
  align-items: flex-end;
  border-radius: 50%;
  background-color: #fff;
  width: 5.4rem;
  height: 5.4rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .outro__title-svg-wrapper {
    width: 6.73611vw;
    height: 6.73611vw;
  }
}

/* ========== INFINITE GRID (MARQUEE) ========== */
.infinite-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, -50%, 0);
  animation-name: marqueeAnim;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  height: fit-content;
}

.infinite-grid__item {
  width: 12.9rem;
}

@media (min-width: 1024px) {
  .infinite-grid__item {
    width: 22.91667vw;
  }
}

.infinite-grid__item:nth-child(3n + 1) {
  margin-left: 10rem;
}

@media (min-width: 1024px) {
  .infinite-grid__item:nth-child(3n + 1) {
    margin-left: 8.33333vw;
  }
}

.infinite-grid__item:nth-child(3n + 2) {
  margin-left: auto;
  margin-right: -2rem;
  margin-top: 5rem;
}

@media (min-width: 1024px) {
  .infinite-grid__item:nth-child(3n + 2) {
    margin-top: -10.41667vw;
    margin-right: 5.20833vw;
  }
}

.infinite-grid__item:nth-child(3n + 3) {
  margin-top: 2rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .infinite-grid__item:nth-child(3n + 3) {
    margin-left: 36.45833vw;
    margin-top: 3.47222vw;
    margin-bottom: 6.94444vw;
  }
}

/* ========== PROFILE BLOCK ========== */
.profile-block {
  position: relative;
  z-index: 1;
  background: #f3f9ff;
  padding: 62px 4.16667vw 12px;
}

.profile-block__title {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  font-size: 5vw;
  line-height: 1.31;
  color: #000;
  margin-bottom: 29px;
}

@media (max-width: 1023px) {
  .profile-block__title {
    font-size: 32px;
    line-height: 46px;
  }
}

.profile-block__columns {
  display: flex;
  gap: 8.33vw;
  width: 100%;
}

@media (max-width: 1023px) {
  .profile-block__columns {
    flex-direction: column;
    gap: 20px;
  }
}

.profile-block__col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile-block__col-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #141414;
  line-height: 1.4;
  padding-bottom: 16px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}

.timeline-item--bordered {
  border-bottom: 1px solid #000;
}

.timeline-item__header {
  display: flex;
}

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

.timeline-item__name {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #141414;
  white-space: nowrap;
}

.timeline-item__arrow {
  width: 16px;  
  height: 16px;
  flex-shrink: 0;
  background: url(images/detail-link.svg) no-repeat center/contain;
  transition: all 0.5s ease-out;
}

.timeline-item__header:hover .timeline-item__arrow  {
  filter: brightness(0) saturate(100%) invert(39%) sepia(96%) saturate(1857%) hue-rotate(68deg) brightness(96%) contrast(101%);
}

.timeline-item__role {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #a2a2a2;
}

/* ========== FOOTER ========== */
.footer {
  background: #f3f9ff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0px 60px;
}

.footer__bg-blur {
  position: absolute;
  width: 71.53vw;
  height: 30vw;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.footer__bg-blur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

@media (max-width: 1023px) {
  .footer__inner {
    width: 100%;
    margin: 0 auto;
  }
}

.footer__wrapper {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  padding-top: 4rem;
}

@media (min-width: 1024px) {
  .footer__wrapper {
    flex-direction: row;
    padding: 200px 0px 64px 0px;
  }
}

.footer__lottie {
  position: relative;
  width: 35rem;
  height: 28rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .footer__lottie {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 27.77778vw;
    height: 25vw;
  }
}

.footer__lottie-anim {
  position: absolute;
  bottom: -42px;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========== INFO SECTION ========== */
.info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
}

@media (min-width: 1024px) {
  .info {
    margin-top: unset;
    padding: 0;
  }
}

.info__title {
  position: relative;
  line-height: 115%;
  display: flex;
  flex-direction: column;
  font-family: "Noto Serif SC", "Noto Serif SC", "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 500;
}

@media (max-width: 1023px) {
  .info__title {
    font-size: 28px;
    line-height: 40px;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .info__title {
    font-size: 96px;
    line-height: 132px;
  }
}

.info__title-link {
  display: flex;
  align-items: center;
  position: relative;
  font-family: "Noto Serif SC", "Noto Serif SC", serif;
}

.info__title-link::before {
  content: "";
      position: absolute;
    bottom: 0rem;
    left: 0;
    right: 0;
    height: 0.2rem;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s cubic-bezier(0.68, 0.01, 0.43, 0.875);
}

.info__title-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.info__title-link-label {
  display: flex;
}

.info__title-plane {
  display: none;
}

.info__title-plane img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .info__title-plane {
    display: flex;
    position: absolute;
    width: 160px;
    top: -70px;
    left: 400px;
    transform: translateX(-700px) translateY(-100px);
    opacity: 0;
    transition:
      transform 2s cubic-bezier(0.68, 0.01, 0.43, 0.875),
      opacity 1s cubic-bezier(0.68, 0.01, 0.43, 0.875);
    transition-delay: 0.8s;
  }

  .is-visible .info__title-plane {
    transform: translateX(0) translateY(0px);
    opacity: 1;
  }
}

.info__title-arrow {
  margin-left: 1.5rem;
  width: 2rem;
  transform: translate(-100%, 100%);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.68, 0.01, 0.43, 0.875),
    opacity 0.8s cubic-bezier(0.68, 0.01, 0.43, 0.875);
  transition-delay: 1s;
}

.is-visible .info__title-arrow {
  opacity: 1;
  transform: translate(0);
}

@media (min-width: 1024px) {
  .info__title-arrow {
    margin-left: 2vw;
    width: 4.4vw;
  }
}

.info__bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 1024px) {
  .info__bottom {
    gap: 1.66667vw;
    padding-bottom: unset;
  }
}

.info__copyright {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

/* ========== SOCIALS ========== */
.socials {
  display: flex;
}

.social-link {
  display: flex;
  justify-content: center;
  margin: 0 0.5rem;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-link:hover {
  opacity: 0.6;
}

.social-link__wrapper svg {
  height: auto;
}

.social-link__wrapper {
  width: 2rem;
  height: 2rem;
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
  display: none;
}

@media (hover: hover) {
  .cursor {
    position: fixed;
    top: -6rem;
    left: -6rem;
    display: flex;
    z-index: 800;
    pointer-events: none;
    width: 12rem;
    height: 12rem;
  }

  .cursor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #014087;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cursor--active::before {
    transform: scale(1);
  }

  .cursor--active .cursor__span {
    opacity: 1;
  }

  .gallery-item__link {
    cursor: none;
  }
}

.cursor__span {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: 1.4rem;
  line-height: 103.02%;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== WAVE SVG ========== */
.wave-svg {
  width: 100%;
  display: block;
}

/* ========== GALLERY PLACEHOLDER IMAGES ========== */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background-color: #bfbfbf;
  display: block;
}

/* ========== DECORATIVE ========== */
.hero__email {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 0.6s 1s;
}

.is-visible .hero__email {
  opacity: 1;
}

@media (min-width: 1024px) {
  .hero__email {
    bottom: 3.125vw;
    left: 3.61111vw;
  }
}

/* ========== HERO V2 — absolute vw positioning from Figma 1440×778 canvas ========== */

/* Header: title + badge — Figma: left=60, top=45, w=1320 */
.hero__new-header {
  position: absolute;
  left: 4.167vw; /* 60/1440 */
  top: 3.125vw; /* 45/1440 */
  width: 91.667vw; /* 1320/1440 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__new-header .hero__title {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  color: #000;
  width: auto;
  font-size: clamp(24px, 5vw, 72px);
  line-height: clamp(34px, 6.944vw, 100px);
}

/* Badge: outer rotating ring + center icon */
.hero__badge {
  position: relative;
  flex-shrink: 0;
  width: 9.861vw; /* 142/1440 */
  height: 9.861vw;
}

.hero__badge-ring {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: rotateAnim 8s linear infinite;
}

.hero__badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 47.2%; /* 67/142 */
  height: auto;
}

/* Project cards container — anchored to bottom, capped at 1000px (Figma canvas: 1440px) */
.hero__projects {
  position: absolute;
  right: 4.167vw; /* 60/1440 */
  bottom: 56px;
  width: min(80.556vw, 1200px);
  aspect-ratio: 1160 / 456;
  height: auto;
}

.hero__proj {
  position: absolute;
  display: block;
  overflow: hidden;
}

.hero__proj img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Figma positions within 1003×399 container → % */
.hero__proj--crypto {
  left: 0;
  top: 0;
  width: 32.602%;
  height: 71.929%;
} /* 327×287 */
.hero__proj--finance {
  left: 33.699%;
  top: 0;
  width: 32.602%;
  height: 54.637%;
} /* 338,0 / 327×218 */
.hero__proj--education {
  left: 67.398%;
  top: 0;
  width: 32.602%;
  height: 41.604%;
} /* 676,0 / 327×166 */
.hero__proj--3dmodel {
  left: 0.199%;
  top: 74.687%;
  width: 32.602%;
  height: 24.312%;
} /* 2,298 / 327×97 */
.hero__proj--lazy {
  left: 33.699%;
  top: 57.394%;
  width: 32.602%;
  height: 41.604%;
} /* 338,229 / 327×166 */
.hero__proj--gamebling {
  left: 67.398%;
  top: 44.361%;
  width: 32.602%;
  height: 54.637%;
} /* 676,177 / 327×218 */

/* Decorative elements — Figma absolute positions */
.hero__deco {
  position: absolute;
  pointer-events: none;
  display: block;
}

.hero__deco--star {
  left: -5vw;
  top: -3vw;
  width: 3.889vw;
  height: auto;
}

.hero__deco--asterisk {
  left: 32vw;
  bottom: -2.5vw;
  width: 5.5vw;
  height: auto;
}

@media (max-width: 1139px) {
  .hero {
    height: 100svh;
    min-height: unset;
    max-height: 740px; /* Figma 390px canvas height */
  }
}

/* Mobile (<500px): mobile hero header + 2-column projects, scales with width */
@media (max-width: 599px) {
  .hero__new-header {
    position: absolute;
    left: 16px;
    top: 30px;
    width: calc(100% - 32px);
    padding: 0;
    align-items: flex-start;
  }

  .hero__new-header .hero__title {
    font-size: 36px;
    line-height: 50px;
  }

  .hero__badge {
    display: none;
  }

  .hero__deco--star {
    width: 13vw;
    left: -1vw;
    top: -16vw;
  }
  .hero__deco--asterisk {
    width: 14vw;
    left: 39vw;
    bottom: -7.5vw;
  }

  /* Force each .oh line to its own block so CJK font can't break mid-word */
  .hero__title .oh {
    display: block;
  }

  /* Hide <br> since .oh blocks already stack vertically */
  .hero__title br {
    display: none;
  }

  /* Full-width container anchored to bottom, height derived from aspect-ratio (358:336) */
  .hero__projects {
    display: block;
    left: 16px;
    right: 16px;
    bottom: 32px;
    top: auto;
    aspect-ratio: 358 / 336;
    height: auto;
    width: auto;
    transform: none;
  }

  .hero__proj {
    border-radius: 8px;
  }

  /* All positions as % of container (Figma 358×336)
         Left col  0–48.88%  |  8px gap  |  Right col 51.12%–100% */
  .hero__proj--crypto {
    left: 0%;
    top: 0%;
    right: auto;
    width: 49%;
    height: auto;
  }
  .hero__proj--finance {
    left: auto;
    top: 0%;
    right: 0%;
    width: 49%;
    height: auto;
  }
  .hero__proj--lazy {
    left: auto;
    top: 37%;
    right: 0%;
    width: 49%;
    height: auto;
  }
  .hero__proj--3dmodel {
    left: 0%;
    top: 56%;
    right: auto;
    width: 49%;
    height: auto;
  }
  .hero__proj--gamebling {
    left: auto;
    top: 66%;
    right: 0%;
    width: 49%;
    height: auto;
  }
  .hero__proj--education {
    left: 0%;
    top: 74.5%;
    right: auto;
    width: 49%;
    height: auto;
  }
  .footer__lottie-anim {
  bottom: 0px;

}
}

/* ========== MOBILE RESPONSIVE (max 1023px) ========== */
@media (max-width: 1023px) {
  /* --- Intro (block-description) --- */
  .intro__container {
    margin-top: 0;
    margin-bottom: 0;
    padding: 64px 32px;
  }

  .intro__copy {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .intro__copy .h2 {
    font-size: 24px;
    line-height: 34px;
  }

  /* --- About (block-introduce) --- */
  .about {
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .about__copy {
    font-size: 22px;
    line-height: 32px;
    max-width: none;
  }

  /* --- Outro (block-quote) --- */
  .outro__container {
    padding-top: 200px;
    padding-bottom: 200px;
  }

  .outro__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .outro__title {
    max-width: none;
    font-size: 28px;
    line-height: 40px;
  }

  /* --- Profile block --- */
  .profile-block {
    padding: 32px 16px;
  }

  /* --- Footer --- */
  .footer {
    padding: 0 16px;
  }

  .footer__wrapper {
    flex-direction: column;
    padding-top: 280px;
    padding-bottom: 16px;
    position: relative;
  }

  .footer__lottie {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 272px;
    height: 260px;
    margin: 0;
  }

  .info__bottom {
    border-top: 1px solid #8ecee6;
    padding-top: 18px;
    padding-bottom: 0;
    justify-content: space-between;
    gap: 0;
  }
}

/* ========== PRINT ========== */
@media print {
  * {
    background: 0 0 !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
  }
  a[href^="#"]::after {
    content: "";
  }
  img {
    max-width: 100% !important;
  }
}
