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

@font-face {
  font-family: 'Ethnocentric';
  src: url("fonts/ethnocentric/Ethnocentric-Regular.otf") format("opentype");
}

@font-face {
  font-family: 'Creato Display';
  src: url("fonts/creato/CreatoDisplay-Regular.otf") format("opentype");
}

body {
  background: #dfd7c5;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .2s ease;
}

body.dark {
  background: #000;
}

#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: hidePreloader 0s ease 4.8s forwards;
}

@keyframes hidePreloader {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

#preloader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #dfd7c5;
  transform: translateY(100%);
  z-index: 110;
  animation: slideUp 1.2s cubic-bezier(.87, 0, .13, 1) 2.8s forwards;
}

@keyframes slideUp {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.stack {
  position: relative;
  width: 280px;
  height: 380px;
}

.card {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, .07);
  opacity: 0;
  animation: fadeIn ease forwards, shrinkOut ease-in forwards;
}

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

.card:nth-child(1) { --r: -8deg;  z-index: 1; animation-delay: 0s,   2.8s; animation-duration: .6s, .5s; }
.card:nth-child(2) { --r:  5deg;  z-index: 2; animation-delay: .2s,  2.7s; animation-duration: .6s, .5s; }
.card:nth-child(3) { --r: -3deg;  z-index: 3; animation-delay: .4s,  2.6s; animation-duration: .6s, .5s; }
.card:nth-child(4) { --r: 10deg;  z-index: 4; animation-delay: .6s,  2.5s; animation-duration: .6s, .5s; }
.card:nth-child(5) { --r: -6deg;  z-index: 5; animation-delay: .8s,  2.4s; animation-duration: .6s, .5s; }
.card:nth-child(6) { --r:  3deg;  z-index: 6; animation-delay: 1s,   2.3s; animation-duration: .6s, .5s; }
.card:nth-child(7) { --r: -2deg;  z-index: 7; animation-delay: 1.2s, 2.2s; animation-duration: .6s, .5s; }

@keyframes fadeIn {
  0%   { opacity: 0; transform: rotate(var(--r)) scale(.3); }
  100% { opacity: 1; transform: rotate(var(--r)) scale(1); }
}

@keyframes shrinkOut {
  0%   { opacity: 1; transform: rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: rotate(var(--r)) scale(0); }
}

.preloader-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
}

.text-inner {
  display: flex;
  gap: 3px;
  overflow: hidden;
  padding-right: 35px;
  padding-bottom: 20px;
}

.letter {
  font-family: 'Ethnocentric', monospace;
  font-size: 150px;
  color: #fff;
  opacity: 0;
  transform: translateY(140%);
  animation:
    letterUp .4s cubic-bezier(.22, 1, .36, 1) forwards,
    letterOut .7s cubic-bezier(.16, 1, .3, 1) forwards;
}

.letter:nth-child(1) { animation-delay: .55s,  3.25s; }
.letter:nth-child(2) { animation-delay: .10s,  2.95s; }
.letter:nth-child(3) { animation-delay: .85s,  3.45s; }
.letter:nth-child(4) { animation-delay: .40s,  3.15s; }
.letter:nth-child(5) { animation-delay: 1.15s, 2.85s; }
.letter:nth-child(6) { animation-delay: .70s,  3.35s; }
.letter:nth-child(7) { animation-delay: .25s,  3.05s; }

.logo-circle {
  display: inline-block;
  font-family: 'Ethnocentric', monospace;
  font-size: 70px;
  color: #fff;
  align-self: flex-end;
  margin-bottom: 15px;
  margin-left: 2px;
  opacity: 0;
  transform: translateY(140%);
  animation:
    letterUp .5s cubic-bezier(.22, 1, .36, 1) 1.35s forwards,
    logoOut  .7s cubic-bezier(.16, 1, .3, 1)  2.85s forwards;
}

@keyframes letterUp {
  from { opacity: 0; transform: translateY(140%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes letterOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-170%); }
}

@keyframes logoOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(140%); }
}

.hero-wrap {
  position: absolute;
  top: 50px;
  left: 20px;
  right: 20px;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  animation: revealHero 0s linear 3.4s forwards;
}

@keyframes revealHero {
  to { visibility: visible; }
}

.hero-logo {
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: 100%;
  overflow: hidden;
  padding-top: 20px;
}

.hero-logo span {
  font-family: 'Ethnocentric', monospace;
  font-size: calc((100vw - 40px) / 6.8);
  color: #ff7a00;
  line-height: 1;
  display: inline-block;
  transform: translateY(180%);
  clip-path: inset(100% 0 0 0);
  animation:
    revealLetter 1.1s cubic-bezier(.83, 0, .17, 1) forwards,
    revealMask   1.1s cubic-bezier(.83, 0, .17, 1) forwards;
}

