/* ========================================
   GLOBAL STYLES & FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #000000;
  --text-color: #E1E0CC;
  --accent-red: #FF4646;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent-red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff2d2d;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ========================================
   REVEAL ANIMATION OVERLAY
   ======================================== */
.bars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  z-index: 9999;
  pointer-events: none;
}

.bar {
  flex: 1;
  height: 100%;
  background-color: var(--accent-red);
}

/* ========================================
   UTILITIES & ANIMATIONS
   ======================================== */
.noise-overlay {
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* ========================================
   MAGNETIC & HOVER EFFECTS (For Nav)
   ======================================== */
.btn-hover-reveal {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

.btn-hover-reveal .btn-text-wrapper {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.btn-hover-reveal .btn-text-row {
  display: inline-flex;
  white-space: nowrap;
}

.btn-hover-reveal .btn-text-row .btn-char {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.btn-hover-reveal .btn-text-row .btn-char.is-space {
  width: 0.3em;
}

.btn-hover-reveal .btn-text-row.clone-row {
  position: absolute;
  top: 0;
  left: 0;
}

.btn-hover-reveal .btn-text-row.clone-row .btn-char {
  transform: translateY(110%);
}

.btn-hover-reveal:hover .btn-text-row.original-row .btn-char {
  transform: translateY(-110%);
}

.btn-hover-reveal:hover .btn-text-row.clone-row .btn-char {
  transform: translateY(0%);
}

/* Staggered delays for reveal */
.btn-hover-reveal .btn-char:nth-child(n) {
  transition-delay: calc(var(--char-index, 0) * 0.01s);
}

.btn-hover-reveal .btn-char:nth-child(1) {
  transition-delay: 0.01s;
}

.btn-hover-reveal .btn-char:nth-child(2) {
  transition-delay: 0.02s;
}

.btn-hover-reveal .btn-char:nth-child(3) {
  transition-delay: 0.03s;
}

.btn-hover-reveal .btn-char:nth-child(4) {
  transition-delay: 0.04s;
}

.btn-hover-reveal .btn-char:nth-child(5) {
  transition-delay: 0.05s;
}

.btn-hover-reveal .btn-char:nth-child(6) {
  transition-delay: 0.06s;
}

.btn-hover-reveal .btn-char:nth-child(7) {
  transition-delay: 0.07s;
}

.btn-hover-reveal .btn-char:nth-child(8) {
  transition-delay: 0.08s;
}

.btn-hover-reveal .btn-char:nth-child(9) {
  transition-delay: 0.09s;
}

.btn-hover-reveal .btn-char:nth-child(10) {
  transition-delay: 0.10s;
}

.btn-hover-reveal .btn-char:nth-child(11) {
  transition-delay: 0.11s;
}

.btn-hover-reveal .btn-char:nth-child(12) {
  transition-delay: 0.12s;
}

.btn-hover-reveal .btn-char:nth-child(13) {
  transition-delay: 0.13s;
}

.btn-hover-reveal .btn-char:nth-child(14) {
  transition-delay: 0.14s;
}

.btn-hover-reveal .btn-char:nth-child(15) {
  transition-delay: 0.15s;
}

/* ========================================
   MARQUEE & HERO INFO
   ======================================== */
.marquee-container {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
}

.marquee-text {
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 500;
  color: #E1E0CC;
  letter-spacing: -0.05em;
  line-height: 1.1;
  padding-bottom: 0.1em;
  padding-right: 0.1em;
}

.hero-info-box {
  position: absolute;
  top: 30%;
  left: 1.5rem;
  z-index: 10;
  color: #E1E0CC;
}

@media (min-width: 768px) {
  .hero-info-box {
    left: 4rem;
    top: 25%;
  }
}

.hero-info-text {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-top: 1rem;
  letter-spacing: -0.02em;
}

/* Mobile Toggle dot */
.mobile-toggle .dot {
  width: 8px;
  height: 8px;
  background: var(--text-color);
  border-radius: 50%;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  background-color: var(--bg-color);
  color: var(--text-color);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
}

.about-content {
  max-width: 90vw;
}

.about-label {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.7rem, 1vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(225, 224, 204, 0.5);
  /* Off-white with opacity */
  margin-bottom: 4rem;
  display: block;
}

.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4.2vw, 4.5rem);
  /* Reduced from 6.5rem to fit more words and fix justify gaps */
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: justify;
  /* Restored justify but with a font-size that fits properly */
  text-justify: inter-word;
}

.unit-logo {
  display: inline-flex;
  align-items: flex-end;
  border-left: 1.5px solid var(--text-color);
  border-bottom: 1.5px solid var(--text-color);
  border-bottom-left-radius: 8px;
  /* Smooth L-curve */
  padding: 0.2vw 0.8vw 0.2vw 0.4vw;
  margin-right: 1.5vw;
  margin-top: 0.2em;
  vertical-align: top;
  height: 1em;
}

.unit-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.5rem, 0.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  transform: translateY(-0.2em);
  /* Push text up slightly within the bracket */
}

.unit-line {
  display: none;
  /* Replaced by border on unit-logo */
}

.about-symbols {
  font-family: sans-serif;
  font-size: clamp(1rem, 2.5vw, 3rem);
  vertical-align: super;
  margin-left: 0.5vw;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
  background-color: var(--bg-color);
  /* #000000 */
  color: var(--text-color);
  /* #E1E0CC */
  padding: 5vw;
  display: flex;
  align-items: flex-start;
}

.services-label {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.6rem, 0.8vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color);
  width: 25%;
  flex-shrink: 0;
  margin-top: 0.5em;
  /* Align visually with 01 text */
}

