* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #D99A42;
  --accent-soft: #F4EBDD;
  --accent-deep: #9E5B35;
  --bg: #070707;
  --bg-2: #10100E;
  --panel: rgba(89,97,78,0.12);
  --line: rgba(89,97,78,0.46);
  --muted: #BDB6A8;
  --text: #F4EBDD;
  --olive: #59614E;
  --glass: rgba(7,7,7,0.78);
  --shadow: rgba(0,0,0,0.42);
}

html {
  scroll-behavior: smooth;

  overflow-x: hidden;
}

section {
  scroll-margin-top: 120px;
}

body {

  background:
    radial-gradient(circle at 14% 6%, rgba(217,154,66,0.2) 0%, transparent 31%),
    radial-gradient(circle at 85% 28%, rgba(89,97,78,0.38) 0%, transparent 36%),
    linear-gradient(140deg, var(--bg) 0%, var(--bg-2) 56%, #070707 100%),
    var(--bg);

  color: var(--text);

  font-family: 'Outfit', sans-serif;

  overflow-x: hidden;

  letter-spacing: 0;

  font-weight: 300;
}

/* =========================
   NOISE
========================= */

body::before {

  content: "";

  position: fixed;

  inset: 0;

  background-image:
    radial-gradient(
      rgba(244,235,221,0.015) 1px,
      transparent 1px
    );

  background-size: 4px 4px;

  opacity: 0.2;

  pointer-events: none;

  z-index: -1;
}

/* =========================
   CURSOR
========================= */

.cursor {

  width: 18px;
  height: 18px;

  border:
    1px solid rgba(217,154,66,0.82);

  border-radius: 50%;

  position: fixed;
  left: 0;
  top: 0;

  pointer-events: none;

  transform:
    translate(-50%, -50%);

  z-index: 9999;

  background:
    rgba(217,154,66,0.06);

  opacity: 0;

  transition:
    width 0.3s ease,
    height 0.3s ease,
    background 0.3s ease,
    opacity 0.2s ease;

  will-change:
    transform;
}

html.has-custom-cursor body,
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor input,
html.has-custom-cursor textarea {
  cursor: none;
}

html.has-custom-cursor .cursor {
  opacity: 1;
}

.cursor.is-hovering {
  width: 50px;
  height: 50px;

  background:
    rgba(217,154,66,0.1);
}

/* =========================
   PARTICLES
========================= */

.particles {

  position: fixed;

  inset: 0;

  overflow: hidden;

  pointer-events: none;
}

.particles span {

  position: absolute;

  width: 2px;
  height: 2px;

  background:
    rgba(217,154,66,0.46);

  border-radius: 50%;

  animation:
    float linear infinite;
}

@keyframes float {

  from {

    transform:
      translateY(100vh);

    opacity: 0;
  }

  10% {

    opacity: 1;
  }

  90% {

    opacity: 1;
  }

  to {

    transform:
      translateY(-10vh);

    opacity: 0;
  }

}

/* =========================
   AMBIENT LIGHTS
========================= */

.ambient {

  position: fixed;

  border-radius: 50%;

  filter: blur(70px);

  pointer-events: none;

  z-index: -1;

  opacity: 0.45;

  animation:
    ambientFloat 18s ease-in-out infinite;
}

.ambient-1 {

  width: 500px;
  height: 500px;

  background:
    rgba(217,154,66,0.14);

  top: -100px;
  left: -100px;
}

.ambient-2 {

  width: 600px;
  height: 600px;

  background:
    rgba(89,97,78,0.22);

  right: -200px;
  top: 30%;
}

.ambient-3 {

  width: 400px;
  height: 400px;

  background:
    rgba(158,91,53,0.12);

  bottom: -100px;
  left: 30%;
}

@keyframes ambientFloat {

  0% {

    transform:
      translateY(0)
      translateX(0)
      scale(1);
  }

  25% {

    transform:
      translateY(-40px)
      translateX(30px)
      scale(1.05);
  }

  50% {

    transform:
      translateY(20px)
      translateX(-20px)
      scale(0.95);
  }

  75% {

    transform:
      translateY(-20px)
      translateX(40px)
      scale(1.03);
  }

  100% {

    transform:
      translateY(0)
      translateX(0)
      scale(1);
  }

}

/* =========================
   LOADER
========================= */

.loader {

  position: fixed;

  inset: 0;

  background:
    radial-gradient(
      circle at top,
      #10100E 0%,
      #070707 62%
    );

  display: flex;

  justify-content: center;
  align-items: center;

  z-index: 99999;

  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

.loader.hide {

  opacity: 0;

  visibility: hidden;

  pointer-events: none;
}

.loader-content {

  text-align: center;

  animation:
    loaderPulse 2s ease-in-out infinite;
}

.loader-content p {

  color: var(--muted);

  letter-spacing: 0;

  margin-bottom: 20px;

  font-size: 0.8rem;
}

.loader-content h1 {

  font-size:
    clamp(4rem, 10vw, 8rem);

  color: var(--accent);

  letter-spacing: 0;
}

@keyframes loaderPulse {

  0% {

    transform: scale(1);

    opacity: 0.7;
  }

  50% {

    transform: scale(1.03);

    opacity: 1;
  }

  100% {

    transform: scale(1);

    opacity: 0.7;
  }

}

/* =========================
   NAVBAR
========================= */

.navbar {

  position: fixed;

  top: 30px;
  left: 50%;

  transform:
    translateX(-50%);

  width: 90%;
  max-width: 1200px;

  padding: 20px 30px;

  display: flex;

  justify-content: space-between;
  align-items: center;

  z-index: 999;

  background:
    rgba(7,7,7,0.5);

  border:
    1px solid var(--line);

  backdrop-filter: blur(6px);
  box-shadow:
    0 18px 70px rgba(0,0,0,0.22);

  border-radius: 100px;

  transition:
    0.4s ease;
}

.navbar.scrolled {

  padding: 14px 24px;

  background:
    rgba(7,7,7,0.78);

  border:
    1px solid rgba(244,235,221,0.16);
}

.logo {

  font-size: 0.9rem;

  font-weight: 700;

  letter-spacing: 0;

  color: var(--accent);
}

.navbar ul {

  display: flex;

  gap: 40px;

  list-style: none;
}

.navbar a {

  color: var(--muted);

  text-decoration: none;

  font-size: 0.85rem;

  transition: 0.3s ease;
}

.navbar a:hover {

  color: white;
}

.navbar a {
  position: relative;
}

.navbar a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -8px;

  height: 1px;

  background:
    var(--accent);

  transform:
    scaleX(0);

  transform-origin:
    center;

  transition:
    transform 0.25s ease;
}

.navbar a:hover::after,
.navbar a:focus-visible::after {
  transform:
    scaleX(1);
}

.navbar a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline:
    2px solid rgba(217,154,66,0.8);

  outline-offset:
    4px;
}

