/************************************************************
 * PROJECT:     EIGHTXXVIII - Digital Design Studio
 * VERSION:     3.0.0
 * AUTHOR:      EIGHTXXVIII (hello@eightxxviii.com)
 * DESCRIPTION: Main stylesheet for V3. Focused on Geist 
 * typography, motion-heavy interactions, and 
 * dark-mode aesthetic.
 ************************************************************/

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

/* --- 1. VARIABLES & RESET --- */
:root {
  --bg-dark: #0b0b0b;
  --bg-light: #ffffff;
  --bg-gray: #f5f5f5;
  --accent: #2e69ff;
  --bg-matteblack: #28282b;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Geist", sans-serif;
  background-color: var(--bg-dark);
  color: var(--bg-light);
  line-height: 1.5;
  overflow-x: hidden;
}

/* --- 2. GLOBAL UTILITIES & TYPOGRAPHY --- */
.label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 400;
  opacity: 0.5;
  margin-bottom: 20px;
  display: block;
}

.display-text {
  font-size: clamp(1.8rem, 4vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: -1px;
}

.body-text {
  font-size: 2.2rem;
  max-width: 50vw;
  opacity: 0.7;
  font-weight: 300;
}

.border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.content-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.content-text p {
  font-size: 2.2rem;
  opacity: 0.8;
  font-weight: 300;
}

/* Text Selection Styling */
::selection {
  background-color: var(--accent);
  color: var(--bg-gray);
}

::-moz-selection {
  background-color: var(--accent);
  color: var(--bg-gray);
}

/* Animated Line-through for Global Links */
a:not(.btn-contact):not(.logo a) {
  position: relative;
  text-decoration: none;
  color: inherit;
}

a:not(.btn-contact):not(.logo a)::after {
  content: "";
  position: absolute;
  left: 50%;

  /* --- ADJUSTMENTS FOR THE GAP --- */
  bottom: -6px; /* Increase this number to move the line further down */
  top: auto;
  transform: none; /* REMOVE translateY to stop the line from pulling upward */
  /* ------------------------------- */

  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition:
    width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

a:not(.btn-contact):not(.logo a):hover::after {
  width: 100%;
  left: 0;
}

/* --- 3. NAVIGATION & LOGO --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition:
    background-color 0.4s ease,
    padding 0.4s ease;
}

.navbar.scrolled {
  padding: 20px 50px;
  backdrop-filter: blur(10px);
  background-color: var(--bg-dark);
}

.navbar.menu-open {
  background-color: #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.logo a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 40px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: opacity 0.3s;
}

.btn-contact {
  padding: 12px 24px;
  border-radius: 40px;
  background-color: var(--accent);
}

/* Mobile Menu Toggle (Hamburger to X) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 24px;
}

.bar {
  width: 100%;
  height: 2px;
  background-color: transparent;
  position: absolute;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bar:nth-child(2) {
  display: none;
}

.is-active .bar:nth-child(1)::before {
  opacity: 0;
}

.is-active .bar {
  background-color: #fff;
  width: 25px;
}

.is-active .bar:nth-child(1) {
  transform: rotate(45deg);
}

.is-active .bar:nth-child(3) {
  transform: rotate(-45deg);
}

.bar:nth-child(1)::before {
  content: "MENU";
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* --- 4. HERO SECTION --- */
.hero {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 1;
  padding-left: 5%;
  padding-bottom: 8vh;
}

.video-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Adds a subtle vignette to protect text legibility */
.video-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    70deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-content {
  text-align: left;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: difference;
  padding-bottom: 40px;
}

.hero-content h1 {
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
}

.hero-content p {
  font-size: 2rem;
  letter-spacing: 2px;
  margin-top: 10px;
  opacity: 0.9;
  text-transform: uppercase;
}

/* --- 5. MAIN CONTENT & GRID LAYOUTS --- */
.content {
  position: relative;
  z-index: 5;
  background-color: var(--bg-gray);
  color: var(--bg-matteblack);
}

.section-padding {
  padding: 200px 50px;
}

.container {
  max-width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;
  padding-top: 100px;
}

.value-item h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--bg-light);
}