.services-grid {
  width: 75%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 8vw;
  column-gap: 4vw;
}

/* Individual Service Item */
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  position: relative;
}

.service-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.6rem, 0.7vw, 0.85rem);
  font-weight: 400;
  color: var(--text-color);
  line-height: 1;
  margin-top: 0.3em;
  flex-shrink: 0;
}

.service-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Image Reveal - Hidden by default */
.service-img-reveal {
  width: 0;
  height: clamp(100px, 12vw, 180px);
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
  transition: width 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.service-img-reveal img {
  width: clamp(120px, 14vw, 200px);
  height: 100%;
  object-fit: cover;
  display: block;
}

/* On hover: image slides in */
.service-item:hover .service-img-reveal {
  width: clamp(120px, 14vw, 200px);
}

/* Service Title */
.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-color);
  margin: 0;
  transition: color 0.4s ease;
}

/* On hover: title turns accent */
.service-item:hover .service-title {
  color: var(--accent-red);
}

/* CTA - Hidden by default */
.service-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  pointer-events: none;
}

/* On hover: CTA fades in */
.service-item:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cta-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.55rem, 0.7vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color);
}

.cta-arrow {
  font-size: clamp(1rem, 1.5vw, 1.8rem);
  color: var(--text-color);
  line-height: 1;
  transition: transform 0.3s ease;
}

.service-item:hover .cta-arrow {
  transform: translateX(6px);
}

/* ========================================
   SELECTED WORK SECTION (STACKING CARDS)
   ======================================== */
.selected-work-section {
  position: relative;
  background-color: var(--bg-color);
  /* no padding so cards are full bleed */
}

.work-section-header {
  padding: 5vw;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
}

.work-label {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color);
  opacity: 0.8;
}

.work-cards-container {
  display: flex;
  flex-direction: column;
}

.work-card {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.work-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  /* Slight darkening for text readability */
  z-index: 2;
}

.work-card-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.work-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin: 0;
}

.work-card-footer {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.work-card-thumbnails {
  display: flex;
  gap: 0.5rem;
}

.work-card-thumbnails img {
  width: clamp(40px, 5vw, 70px);
  height: clamp(60px, 7.5vw, 100px);
  object-fit: cover;
}

.work-card-role {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.6rem, 0.8vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  font-weight: 500;
}

.work-card-tech {
  display: flex;
  gap: 3rem;
}

.tech-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.5rem, 0.7vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  line-height: 1.5;
  font-weight: 500;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background-color: #000000;
  padding: 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
}