.hero-logo span:nth-child(1) { animation-delay: 3.60s, 3.60s; }
.hero-logo span:nth-child(2) { animation-delay: 3.76s, 3.76s; }
.hero-logo span:nth-child(3) { animation-delay: 3.96s, 3.96s; }
.hero-logo span:nth-child(4) { animation-delay: 3.84s, 3.84s; }
.hero-logo span:nth-child(5) { animation-delay: 3.90s, 3.90s; }
.hero-logo span:nth-child(6) { animation-delay: 3.70s, 3.70s; }
.hero-logo span:nth-child(7) { animation-delay: 3.80s, 3.80s; }

.hero-r {
  font-size: clamp(14px, 4vw, 70px) !important;
  margin-bottom: 1vw;
}

@keyframes revealLetter {
  0%   { transform: translateY(180%); }
  100% { transform: translateY(12.5%); }
}

@keyframes revealMask {
  0%   { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.hero-loading {
  position: absolute;
  left: 20px;
  right: 20px;
  top: calc((100vw - 40px) / 6.8 + 75px);
  height: 10px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 122, 0, .15);
  z-index: 200;
  animation: showBar 0s linear 3.6s forwards;
}

.hero-loading-fill {
  width: 0%;
  height: 100%;
  background: #ff7a00;
  animation: slideBarLoad 1.4s linear 3.6s forwards;
}

@keyframes showBar {
  to { opacity: 1; visibility: visible; }
}

@keyframes slideBarLoad {
  from { width: 0%; }
  to   { width: 100%; }
}

.corner-labels {
  display: none;
}

.corner-sl,
.corner-en {
  position: fixed;
  top: 10px;
  font-family: 'Ethnocentric', monospace;
  font-size: 22px;
  color: #ff7a00;
  overflow: hidden;
  height: 1.3em;
}

.corner-sl { left: 20px; }
.corner-en { left: 68px; }

.corner-sl span,
.corner-en span {
  display: block;
  transform: translateY(-120%);
  clip-path: inset(0 0 100% 0);
  animation:
    revealFromTop  1.1s cubic-bezier(.83, 0, .17, 1) 3.7s forwards,
    revealMaskTop  1.1s cubic-bezier(.83, 0, .17, 1) 3.7s forwards;
}

.corner-en span {
  animation-delay: 3.85s, 3.85s;
}

@keyframes revealFromTop {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(0); }
}

@keyframes revealMaskTop {
  0%   { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.corner-dots {
  position: fixed;
  top: 5px;
  right: 20px;
  display: flex;
  gap: 5px;
  z-index: 10000;
  pointer-events: none;
}

.corner-dots.interactive {
  pointer-events: all;
}

.corner-dots.interactive .dot {
  pointer-events: all;
}

.dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  animation: revealMaskTop 1.1s cubic-bezier(.83, 0, .17, 1) forwards;
  transition: transform .2s ease;
}

.dot:hover {
  transform: scale(1.15);
}

.dot-black  { background: #000;    border: 3px solid #dfd7c5; animation-delay: 3.70s; }
.dot-orange { background: #ff7a00; border: 3px solid #dfd7c5; animation-delay: 3.85s; }

.hero-sub {
  position: absolute;
  right: 20px;
  top: calc((100vw - 40px) / 6.8 + 90px);
  display: flex;
  align-items: baseline;
  gap: 6px;
  z-index: 200;
  overflow: hidden;
  visibility: hidden;
  animation: revealHero 0s linear 3.6s forwards;
}

.sub-r,
.sub-year {
  font-family: 'Ethnocentric', monospace;
  color: #ff7a00;
  display: block;
  transform: translateY(150%);
  clip-path: inset(100% 0 0 0);
  animation:
    revealLetter 1.1s cubic-bezier(.83, 0, .17, 1) forwards,
    revealMask   1.1s cubic-bezier(.83, 0, .17, 1) forwards;
}

.sub-r    { font-size: clamp(12px, 2.5vw, 40px); animation-delay: 3.80s, 3.80s; }
.sub-year { font-size: clamp(10px, 2vw,   34px); animation-delay: 3.95s, 3.95s; }

.main-content {
  width: 100vw;
  height: 55vh;
}

#theme-wipe,
#white-reveal {
  will-change: transform;
}

#theme-wipe {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 5001;
  pointer-events: none;
  transform: translateY(100%);
}

#theme-wipe.wipe-up {
  animation: wipeUp 1.2s cubic-bezier(.87, 0, .13, 1) forwards;
}

@keyframes wipeUp {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

#white-reveal {
  position: fixed;
  inset: 0;
  background: #dfd7c5;
  z-index: 5000;
  pointer-events: none;
  transform: translateY(100%);
}

#white-reveal.reveal-up {
  animation: revealUp 1.2s cubic-bezier(.87, 0, .13, 1) forwards;
}