.value-item .label {
  color: var(--bg-light);
  opacity: 1;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 1.2rem;
  line-height: 1.5;
  opacity: 0.9;
  color: var(--bg-light);
  padding-top: 20px;
}

.values-bg {
  background-image: url(media/fallback.jpg);
  background-position: center;
  background-size: cover;
  background-color: var(--bg-matteblack);
  background-attachment: fixed;
  background-blend-mode: overlay;
}

/* Staggered Values Variant */
.values-staggered {
  display: flex;
  flex-direction: column;
  gap: 150px;
  padding-top: 80px;
}

.stagger-item {
  max-width: 500px;
  position: relative;
}

.stagger-item h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.stagger-number {
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  opacity: 0.5;
  letter-spacing: 2px;
}

.stagger-item p {
  font-size: 2.2rem;
  font-weight: 300;
}

.align-left {
  align-self: flex-start;
  text-align: left;
}

.align-right {
  align-self: flex-end;
  text-align: left;
  padding-right: 5%;
}

.align-center {
  align-self: center;
  text-align: left;
  max-width: 600px;
}

/* --- 6. COMPONENTS & INTERACTIONS --- */

/* Marquee Ribbon */
.marquee-section {
  background-color: var(--bg-gray);
  color: var(--accent);
  overflow: hidden;
  padding: 0;
}

.marquee-wrapper {
  display: flex;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-content span {
  font-size: clamp(15rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 0 4rem;
  -webkit-text-stroke: 1px #28282b;
  color: transparent;
  transition: all 0.3s ease;
}

.marquee-content:hover span {
  color: var(--bg-matteblack);
  -webkit-text-stroke: 1px transparent;
}

/* Services List & Hover Container */
.services-list {
  position: relative;
}

.service-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.service-item h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  transition:
    transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),
    color 0.3s ease;
  pointer-events: none;
}

.service-item:hover h3 {
  transform: translateX(30px);
  color: var(--accent);
}

#hover-image-container {
  position: fixed;
  width: 600px;
  height: 400px;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  overflow: hidden;
  transform: translate(-50%, -50%);
  background-image: var(--hover-img);
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  background-size: 1% 1%;
  transition:
    opacity 0.8s ease,
    background-size 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

#hover-image-container.active {
  opacity: 1;
  background-size: 100% 100%;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111;
  color: white;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10001;
  max-width: 420px;
  display: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cookie-content p {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 500;
}

.cookie-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  font-family: "Geist", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn-cookie:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-cookie.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- 7. FORMS & NEWSLETTER --- */
.newsletter-box {
  padding: 100px 20px;
  text-align: center;
}

.form-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.email-input {
  border: none;
  border-bottom: 2px solid #0d0d0d;
  padding: 15px;
  width: 650px;
  font-size: 2rem;
  outline: none;
  background: transparent;
}