.cta-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 300;
  color: rgba(225, 224, 204, 0.6);
  margin: 0;
  transition: color 0.4s ease;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 400;
  color: #E1E0CC;
  transition: color 0.4s ease;
}

.cta-link-arrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Hover effects */
.cta-container:hover .cta-heading {
  color: #FF4646;
  /* Royal blue from reference image */
}

.cta-container:hover .cta-link {
  color: #fd6666;
  /* Royal blue from reference image */
}

.cta-container:hover .cta-link-arrow {
  transform: translateX(12px);
}

/* ========================================
   INSPIRED SECTION
   ======================================== */
.inspired-section {
  background-color: #000000;
  padding: 5vw;
}

.inspired-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 7.5vw, 8.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-color);
  margin: 0;
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.footer-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.footer-center {
  position: relative;
  z-index: 3;
}

.footer-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.4s ease;
}

.footer-email:hover {
  opacity: 0.7;
}

.footer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3vw 5vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 3;
}

.footer-col {
  flex: 1;
}

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

.footer-col.right {
  display: flex;
  justify-content: flex-end;
}

.footer-address, .footer-link {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.6rem, 0.8vw, 0.9rem);
  font-weight: 300;
  color: rgba(225, 224, 204, 0.7);
  line-height: 1.5;
  margin: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-socials {
  display: flex;
  gap: 2rem;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .services-section {
    flex-direction: column;
  }

  .services-label {
    width: 100%;
    margin-bottom: 3rem;
  }

  .services-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 6vw;
  }

  .service-img-reveal {
    height: 100px;
  }

  .service-img-reveal img {
    width: 120px;
  }

  .service-item:hover .service-img-reveal {
    width: 120px;
  }
}

/* ========================================
   PROJECT PAGES SPECIFIC
   ======================================== */
.project-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 12vw, 10rem);
  line-height: 0.85;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project-meta-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(225, 224, 204, 0.4);
  margin-bottom: 0.5rem;
}

.project-meta-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: #E1E0CC;
}

/* ========================================
   CONTACT PAGE & FORM
   ======================================== */
.form-group {
  border-top: 1px solid rgba(225, 224, 204, 0.1);
  padding: 3rem 0;
  position: relative;
}

.form-number {
  font-size: 0.7rem;
  color: rgba(225, 224, 204, 0.3);
  position: absolute;
  top: 3.2rem;
  left: 0;
}

.form-label {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: #E1E0CC;
  margin-left: 3rem;
  display: block;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.form-input {
  background: transparent;
  border: none;
  width: calc(100% - 3rem);
  margin-left: 3rem;
  font-size: 1.2rem;
  color: rgba(225, 224, 204, 0.8);
  padding: 0.5rem 0;
  outline: none;
}

.form-input::placeholder {
  color: rgba(225, 224, 204, 0.2);
}

.sidebar-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(225, 224, 204, 0.3);
  margin-bottom: 1.5rem;
  display: block;
}

.sidebar-value {
  font-size: 1.1rem;
  color: #E1E0CC;
  margin-bottom: 2.5rem;
  display: block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.sidebar-value:hover {
  opacity: 0.6;
}

.send-btn {
  width: 180px;
  height: 180px;
  background: #FF4646;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 4rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 1024px) {
  .send-btn {
    position: absolute;
    bottom: -90px;
    right: 10%;
    left: auto;
    transform: none;
  }
}

.send-btn:disabled {
  background: #333;
  cursor: not-allowed;
  opacity: 0.7;
}

.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FF4646;
  padding: 4rem;
  border-radius: 2rem;
  text-align: center;
  z-index: 200;
  display: none;
  opacity: 0;
}

 /* ========================================
   AUDIO TOGGLE
   ======================================== */
.audio-dot {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.audio-dot.playing {
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 1.5px solid currentColor;
}