@import url("https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&family=Anton&family=Manrope:wght@200..800&family=Pacifico&family=Work+Sans:wght@300;400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Cedarville+Cursive&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Jersey+10&family=Pixelify+Sans:wght@400..700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --light: #fff;
  --dark: #000;
  --bg: #fffdf1;
  --text: #000000;
  --grid: rgba(0, 0, 0, 0.08);
  --menu-bg: #fffdf1;
  --menu-text: #000000;
  --switch-bg: #e9e6d9;
  --switch-knob: #111111;
  --spotlight-bg: #fffdf1;
  --spotlight-text: #000000;
  --spotlight-muted: rgba(0, 0, 0, 0.3);
}
body.dark {
  --bg: #101114;
  --text: #f2f2f2;
  --grid: rgba(255, 255, 255, 0.08);
  --menu-bg: rgba(255, 255, 255, 0.1);
  --menu-text: #f2f2f2;
  --switch-bg: #2a2c33;
  --switch-knob: #f2f2f2;
  --spotlight-bg: #141414;
  --spotlight-text: #ffffff;
  --spotlight-muted: #4a4a4a;
}

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

html,
body {
  font-family: "Manrope";
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: 120px 100%;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

h1 {
  text-transform: uppercase;
  font-size: 8rem;
  line-height: 1;
  letter-spacing: -0.5rem;
}

p {
  text-transform: uppercase;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 550;
}

a {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--light);
  font-family: "Agdasima", sans-serif;
  font-size: 7.5rem;
  font-weight: 600;
  line-height: 0.9;
  display: block;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background-color: var(--dark);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  will-change: clip-path;
  overflow: hidden;
  z-index: 2;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background-color: var(--light);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.preloader-images {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25rem;
  height: 25rem;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  will-change: clip-path;
  overflow: hidden;
}

.preloader-images .img {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  will-change: clip-path;
  overflow: hidden;
}

.preloader-images .img img {
  position: relative;
  transform: scale(2);
  will-change: transform;
}

.preloader-copy {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  color: var(--light);
}

.preloader-header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(60svh);
  transform-origin: top;
  will-change: transform;
  z-index: 2;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  overflow: hidden;
}

.spotlight {
  position: relative;
  width: 100%;
  height: 100svh;
  padding: 2rem;
  overflow: hidden;
  font-family: "Google Sans", sans-serif;
  background-color: transparent;
  color: var(--text);
}
.spotlight .project-index h1 {
  text-transform: uppercase;
  font-size: clamp(3rem, 5vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
.spotlight .project-images {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  padding: 50svh 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: -1;
}
.spotlight .project-img {
  width: 100%;
  aspect-ratio: 16/9;
  opacity: 0.5;
  transition: all 0.3s ease;
  overflow: hidden;
}
.spotlight .project-img a,
.spotlight .project-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight .project-names {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.spotlight .project-names p,
.spotlight .project-names .project-link {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
  text-align: right;
  color: var(--text);
  transition: color 0.3s ease;
  text-decoration: none;
  display: block;
  font-family: "Manrope", sans-serif;
}
.spotlight .project-index h1,
.spotlight .project-images,
.spotlight .project-names p,
.spotlight .project-names .project-link {
  will-change: transform;
}

.top-left {
  position: fixed;
  top: 24px;
  left: 24px;
  font-size: 14px;
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 1px;
  color: var(--text);
  z-index: 10002;
  opacity: 0;
  transform: translateY(-6px);
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}
.top-left img {
  width: 72px;
  height: auto;
  display: block;
}
.top-left .logo-dark {
  display: none;
}
body.dark .top-left .logo-light {
  display: none;
}
body.dark .top-left .logo-dark {
  display: block;
}

.top-left.scrolled {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
}

.menu {
  position: fixed;
  top: 40px;
  right: 40px;
  background: var(--menu-bg);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--menu-text);
  z-index: 10001;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  font-family: "Anton", sans-serif;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}
.menu p {
  margin: 0;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background-color: #1a1a1a;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  z-index: 10000;
}
.menu-overlay canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.menu-links {
  position: relative;
  width: min(50%, 560px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2em;
  padding: 2rem;
  z-index: 1;
}
.menu-item a {
  color: #4d4d4d;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: "Anton", sans-serif;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  background:
    linear-gradient(120deg, #ffffff 0%, #c9fff1 35%, #ffd6ff 65%, #ffffff 100%)
      no-repeat,
    #4d4d4d;
  background-size: 0% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #4d4d4d;
  position: relative;
  display: inline-block;
  padding-bottom: 0.08em;
  text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition:
    color 0.25s ease,
    background-size 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.4s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 0.45s ease;
}
.menu-item a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    rgba(201, 255, 241, 0.9),
    rgba(255, 214, 255, 0.9),
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-item a::before {
  content: "";
  position: absolute;
  inset: -0.2em -0.25em -0.3em -0.25em;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: -1;
}
.menu-item a:hover {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background-size: 100% 100%;
  letter-spacing: 0.12em;
  transform: translateX(12px) skewX(-2deg);
  text-shadow:
    0 8px 22px rgba(255, 255, 255, 0.28),
    0 2px 6px rgba(255, 255, 255, 0.2);
}
.menu-item a:hover::after {
  transform: scaleX(1);
}
.menu-item a:hover::before {
  opacity: 1;
}
.menu-socials {
  position: absolute;
  right: 2.5em;
  bottom: 2em;
  display: grid;
  grid-auto-flow: column;
  gap: 2em;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
}
.menu-social-link {
  color: #ffffff;
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease,
    text-shadow 0.35s ease,
    letter-spacing 0.35s ease;
}

@media (max-width: 720px) {
  .menu-social-link {
    margin-left: 0;
  }
  .menu-socials {
    right: 0.6em;
  }
}
.menu-social-link::before {
  content: "";
  position: absolute;
  inset: -0.35em -0.5em;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.16),
    transparent 60%
  );
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}
.menu-social-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 255, 241, 0.9),
    rgba(255, 214, 255, 0.9),
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-social-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  letter-spacing: 0.3em;
  text-shadow:
    0 10px 24px rgba(255, 255, 255, 0.28),
    0 2px 6px rgba(255, 255, 255, 0.2);
}
.menu-social-link:hover::before {
  opacity: 1;
}
.menu-social-link:hover::after {
  transform: scaleX(1);
}