.submit-btn {
  background: var(--accent);
  font-size: 2rem;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.contact-form {
  margin-top: 60px;
}

.form-row {
  display: flex;
  gap: 30px;
  width: 100%;
}

.form-row .input-group {
  flex: 1;
}

.input-group {
  position: relative;
  margin-bottom: 80px;
}

.input-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-family: "Geist", sans-serif;
  font-weight: 300;
  color: var(--bg-gray);
  outline: none;
  transition: color 0.3s ease;
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.input-group input:focus ~ .input-focus-line,
.input-group textarea:focus ~ .input-focus-line {
  width: 100%;
}

.btn-submit {
  background: var(--bg-dark);
  color: var(--bg-light);
  border: none;
  padding: 25px 50px;
  border-radius: 100px;
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-submit:hover {
  background: var(--accent);
  padding-right: 70px;
}

.btn-arrow {
  font-size: 1.5rem;
  transition: transform 0.4s ease;
}

.btn-submit:hover .btn-arrow {
  transform: translateX(10px);
}

/* Radio Buttons */
.radio-group {
  margin-top: 30px;
}

.label-heading {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg-matteblack);
  margin-bottom: 25px;
  opacity: 1;
}

.radio-options {
  display: flex;
  gap: 40px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.3s;
  padding: 10px 0;
}

.radio-item input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.radio-text {
  line-height: 1;
  font-weight: 400;
  color: var(--bg-matteblack);
  display: inline-block;
}

/* --- 8. FOOTER SECTION --- */
.contact-section {
  background: var(--bg-dark);
  color: #fff;
  padding: 400px 50px 60px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contact-section::before {
    content: "EIGHTXXVIII";
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16vw;
    font-weight: 900;
    color: var(--bg-gray);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -5px;
  }
}

.huge-text {
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.9;
  margin-bottom: 60px;
  letter-spacing: -4px;
  position: relative;
  z-index: 2;
}

.huge-text span {
  color: var(--accent);
}

.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

.contact-info p {
  font-size: 2.2rem;
  opacity: 0.6;
  max-width: 40vw;
}

.contact-info a {
  color: var(--bg-light);
  text-decoration: none;
  max-width: 50vw;
  font-size: 4.5rem;
  border-bottom: none !important;
}

.contact-links a {
  color: var(--bg-light);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-bottom-grid {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-col {
  flex: 1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.footer-col.left {
  text-align: left;
  opacity: 0.5;
}

.footer-col.center {
  text-align: center;
  opacity: 0.5;
}

.footer-col.right {
  text-align: right;
  opacity: 0.4;
}

.footer-col a {
  color: var(--bg-light);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.4;
}

/* --- 9. ANIMATIONS & KEYFRAMES --- */

/* Reveal Animations */
.reveal,
.reveal-hero {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active,
.reveal-hero.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero {
  transition-duration: 1.5s;
}

/* Background / Loader Animations */
.gray-bg {
  background-color: var(--bg-gray);
  width: 100vw;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(rgba(0, 0, 0, 0.3) 0 0);
  background:
    var(--c) 0 0,
    var(--c) 50% 50%,
    var(--c) 100% 100%;
  animation: l17 3s infinite alternate;
}

@keyframes l17 {
  0%,
  10% {
    background-size: 20% 100%;
  }

  50% {
    background-size: 20% 20%;
  }

  90%,
  100% {
    background-size: 100% 20%;
  }
}

.logo-animation {
  width: 45px;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(#fff 0 0);
  background:
    var(--c) 0 0,
    var(--c) 50% 50%,
    var(--c) 100% 100%;
  animation: III 2s infinite alternate;
}

@keyframes III {
  0%,
  10% {
    background-size: 20% 100%;
  }

  50% {
    background-size: 20% 20%;
  }

  90%,
  100% {
    background-size: 100% 20%;
  }
}

.loader:nth-child(2) {
  animation-delay: 0.1s;
}

.loader:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes l29 {
  10% {
    box-shadow:
      -8px -4px,
      0 -4px,
      8px -4px,
      -8px 0,
      8px 0,
      -8px 4px #0000,
      0 4px,
      8px 4px #0000,
      -8px 8px,
      0 8px,
      8px 8px;
  }

  20% {
    box-shadow:
      -8px -4px,
      0 -4px,
      8px -4px,
      -8px 0,
      8px 0,
      -8px 4px,
      0 4px,
      8px 4px #0000,
      -8px 8px #0000,
      0 8px,
      8px 8px;
  }

  30% {
    box-shadow:
      -8px -4px,
      0 -4px #0000,
      8px -4px,
      -8px 0 #0000,
      8px 0,
      -8px 4px,
      0 4px #0000,
      8px 4px,
      -8px 8px #0000,
      0 8px,
      8px 8px #0000;
  }

  40% {
    box-shadow:
      -8px -4px,
      0 -4px,
      8px -4px,
      -8px 0 #0000,
      8px 0 #0000,
      -8px 4px,
      0 4px,
      8px 4px,
      -8px 8px,
      0 8px,
      8px 8px;
  }

  50% {
    box-shadow:
      -8px -4px,
      0 -4px,
      8px -4px,
      -8px 0,
      8px 0 #0000,
      -8px 4px #0000,
      0 4px,
      8px 4px,
      -8px 8px,
      0 8px,
      8px 8px;
  }

  60% {
    box-shadow:
      -8px -4px,
      0 -4px #0000,
      8px -4px,
      -8px 0,
      8px 0,
      -8px 4px #0000,
      0 4px,
      8px 4px,
      -8px 8px #0000,
      0 8px,
      8px 8px;
  }

  70% {
    box-shadow:
      -8px -4px,
      0 -4px #0000,
      8px -4px #0000,
      -8px 0,
      8px 0,
      -8px 4px,
      0 4px,
      8px 4px,
      -8px 8px #0000,
      0 8px,
      8px 8px;
  }

  80% {
    box-shadow:
      -8px -4px #0000,
      0 -4px,
      8px -4px,
      -8px 0,
      8px 0,
      -8px 4px,
      0 4px,
      8px 4px,
      -8px 8px,
      0 8px,
      8px 8px #0000;
  }

  90% {
    box-shadow:
      -8px -4px #0000,
      0 -4px,
      8px -4px,
      -8px 0,
      8px 0,
      -8px 4px,
      0 4px #0000,
      8px 4px,
      -8px 8px,
      0 8px,
      8px 8px #0000;
  }
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.33%);
  }
}

/* --- 10. RESPONSIVE STYLES (ALL) --- */

@media (max-width: 900px) {
  #hover-image-container {
    display: none !important;
  }

  .navbar {
    padding: 20px;
  }

  .navbar.scrolled {
    padding: 15px 20px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    column-gap: 40px;
  }

  .section-padding {
    padding: 120px 20px;
  }

  .hero {
    padding-left: 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.6s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1000;
    visibility: hidden;
  }

  .nav-links.active {
    top: 0;
    visibility: visible;
    background-color: #000 !important;
  }

  .nav-links a {
    margin: 15px 0;
    font-size: 1.5rem;
    margin-left: 0;
    text-align: center;
  }

  .email-input,
  .submit-btn {
    font-size: 2rem;
    width: 100%;
  }

  .form-group {
    flex-direction: column;
  }

  .contact-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    /* Stacks links vertically */
    gap: 15px;
    /* Adds space between each link */
    margin-top: 50px;
  }

  .contact-links a {
    margin-left: 0;
    margin-right: 20px;
    font-size: 1rem;
  }

  .body-text {
    font-size: 1.3rem;
    max-width: 100vw;
    opacity: 0.7;
  }

  .content-text p {
    font-size: 1.3rem;
  }

  .display-text {
    font-size: clamp(2.4rem, 4vw, 2rem);
  }

  .marquee-section {
    padding: 0;
  }

  .marquee-content span {
    font-size: clamp(4rem, 8vw, 2.5rem);
    padding: 0 2rem;
  }

  .values-staggered {
    gap: 80px;
  }

  .stagger-item {
    max-width: 100%;
    align-self: flex-start !important;
    text-align: left !important;
    padding-right: 0;
  }

  .stagger-item p {
    font-size: 1.3rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .footer-bottom-grid {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .footer-col.left,
  .footer-col.center,
  .footer-col.right {
    text-align: center;
  }

  .contact-info a {
    font-size: 1.7rem;
  }

  .contact-info p {
    font-size: 1.3rem;
    max-width: 100vw;
  }

  .form-row {
    flex-direction: column;
    gap: 40px;
  }

  .radio-options {
    flex-direction: column;
    gap: 20px;
  }

  .input-group {
    margin-bottom: 50px;
  }

  .input-group input,
  .input-group textarea {
    font-size: 1.8rem;
  }

  .cookie-banner {
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-right: none;
    padding: 30px;
  }
}

/* --- MINIMAL HORIZONTAL SCROLL --- */
.horizontal-scroll-wrapper {
  position: relative;
  height: 500vh;
  /* Gives extra space for the entry pause and exit pause */
}

.scroll-buffer {
  height: 100vh;
  /* This is the "pause" screen */
  width: 100%;
  pointer-events: none;
}

/* Ensure the sticky container stays pinned throughout the 500vh */
.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.section-title-fixed {
  position: absolute;
  top: 50px;
  left: 50px;
  z-index: 10;
}

.banner-title {
  font-size: 5rem;
  text-transform: uppercase;
  color: var(--bg-gray);
}

.horizontal-track {
  display: flex;
  width: 300vw;
  /* 3 projects */
  height: 100%;
  will-change: transform;
}

.project-slide {
  width: 100vw;
  height: 100vh;
  padding: 20px;
  /* Creates a slight border effect */
}

.banner-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: end;
  justify-content: right;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

.banner-overlay {
  position: relative;
  z-index: 2;
  text-align: right;
  color: var(--bg-gray);
  padding: 0 100px 100px 0;
}

/* Button & Hover Effects */
.banner-btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--bg-matteblack);
  border-bottom: none !important;
  /* Removes any bottom border that might grow */
  text-decoration: none !important;
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0;
  /* Hidden by default */
  transform: translateY(20px);
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.banner-btn::after,
.banner-btn::before {
  display: none !important;
  /* Removes any pseudo-element lines */
  content: none !important;
}

.banner-content:hover .banner-btn {
  opacity: 1;
  /* Keep the button movement and opacity, but kill the line growth */
  width: auto !important;
  background-color: var(--accent) !important;
  color: var(--bg-light) !important;
  transform: scale(1.05);
  /* Makes the button slightly larger on hover */
}

.banner-content:hover .banner-bg {
  transform: scale(1.05);
}

.banner-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  /* Darkens image for text clarity */
  z-index: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .horizontal-scroll-wrapper {
    height: auto;
  }

  .sticky-container {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .horizontal-track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
  }

  .project-slide {
    width: 100%;
    height: 80vh;
    padding: 10px;
  }

  .banner-btn {
    opacity: 1;
    transform: none;
    font-size: 0.8rem;
    padding: 10px 20px;
    letter-spacing: 2px;
  }

  .banner-title {
    font-size: 1.9rem;
    text-transform: uppercase;
    color: var(--bg-gray);
    padding-right: 10px;
  }

  .banner-overlay {
    padding: 0 20px 20px 0;
  }
}

/* --- CLEANED PROJECT STREAM --- */
.stream-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 100px 0 100px;
}

.stream-inner {
  display: flex;
  width: max-content;
  will-change: transform;
  /* We remove the 'animation' property here */
}

.stream-track {
  display: flex;
  gap: 30px;
  padding-right: 30px;
}

.stream-item img {
  height: 550px;
  width: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
  transition:
    filter 0.5s ease,
    transform 0.5s ease;
}

.stream-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* --- V3 FAQ STYLE --- */
.faq-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(40, 40, 43, 0.1);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 30px 0;
  text-align: left;
  color: var(--bg-matteblack);
  font-size: 4rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: color 0.3s ease;
}