/* =========================
   MENU TOGGLE
========================= */

.menu-toggle {

  display: none;

  width: 40px;
  height: 40px;

  position: relative;

  z-index: 1001;

  padding: 0;

  border: 0;

  background: transparent;
}

.menu-toggle span {

  position: absolute;

  width: 100%;
  height: 1.5px;

  background: white;

  left: 0;

  transition: 0.4s ease;
}

.menu-toggle span:nth-child(1) {

  top: 14px;
}

.menu-toggle span:nth-child(2) {

  top: 24px;
}

.menu-toggle.active span:nth-child(1) {

  transform:
    rotate(45deg);

  top: 20px;
}

.menu-toggle.active span:nth-child(2) {

  transform:
    rotate(-45deg);

  top: 20px;
}

/* =========================
   HERO
========================= */

.hero {

  min-height: 76vh;

  display: flex;

  justify-content: space-between;
  align-items: center;

  padding: 112px 10vw 42px;

  gap: 80px;

  position: relative;

  overflow: hidden;
}

.hero::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 28%;

  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--bg)
    );

  pointer-events: none;
}

.interactive-bg {

  position: absolute;

  width: 900px;
  height: 900px;

  background:
    radial-gradient(
      circle,
      rgba(217,154,66,0.16) 0%,
      rgba(89,97,78,0.16) 34%,
      transparent 70%
    );

  border-radius: 50%;

  filter: blur(40px);

  pointer-events: none;

  opacity: 0.8;

  will-change:
    transform;
}