@keyframes revealUp {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.about-section {
  padding: 24px 7% 120px;
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.text-box {
  flex: 1;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Creato Display', 'Helvetica Neue', Arial, sans-serif;
}

.text-box h2 {
  font-family: 'Creato Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 48px;
  color: #ff7a00;
  margin-bottom: 35px;
}

.text-box p,
.text-box li {
  font-family: 'Creato Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 2;
  margin-bottom: 15px;
  color: #000;
  transition: color .4s ease;
}

.text-box ul {
  margin-left: 22px;
  margin-top: 6px;
}

body.dark .text-box h2  { color: #ff7a00; }
body.dark .text-box p,
body.dark .text-box li  { color: #fff; }

.image-box {
  flex: 1;
  display: flex;
  gap: 20px;
}

.hover-image {
  position: relative;
  height: 650px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.hover-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s ease;
}

.hover-img { opacity: 0; }

.hover-image:hover .hover-img { opacity: 1; }
.hover-image:hover .main-img  { opacity: 0; }

.video-section {
  padding: 150px 7%;
  text-align: center;
}

.video-holder {
  height: 650px;
  border-radius: 20px;
  overflow: hidden;
}

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

.bottom-gif {
  height: 60vh;
  overflow: hidden;
}

.bottom-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  height: 50vh;
  background: black;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px;
  font-family: 'Creato Display', 'Helvetica Neue', Arial, sans-serif;
}

.footer-left h1 {
  font-family: 'Ethnocentric', monospace;
  text-transform: uppercase;
  font-size: clamp(24px, 4.5vw, 52px);
}

.footer-left h1 .reg {
  font-size: .4em;
  vertical-align: top;
  margin-left: 2px;
}

.footer-left p,
.links a {
  font-family: 'Creato Display', 'Helvetica Neue', Arial, sans-serif;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.links a {
  color: white;
  text-decoration: none;
}

button {
  padding: 15px 40px;
  border-radius: 50px;
  border: none;
  background: #ff7a00;
  color: white;
  cursor: pointer;
}

.slogan-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 7% 60px;
}

.slogan-section h1 {
  font-family: 'Ethnocentric', monospace;
  font-size: clamp(26px, 5vw, 70px);
  color: #ff7a00;
  line-height: 1.25;
  margin-bottom: 25px;
}

.slogan-section p {
  font-size: clamp(15px, 2vw, 22px);
  max-width: 720px;
  line-height: 1.8;
  color: #000;
  transition: color .4s ease;
}

body.dark .slogan-section p { color: #fff; }

.brand {
  font-family: 'Ethnocentric', monospace;
  text-transform: uppercase;
  font-size: .85em;
  letter-spacing: .5px;
}

.lang { display: none; }

body.lang-sl .lang.sl { display: block; }
body.lang-en .lang.en { display: block; }

.lang-switch {
  position: fixed;
  top: 13px;
  left: 20px;
  display: flex;
  gap: 12px;
  z-index: 9000;
  font-family: 'Ethnocentric', monospace;
  font-size: 18px;
  opacity: 0;
  animation: langIn .6s ease 3.7s forwards;
}

@keyframes langIn {
  to { opacity: 1; }
}

.lang-btn {
  cursor: pointer;
  color: #ff7a00;
  opacity: .4;
  user-select: none;
  transition: opacity .2s ease, color .3s ease;
}

.lang-btn:hover  { opacity: .8; }
.lang-btn.active { opacity: 1; color: #ff7a00; }

body.dark .lang-btn        { color: #fff; }
body.dark .lang-btn.active { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: 1.2s cubic-bezier(.16, 1, .3, 1);
  will-change: transform, opacity;
}

.reveal.left  { transform: translateX(-120px); }
.reveal.right { transform: translateX(120px); }
.reveal.up    { transform: translateY(80px); }

.reveal.active {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

@media (max-width: 900px) {
  .content-row,
  .content-row.reverse {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .content-row > .text-box  { width: 100%; max-width: 100%; }
  .content-row > .image-box { width: 100%; }

  .text-box h2              { font-size: 34px; }
  .text-box p, .text-box li { font-size: 17px; line-height: 1.9; }
  .about-section            { gap: 70px; padding: 20px 6% 90px; }
  .content-row              { gap: 32px; }
  .hover-image              { height: 380px; }
  .bottom-gif               { height: 45vh; }
  footer                    { padding: 50px 40px; }
}

@media (max-width: 600px) {
  .letter       { font-size: 11vw; }
  .logo-circle  { font-size: 5vw; margin-bottom: 6px; }
  .text-inner   { gap: 1px; padding-right: 8px; padding-bottom: 8px; }
  .stack        { width: 60vw; height: 80vw; max-width: 280px; max-height: 380px; }

  .text-box h2              { font-size: 27px; }
  .text-box p, .text-box li { font-size: 16px; line-height: 1.8; }
  .about-section            { gap: 55px; padding: 16px 6% 70px; }
  .content-row              { gap: 26px; }
  .hover-image              { height: 300px; border-radius: 10px; }
  .main-content             { height: 48vh; }
  .bottom-gif               { height: 38vh; }

  footer            { padding: 45px 28px; gap: 28px; flex-direction: column; height: auto; }
  .footer-left h1   { font-size: 32px; }

  .lang-switch  { left: 16px; top: 11px; font-size: 15px; gap: 10px; }
  .corner-dots  { right: 14px; }
  .dot          { width: 24px; height: 24px; }
}