.faq-trigger:hover {
  color: var(--accent);
  /* Subtle dim on hover */
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-content p {
  padding-bottom: 30px;
  color: var(--bg-matteblack);
  line-height: 1.6;
  max-width: 100%;
  font-size: 2.2rem;
  font-weight: 300;
}

/* State for showing the answer (toggle this via JS) */
.faq-item.active .faq-content {
  max-height: 300px;
  /* Adjust based on content length */
}

/* --- MOBILE OPTIMIZATION --- */

@media (max-width: 768px) {
  .stream-wrap {
    padding: 60px 0;
    /* Reduced padding for smaller screens */
  }

  .stream-item img {
    height: 250px;
    /* Smaller images for mobile */
  }

  .stream-track {
    gap: 15px;
    /* Tighter gap on mobile */
    padding-right: 15px;
  }

  .faq-trigger {
    font-size: 2rem;
    /* Slightly smaller text for mobile headers */
    padding: 20px 0;
  }

  .faq-content p {
    font-size: 1.3rem;
  }
}

.transition-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: grayscale(30%) contrast(120%);
}

.text-overlay {
  position: absolute;
  z-index: 4;
  color: var(--bg-gray);
  text-align: center;
  pointer-events: none;
  font-family: inherit;
  letter-spacing: 2px;
  opacity: 0;

  /* Fade IN takes 1.2s, Fade OUT takes 0.5s */
  transition: opacity 0.5s ease-in-out;
}