.hero-content {

  width: 50%;

  position: relative;

  z-index: 2;

  will-change:
    transform;
}

.mini-text {

  color: var(--muted);

  letter-spacing: 0;

  margin-bottom: 20px;

  font-size: 0.8rem;
}

.hero h1 {

  font-size:
    clamp(5rem, 11vw, 9rem);

  line-height: 0.9;

  letter-spacing: 0;
}

.hero span {

  display: block;

  color: var(--accent);
}

.description {

  margin-top: 35px;

  max-width: 560px;

  line-height: 1.8;

  color: var(--muted);
}

.hero-btn {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 34px;

  padding: 16px 38px;

  border-radius: 100px;

  text-decoration: none;

  color: var(--text);

  border:
    1px solid rgba(217,154,66,0.32);

  background:
    rgba(244,235,221,0.045);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.hero-btn:hover {

  transform:
    translateY(-3px);

  border-color:
    rgba(217,154,66,0.72);

  background:
    rgba(217,154,66,0.08);
}

/* HERO IMAGE */

.hero-image {

  width: 40%;

  position: relative;

  z-index: 2;

  display: flex;

  justify-content: center;

  will-change:
    transform;
}

.hero-image::before {

  content: "";

  position: absolute;

  inset:
    0 -10% -4%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(217,154,66,0.14) 0%,
      rgba(89,97,78,0.14) 42%,
      transparent 72%
    );

  filter:
    blur(36px);

  opacity: 0.85;

  pointer-events: none;
}

.hero-image::after {

  content: "";

  position: absolute;

  inset: 0;

  width: min(100%, 500px);

  height: min(68vh, 700px);

  min-height: 460px;

  margin: auto;

  aspect-ratio: 3 / 4;

  pointer-events: none;

  z-index: 2;

  box-shadow:
    inset 0 0 62px 44px rgba(7,7,7,0.88),
    inset 0 0 130px 96px rgba(7,7,7,0.34);
}

.hero-image img {

  width: 100%;

  max-width: 500px;

  height: min(68vh, 700px);

  min-height: 460px;

  aspect-ratio: 3 / 4;

  object-fit: cover;

  object-position:
    50% 44%;

  position: relative;

  z-index: 1;

  filter:
    brightness(0.76)
    contrast(1.07)
    saturate(0.92);

  mask-image:
    radial-gradient(
      ellipse at 50% 42%,
      black 42%,
      rgba(0,0,0,0.9) 56%,
      rgba(0,0,0,0.42) 75%,
      transparent 94%
    );

  -webkit-mask-image:
    radial-gradient(
      ellipse at 50% 42%,
      black 42%,
      rgba(0,0,0,0.9) 56%,
      rgba(0,0,0,0.42) 75%,
      transparent 94%
    );
}

/* =========================
   PROJECTS
========================= */

.projects {

  padding: 72px 10vw 60px;

  content-visibility: auto;

  contain-intrinsic-size: 1600px;
}

.projects-heading {

  margin-bottom: 84px;
}

.projects-heading h2 {

  font-size:
    clamp(3rem, 6vw, 6rem);

  margin-top: 20px;
}

/* PROJECT BLOCK */

.project-block {

  margin-bottom: 150px;
}

/* PROJECT SLIDER */

.project-slider {

  position: relative;

  width: 100%;

  border-radius: 8px;

  overflow: hidden;

  background: #070707;

  border:
    1px solid rgba(244,235,221,0.11);

  box-shadow:
    0 28px 90px var(--shadow);
}

/* SLIDES */

.slides {

  position: relative;

  display: flex;

  width: 100%;

  height: clamp(340px, 45vw, 760px);

  overflow-x: auto;
  overflow-y: hidden;

  background: #070707;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;

  -webkit-overflow-scrolling: touch;
}