.theme-switch {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  z-index: 10002;
  opacity: 0;
  transform: translateY(6px);
}
.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.theme-btn:hover {
  transform: translateY(-1px);
}
.theme-btn.active {
  background: rgba(0, 0, 0, 0.15);
}
body.dark .theme-switch {
  background: rgba(255, 255, 255, 0.08);
}
body.dark .theme-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #f2f2f2;
}
body.dark .theme-btn.active {
  background: rgba(255, 255, 255, 0.25);
}
body.dark .theme-btn[data-theme="light"]:not(.active) {
  background: transparent;
}
body:not(.dark) .theme-btn[data-theme="dark"]:not(.active) {
  background: transparent;
}
.theme-icon {
  font-size: 12px;
  line-height: 1;
}

.outro {
  height: 100svh;
  padding: 4em 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #efe9df;
}
.outro-inner {
  text-align: center;
  width: min(1200px, 92vw);
}
.outro h1,
.outro h2 {
  text-align: center;
  font-family: "Anton", sans-serif;
}
.outro h2 {
  font-size: clamp(3rem, 8vw, 8rem);
  letter-spacing: 0.05em;
}
.outro h1 {
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.outro-kicker {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  font-family: "Work Sans", sans-serif;
  color: rgba(239, 233, 223, 0.7);
}
.outro-email {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: "Pacifico", cursive;
  color: rgba(239, 233, 223, 0.9);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.outro-email a {
  color: inherit;
  text-decoration: none;
  font-family: "Pacifico", cursive;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: inherit;
  line-height: inherit;
  display: inline;
}
.outro-links {
  position: absolute;
  right: 2.5em;
  bottom: 2em;
  display: grid;
  grid-auto-flow: column;
  gap: 2.5em;
  font-family: "Work Sans", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.outro-link {
  color: rgba(239, 233, 223, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  position: relative;
  display: inline-block;
  letter-spacing: 0.2em;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease,
    text-shadow 0.35s ease,
    letter-spacing 0.35s ease;
}
.outro-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 255, 241, 0.9),
    rgba(255, 214, 255, 0.9),
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.outro-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  letter-spacing: 0.3em;
  text-shadow:
    0 10px 24px rgba(255, 255, 255, 0.28),
    0 2px 6px rgba(255, 255, 255, 0.2);
}
.outro-link:hover::after {
  transform: scaleX(1);
}
body:not(.dark) .outro-link.instagram {
  color: #000000;
}
body:not(.dark) .outro,
body:not(.dark) .outro h1,
body:not(.dark) .outro h2,
body:not(.dark) .outro-kicker,
body:not(.dark) .outro-email,
body:not(.dark) .outro-link {
  color: #000000;
}
body.dark .outro,
body.dark .outro h1,
body.dark .outro h2,
body.dark .outro-kicker,
body.dark .outro-email,
body.dark .outro-link {
  color: #efe9df;
}

.divider {
  position: relative;
  width: 100%;
  height: 1.5px;
  transform: scaleX(0);
  background-color: rgba(0, 0, 0, 0.2);
  will-change: transform;
}

.preloader-header a .char,
.preloader-copy p .line,
.header-row h1 .line {
  position: relative;
  display: inline-block;
  transform: translateY(0);
  will-change: transform;
}
@media (max-width: 1000px) {
  .top-left img {
    width: 58px;
  }
  h1 {
    font-size: 2rem;
    letter-spacing: 0;
  }

  .preloader-images {
    top: 35%;
    width: 10rem;
    height: 10rem;
  }

  .preloader-copy {
    width: 80%;
  }

  .preloader-header {
    transform: translateY(50svh);
  }

  .preloader-header a {
    font-size: 4rem;
  }

  .top-left {
    top: 20px;
    left: 16px;
    font-size: 12px;
  }
  .spotlight .project-images {
    width: calc(100% - 4rem);
    gap: 25svh;
  }

  .spotlight .project-names p {
    color: #fff;
  }

  .outro h2 {
    font-size: clamp(2.5rem, 8vw, 6rem);
  }
  .outro h1 {
    font-size: clamp(3rem, 12vw, 9rem);
  }
  .outro-links {
    right: 1.5em;
    bottom: 1.2em;
    gap: 1.5em;
    font-size: 0.85rem;
  }
}

@media (max-width: 720px) {
  body.menu-open .menu,
  body.menu-open .menu p {
    color: #ffffff;
  }
}
.menu-open,
body.menu-open {
  overflow: hidden;
}