.text-overlay.show {
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

.text-overlay h1 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 0 10px 0 10px;
}

/* The Pixel Grid */
.pixel-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  /* 12x8 creates the large 'Envato' style block look */
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  z-index: 3;
}

.pixel-block {
  background-color: var(--bg-dark);
  opacity: 0;
  /* No scale, just hidden */
  outline: 0.5px solid rgba(255, 255, 255, 0.01);
  /* Subtle grid line */
  transition: opacity 0.1s ease-in;
  /* Sharp snap */
}

.pixel-block.active {
  opacity: 1;
  /* Instant appearance */
}

/* Sharp Digital Glitch Animation */
@keyframes digitalGlitch {
  0% {
    transform: translate(0);
    opacity: 0;
  }

  20% {
    transform: translate(-5px, 2px);
    opacity: 0.5;
  }

  40% {
    transform: translate(5px, -2px);
    opacity: 1;
  }

  60% {
    transform: translate(-2px, 0);
    opacity: 0.7;
  }

  80% {
    transform: translate(2px, 2px);
    opacity: 1;
  }

  100% {
    transform: translate(0);
    opacity: 1;
  }
}

/* --- STACKED CARDS SYSTEM --- */
.stacked-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Cards will overlap via sticky positioning */
  padding-top: 50px;
}

