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

:root {
  --black: #0d0d0d;
  --gray-light: #cfcfcf;
  --gray-mid: #9a9a9a;
  --orange: #f24e1e;
  --cream: #ffffff;
  --line: #171717;
  --line-soft: rgba(0, 0, 0, 0.15);
  --maxw: 100%;
  --pad: 15px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--black);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: 64px;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

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

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 80px;
}
.section-label__mark {
  width: 14px;
  height: 14px;
  background: var(--black);
  flex-shrink: 0;
}
.section-label--dark .section-label__mark {
  background: #fff;
}
.section-label--dark {
  color: #fff;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  padding: 14px var(--pad);
  transition: transform 0.35s ease;
}
.nav.nav--hidden {
  transform: translateY(-100%);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: block;
  flex-shrink: 0;
}
.nav__logo img {
  height: 34px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.nav__link:hover {
  opacity: 0.55;
}
.nav__toggle,
.nav__backdrop {
  display: none;
}
html.menu-open,
html.menu-open body {
  overflow: hidden;
}

/* ===== HERO ===== */
.hero {
  padding: 12px var(--pad) clamp(14px, 2vh, 46px);
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__title {
  font-size: clamp(56px, 10.5vw, 200px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.02em;
  margin-bottom: clamp(32px, 11vh, 152px);
  margin-top: clamp(55px, 12.5vh, 123px);
}
.word-mask {
  display: inline-block;
  /* overflow: hidden; */
  vertical-align: top;
  line-height: 1;
}
.word {
  display: inline-block;
  will-change: transform;
}
.letter-mask {
  display: inline-block;
  overflow: hidden;
  line-height: 1;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  vertical-align: top;
}
.letter {
  display: inline-block;
  will-change: transform;
}
.hero__title-photo {
  position: relative;
  display: inline-block;
  width: clamp(58px, 11vw, 210px);
  height: clamp(34px, 6.4vw, 122px);
  /* border-radius: 6px; */
  overflow: hidden;
  margin: 0 0.05em 0.13em 0.05em;
  flex-shrink: 0;
}
.hero__title-photo-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.hero__photo-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.hero__photo-slide.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero__photo-slide {
    transition: opacity 0.4s ease;
  }
}
.hero__sub {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__role {
  font-size: 15px;
  font-weight: 500;
}
.hero__tagline {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  max-width: 320px;
}

/* ===== SHOWCASE / IMAGE CAROUSEL ===== */
.showcase {
  background: linear-gradient(180deg, #9fa8b0 0%, #b7bfc6 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #dfe6ea;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: opacity 0.3s ease;
  }
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.dot.is-active {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.2);
}
.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ===== ABOUT ===== */
.about {
  background: #c5c5c5;
  padding: 10px var(--pad) 56px;
}
.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.about__photo-placeholder {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* --- Tabs --- */
.about__tabs {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.about__tab {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: rgba(13, 13, 13, 0.45);
  cursor: pointer;
  transition: color 0.2s ease;
}
.about__tab:hover {
  color: rgba(13, 13, 13, 0.75);
}
.about__tab.is-active {
  font-weight: 700;
  color: var(--black);
}

/* --- Panels --- */
.about__panels {
  position: relative;
}
.about__panel[hidden] {
  display: none;
}

.about__subheading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 40px 0 20px;
}
.about__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  max-width: 85ch;
  text-align: justify;
}

/* --- Education list --- */
.edu-list {
  display: flex;
  gap: 60px;
}
.edu-list__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.edu-list__item:last-child {
  margin-bottom: 0;
}
.edu-list__logo {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  object-fit: cover;
}
.edu-list__info p {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

/* --- Experience list --- */
.exp-list__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.exp-list__item:first-child {
  padding-top: 0;
}
.exp-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.exp-list__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.exp-list__logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: cover;
}
.exp-list__company {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.exp-list__role {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(13, 13, 13, 0.65);
}
.exp-list__bullets {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-list__bullets li {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(13, 13, 13, 0.8);
}

/* --- Achievements list --- */
.achievement-list__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.achievement-list__item:first-child {
  padding-top: 8px;
}

.achievement-list__item:last-child {
  border-bottom: none;
}

.achievement-list__image {
  width: 170px;
  aspect-ratio: 170 / 120;
  object-fit: cover;
  flex-shrink: 0;
}

.achievement-list__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.achievement-list__text strong {
  font-weight: 700;
}

@media (max-width: 560px) {
  .achievement-list__item {
    align-items: flex-start;
    gap: 14px;
  }

  .achievement-list__image {
    width: 34%;
  }

  .achievement-list__text {
    font-size: 13px;
  }
}

/* --- Languages --- */
.languages {
  margin-top: 48px;
}

.languages__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.languages__list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
}

.languages__list li span:first-child {
  font-weight: 600;
}

.languages__list li span:last-child {
  color: rgba(13, 13, 13, 0.65);
  text-align: right;
}

@media (max-width: 560px) {
  .languages__list li {
    flex-direction: column;
    gap: 2px;
  }

  .languages__list li span:last-child {
    text-align: left;
  }
}

/* ===== PROJECTS ===== */
.projects {
  background: var(--black);
  color: #fff;
  padding: 10px var(--pad) 56px;
}
.project-feature {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}
.project-feature__name {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.project-feature__desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #d5d5d5;
  max-width: 46ch;
  margin-bottom: 32px;
}
.project-feature__stack-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.project-feature__stack-value {
  font-size: 13px;
  color: #b5b5b5;
  line-height: 1.6;
  max-width: 40ch;
}
.project-feature__role {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}
.project-feature__shot {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #2b2b2b;
}

.project-strip {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.project-strip::-webkit-scrollbar {
  display: none;
}
.project-strip__thumb {
  width: 120px;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid #2b2b2b;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}
.project-strip__thumb:hover {
  opacity: 1;
}
.project-strip__thumb.is-active {
  opacity: 1;
}
/* .project-strip__more {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  transition: opacity 0.2s ease;
}
.project-strip__more:hover {
  opacity: 0.6;
} */

/* ===== TOOLBOX ===== */
.toolbox {
  background: #ff6831;
  color: #000;
  padding: 10px 0 56px;
}
.toolbox__title {
  display: grid;
  grid-template-columns: repeat(2, 50%);
  max-width: var(--maxw);
  margin: 0 0 30px 0;
}
.toolbox .section-label {
  padding: 0 var(--pad);
  color: #000;
  grid-column: 1;
}
.toolbox .section-label__mark {
  background: #000;
}

.toolbox__intro {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  grid-column: 2;
}
.toolbox__grid {
  max-width: var(--maxw);
  margin: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* border-top: 1px solid #000; */
}
.toolbox__col:nth-child(1),
.toolbox__col:nth-child(2),
.toolbox__col:nth-child(3) {
  padding: 24px 20px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}
.toolbox__col:nth-child(4) {
  border-right: none;
  border-bottom: 1px solid #000;
  padding: 24px 20px;
}
.toolbox__col:nth-child(5),
.toolbox__col:nth-child(6),
.toolbox__col:nth-child(7) {
  padding: 24px 20px;
  border-right: 1px solid #000;
}
.toolbox__col:nth-child(8) {
  padding: 24px 20px;
}
.toolbox__cat {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.toolbox__icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2d2d2d;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
}
.tool-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.tool-tag {
  font-size: 11px;
  font-weight: 600;
  background: #2d2d2d;
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
}

.poster-strip {
  margin: 80px 0 30px 0;
  overflow: hidden;
  width: 100%;
}
.poster-strip__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.poster-strip__item {
  height: 308px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== CONTACT ===== */
.contact {
  background: #fff;
  padding: 10px var(--pad) 40px;
}
.contact__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.contact__heading {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.contact__links {
  display: flex;
  flex-direction: column;
  min-width: 280px;
}
.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.contact__link:hover {
  opacity: 0.55;
}
.contact__link--email {
  border-bottom: none;
  font-weight: 500;
  color: #000;
}

.footer {
  max-width: var(--maxw);
  margin: 40px var(--pad) 0;
  padding: 20px var(--pad) 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #6a6a6a;
}

@media (max-width: 1440px) {
  .about__text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    max-width: 85ch;
    text-align: justify;
  }
}

@media (max-width: 1280px) {
  .tool-tag {
    font-size: 10px;
    font-weight: 600;
    background: #2d2d2d;
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
  }
}

@media (max-width: 1080px) {
  .tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2d2d2d;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px;
  }
  .tool-tag {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.5px;
    background: #2d2d2d;
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .poster-strip__item {
    height: 238px;
  }
  .about__grid,
  .project-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .toolbox__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolbox__col:nth-child(4n) {
    border-right: 1px solid rgba(255, 255, 255, 0.35);
  }
  .toolbox__col:nth-child(2n) {
    border-right: none;
  }
  .toolbox__col:nth-child(5),
  .toolbox__col:nth-child(6) {
    border-bottom: 1px solid #000;
  }
  .toolbox__intro {
    padding-left: 0;
  }
  .section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 80px;
  }
  .toolbox__intro {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    grid-column: 2;
  }
  .about__text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
    max-width: 85ch;
    text-align: justify;
  }
}

@media (max-width: 560px) {
  .poster-strip__item {
    height: 182px;
  }

  /* --- Hamburger menu --- */
  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    transition:
      transform 0.35s ease,
      opacity 0.25s ease;
  }
  .nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav.is-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .nav.is-open .nav__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    width: 75vw;
    height: 100vh;
    height: 100dvh;
    padding: 110px 28px 40px;
    background: #ff6831;
    flex-direction: column;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.45s cubic-bezier(0.77, 0, 0.18, 1),
      visibility 0s linear 0.45s;
  }
  .nav.is-open .nav__links {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__links .nav__link {
    padding: 16px 0;
    border-bottom: 1px solid #000;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
    opacity: 0;
    transform: translateX(24px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }
  .nav.is-open .nav__link {
    opacity: 1;
    transform: none;
  }
  .nav.is-open .nav__link:nth-child(1) {
    transition-delay: 0.15s;
  }
  .nav.is-open .nav__link:nth-child(2) {
    transition-delay: 0.22s;
  }
  .nav.is-open .nav__link:nth-child(3) {
    transition-delay: 0.29s;
  }

  .toolbox__grid {
    grid-template-columns: 1fr;
  }
  .toolbox__col {
    border-right: none !important;
  }
  .toolbox__col:nth-child(7) {
    border-bottom: 1px solid #000;
  }
  .contact__grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact__links {
    width: 100%;
  }
  .edu-list {
    display: flex;
    gap: 20px;
    flex-direction: column;
  }
  /* --- Hero: 40vh, title on one line, subtext pinned along the bottom --- */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 40vh;
  }
  .hero__title {
    font-size: clamp(24px, 9vw, 48px);
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: auto 0;
  }
  .hero__title-photo {
    width: 1.1em;
    height: 0.64em;
  }
  .hero__sub {
    margin-top: 0;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }
  .hero__role {
    font-size: 12px;
    font-weight: 500;
  }
  .hero__tagline {
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    max-width: 320px;
  }
  .section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 80px;
  }
  .toolbox__intro {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    grid-column: 2;
  }
  .carousel {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    background: #dfe6ea;
  }
  .zayno-preloader__logo {
    width: auto;
    height: 40px;
    max-width: 180px;
    object-fit: contain;
  }
}

@media (max-width: 400px) {
  .carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: #dfe6ea;
  }
  .hero__sub {
    flex-direction: column;
    align-items: stretch; /* overrides the flex-end from the 560px block */
    gap: 6px;
  }
  .hero__role {
    text-align: justify;
    text-align-last: justify;
  }
  .hero__tagline {
    max-width: none; /* the 320px cap leaves a gap on the right on 321–400px screens */
    text-align: justify;
    text-align-last: justify;
  }
}

/* ===== GSAP PRE-ANIMATION STATES (only applied when JS is running) ===== */
.js .hero__title .letter,
.js .hero__reveal,
.js .nav {
  opacity: 0;
}
/* .js .hero__title-photo-inner {
  transform: translateY(100%);
} */

@media (prefers-reduced-motion: reduce) {
  .js .hero__title .letter,
  .js .hero__reveal,
  .js .nav {
    opacity: 1;
  }
  .js .hero__title-photo-inner {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   ZAYNO-STYLE PRELOADER
   Separate from the portfolio hero/carousel.
   ============================================================ */
.zayno-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  z-index: 99999;
  pointer-events: all;
  isolation: isolate;
}

.zayno-preloader__counter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 260px);
  height: 42px;
  overflow: hidden;
  text-align: center;
  z-index: 3;
  color: #000;
}

.zayno-preloader__counter p,
.zayno-preloader__counter img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  will-change: transform, opacity;
}

.zayno-preloader__word {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 42px;
  font-weight: 500;
  white-space: nowrap;
}

.zayno-preloader__logo {
  width: auto;
  height: 45px;
  max-width: 180px;
  object-fit: contain;
}

.zayno-preloader__hero {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  transform: translate(-50%, -50%) scale(0.7);
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  will-change: transform, clip-path;
  z-index: 1;
}

.zayno-preloader__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.zayno-preloader__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2);
  will-change: transform;
}

.preloader-image {
  object-fit: cover;
  object-position: center;
}

.zayno-preloader__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
  z-index: 2;
  will-change: clip-path;
}

/* The preloader image frame is sized by the carousel's live dimensions. */
@media (prefers-reduced-motion: reduce) {
  .zayno-preloader {
    display: none;
  }
}