.slides::-webkit-scrollbar {
  display: none;
}

/* IMAGES */

.slide {

  position: relative;

  flex: 0 0 100%;

  width: 100%;
  height: 100%;

  object-fit: contain;

  background: #070707;

  opacity: 1;

  transition:
    transform 0.7s ease,
    filter 0.7s ease;

  padding: 0;

  scroll-snap-align: start;
  scroll-snap-stop: always;

  will-change:
    transform;
}

/* ACTIVE */

.slide.active {

  opacity: 1;

  z-index: auto;
}

/* BUTTONS */

.slider-btn {

  position: absolute;

  top: 50%;

  transform:
    translateY(-50%);

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  padding: 0;

  border-radius: 50%;

  border:
    1px solid rgba(244,235,221,0.18);

  background:
    rgba(7,7,7,0.46);

  color:
    rgba(244,235,221,0.86);

  font-size: 0.75rem;

  z-index: 10;

  opacity: 0;

  transition: 0.3s ease;
}

.project-slider:hover .slider-btn {

  opacity: 1;
}

.project-slider:focus-within .slider-btn {

  opacity: 1;
}

.prev {

  left: 18px;
}

.next {

  right: 18px;
}

.slider-btn:hover {

  background:
    rgba(217,154,66,0.14);

  color: white;

  transform:
    translateY(-50%)
    scale(1.08);
}

/* PROJECT CONTENT */

.project-content {

  margin-top: 34px;

  max-width: 900px;

  padding-left:
    clamp(0px, 1.5vw, 22px);

  border-left:
    1px solid rgba(217,154,66,0.28);
}

.project-number {

  color: var(--accent);

  margin-bottom: 20px;
}

.project-content h2 {

  font-size:
    clamp(2.8rem, 5vw, 5rem);

  line-height: 1;

  margin-bottom: 30px;
}

.project-content p {

  color: var(--muted);

  line-height: 2;

  max-width: 700px;
}

/* =========================
   LIBRARY CTA
========================= */

.library-cta {

  padding: 40px 10vw 180px;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  content-visibility: auto;

  contain-intrinsic-size: 700px;
}

.library-cta h2 {

  font-size:
    clamp(2.5rem, 5vw, 5rem);

  max-width: 800px;

  margin-bottom: 30px;

  line-height: 1.1;
}

.library-cta p {

  color: var(--muted);

  max-width: 700px;

  line-height: 2;

  margin-bottom: 50px;
}

.library-btn {

  padding: 22px 60px;

  border-radius: 100px;

  text-decoration: none;

  color: white;

  border:
    1px solid rgba(244,235,221,0.13);

  background:
    rgba(244,235,221,0.045);

  transition: 0.4s ease;
}

.library-btn:hover {

  transform:
    translateY(-4px);

  border-color:
    rgba(217,154,66,0.48);

  background:
    rgba(217,154,66,0.08);
}

/* =========================
   ABOUT
========================= */

.about {

  min-height: 74vh;

  padding: 124px 10vw;

  display: flex;

  justify-content: space-between;

  gap: 100px;

  content-visibility: auto;

  contain-intrinsic-size: 900px;
}

.about-left {

  width: 45%;
}

.about-right {

  width: 40%;
}

.section-tag {

  color: var(--accent);

  letter-spacing: 0;

  margin-bottom: 30px;
}

.about-left h2 {

  font-size:
    clamp(2.5rem, 5vw, 5rem);

  line-height: 1.1;
}

.about-right p {

  color: var(--muted);

  line-height: 2;

  margin-bottom: 30px;
}

.about-tags {

  display: flex;

  gap: 20px;

  flex-wrap: wrap;
}

.about-tags span {

  padding: 14px 24px;

  border-radius: 100px;

  background:
    rgba(244,235,221,0.045);

  border:
    1px solid rgba(244,235,221,0.1);
}

/* =========================
   CONTACT
========================= */

.contact {

  min-height: 78vh;

  padding: 124px 10vw;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  content-visibility: auto;

  contain-intrinsic-size: 900px;
}