.sticky-card {
  position: sticky;
  top: 100px;
  /* How far from the top the card "sticks" */
  padding-bottom: 10vh;
  /* Space for the next card to slide up */
}

.card-content {
  background-color: var(--bg-gray);
  /* Matches your dark aesthetic */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 80px;
  padding: 80px 60px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
  /* Depth for the stack */
  transition: transform 0.3s ease;
}

/* Incremental top offsets so cards don't perfectly overlap (Visual Stack) */
.sticky-card:nth-child(1) {
  top: 120px;
}

.sticky-card:nth-child(2) {
  top: 140px;
}

.sticky-card:nth-child(3) {
  top: 160px;
}

.sticky-card:nth-child(4) {
  top: 180px;
}

.card-content h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.card-content p {
  font-size: 1.8rem;
  font-weight: 300;
  max-width: 100%;
  opacity: 0.8;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .sticky-card {
    top: 80px;
  }

  .card-content {
    padding: 40px 30px;
    min-height: 350px;
  }

  .card-content p {
    font-size: 1.2rem;
  }
}

/* --- FINAL TIP STYLE --- */

/* 1. Reset the link and define the anchor */
.tip {
  text-decoration: none !important;
  position: relative;
  display: inline-block;
}

/* 2. The Popup Box (Using ::before to avoid clash with ::after line) */
.tip::before {
  content: "Almost ready...";
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%) translateY(5px);

  /* Studio Aesthetic */
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;

  /* Animation */
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.2s ease;
  z-index: 999;
  border-radius: 10px;
}

/* 3. The Reveal */
.tip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 4. Optional: Force hide the global line for this specific link */
.tip:hover::after {
  display: none !important;
}

/* --- SELECTED WORK GRID --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 100px;
}

.work-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* Professional portrait crop */
  overflow: hidden;
  background-color: var(--bg-matteblack);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-overlay span {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 400;
  background-color: var(--accent);
  padding: 12px 25px;
  border-radius: 40px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hover States */
.work-item:hover .work-thumb img {
  transform: scale(1.05);
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-item:hover .work-overlay span {
  transform: translateY(0);
}

.work-meta {
  margin-top: 20px;
}

.work-meta .label {
  font-size: 0.7rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.work-meta h3 {
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .work-overlay {
    display: none; /* Hide hover interactions on mobile for better UX */
  }
}