.contact h2 {

  font-size:
    clamp(2.5rem, 5vw, 5rem);

  margin-bottom: 60px;

  max-width: 700px;
}

.contact-form {

  width: 100%;

  max-width: 700px;

  display: flex;

  flex-direction: column;

  gap: 25px;
}

.contact-form input,
.contact-form textarea {

  padding: 24px;

  border-radius: 8px;

  border:
    1px solid rgba(244,235,221,0.12);

  background:
    rgba(244,235,221,0.045);

  color: white;

  font-family: inherit;

  resize: none;

  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color:
    rgba(217,154,66,0.48);

  background:
    rgba(89,97,78,0.22);
}

.contact-form textarea {

  min-height: 180px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {

  color: rgba(189,182,168,0.7);
}

button {

  border-radius: 100px;

  padding: 20px 60px;

  background: transparent;

  border:
    1px solid rgba(217,154,66,0.48);

  color: white;

  font-size: 0.95rem;

  letter-spacing: 0;

  transition:
    transform 0.4s ease,
    background 0.4s ease,
    border 0.4s ease;
}

button:hover {

  background:
    rgba(158,91,53,0.12);

  border-color: var(--accent);

  transform:
    translateY(-4px);
}

/* =========================
   REVEAL
========================= */

.reveal {

  opacity: 0;

  transform:
    translateY(56px);

  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.reveal.active {

  opacity: 1;

  transform:
    translateY(0);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 980px) {

  .hero {

    flex-direction: column;

    justify-content: center;

    padding:
      104px 28px 44px;

    gap: 34px;
  }

  .hero-content,
  .hero-image {

    width: 100%;

    text-align: center;
  }

  .description {

    max-width: 100%;
  }

  .hero-image img {

    max-width: min(76vw, 380px);

    height: min(46vh, 440px);

    min-height: 300px;
  }

  .hero-image::after {

    width: min(76vw, 380px);

    height: min(46vh, 440px);

    min-height: 300px;

    box-shadow:
      inset 0 0 48px 34px rgba(7,7,7,0.88),
      inset 0 0 90px 70px rgba(7,7,7,0.3);
  }

  .projects {

    padding:
      62px 0 48px;
  }

  .projects-heading {

    margin-bottom: 56px;

    padding:
      0 24px;
  }

  .project-block {

    margin-bottom: 110px;
  }

  .project-slider {

    width: 100vw;

    margin-left:
      calc(50% - 50vw);

    border-right: 0;
    border-left: 0;

    border-radius: 0;
  }

  .slides {

    height: clamp(220px, 58vw, 420px);
  }

  .project-content {

    padding:
      0 24px;

    border-left:
      0;
  }

  .about {

    flex-direction: column;

    gap: 60px;
  }

  .about-left,
  .about-right {

    width: 100%;
  }

}

@media (hover: none) {

  .slider-btn {
    opacity: 1;
  }

}

@media (max-width: 600px) {

  .menu-toggle {

    display: block;
  }

  .navbar {

    top: 15px;

    width:
      calc(100% - 30px);

    border-radius: 8px;
  }

  .navbar ul {

    position: absolute;

    top: calc(100% + 12px);
    left: 0;
    right: 0;

    background:
      rgba(7,7,7,0.96);

    flex-direction: column;

    justify-content: flex-start;
    align-items: center;

    gap: 24px;

    padding:
      28px;

    border:
      1px solid rgba(244,235,221,0.13);

    border-radius: 8px;

    transform:
      translateY(-12px);

    opacity: 0;

    pointer-events: none;

    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .navbar ul.active {

    transform:
      translateY(0);

    opacity: 1;

    pointer-events: auto;
  }

  .hero h1 {

    font-size: 3.7rem;
  }

  .description {
    margin-top: 24px;
  }

  .hero-btn {
    margin-top: 24px;

    padding:
      14px 34px;
  }

  .project-content h2 {

    font-size: 2.2rem;
  }

}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }

}

button:disabled {
  opacity: 0.55;

  pointer-events: none;
}

.form-status {
  min-height: 1.4em;

  color: var(--muted);

  line-height: 1.6;
}
