/*=============================================
=            General Styles                   =
=============================================*/

@property --hover-x {
  syntax: '<length>';
  inherits: true;
  initial-value: -100px;
}

@property --btn-glow-x {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: -100px;
}

@property --btn-glow-y {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: 50%;
}

:root {
  --bg: #080b0d;
  --text-primary: rgba(255,255,255,0.95);
  --text-secondary: rgba(255,255,255,0.6);
  --text-tertiary: rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.25);
  --surface: rgba(8,14,16,0.45);
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at left, rgba(0, 60, 55, 0.25), transparent 90%);
  background-attachment: fixed;
  color: white;
}

body.nav-open {
  overflow-y: hidden;
}

#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Fonts */
@font-face {
  font-family: 'Sora';
  src: url("Sora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url("Sora-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url("Sora-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url("PlayfairDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  text-align: left;
}

h1 {
  font-size: 2.5rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 0.625rem;
  background: #080b0d;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}


/*=============================================
=            Keyframe Animations              =
=============================================*/

@keyframes slideIn {
  0% {
    transform: translateY(-50%);
    opacity: 0;
    visibility: visible;
  }
  20%{
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
  }
}

@keyframes showBackground {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


/*=============================================
=            Header & Navigation              =
=============================================*/

header {
  position: fixed;
  width: 100%;
  background: transparent;
  z-index: 20;
  pointer-events: none;
}

header.main-page {
  background: transparent;
}

header nav {
  display: flex;
  justify-content: flex-end;
  margin: 2rem 6vw;
}

header nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.6rem 3rem;
  border-radius: 6.25rem;
  position: relative;
}

header nav ul::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6.25rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  z-index: -1;
}

header nav ul::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6.25rem;
  padding: 0.0625rem;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  background:
    radial-gradient(circle 4rem at var(--hover-x, -100px) 50%,
      rgba(255,255,255,0.45) 0%,
      transparent 100%),
    rgba(255,255,255,0.12);
  background-size: 100% 100%;
  transition: --hover-x 0.3s ease;
}

header.main-page nav ul::before {
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 75%);
  mask-image: linear-gradient(to right, #000 50%, transparent 75%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-position: right;
  mask-position: right;
  animation: navReveal 1.2s ease-out 0.3s forwards;
}

header.main-page nav ul::after {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.12) 33%,
    rgba(255,255,255,0.6) 40%,
    rgba(255,255,255,0.9) 44%,
    rgba(255,255,255,0.6) 48%,
    transparent 53%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: borderGlow 1.2s ease-out 1.2s forwards;
  transition: none;
}

header.main-page nav ul.nav-ready::after {
  animation: none;
  background:
    radial-gradient(circle 4rem at var(--hover-x, -100px) 50%,
      rgba(255,255,255,0.45) 0%,
      transparent 100%),
    rgba(255,255,255,0.12);
  background-size: 100% 100%;
  transition: --hover-x 0.3s ease;
}

@keyframes borderGlow {
  to { background-position: 0% 0; }
}

@keyframes navReveal {
  to {
    -webkit-mask-position: left;
    mask-position: left;
  }
}

header nav ul li {
  text-align: center;
  list-style: none;
  display: flex;
  align-items: center;
  height: 1.75rem;
  padding-top: 0.1rem;
  margin-left: 2rem;
  border-left: none;
  transition: .75s;
}

header nav ul li:first-child {
  margin-left: 0;
}

header nav ul li:last-child {
  margin-right: 0;
}

header ul li:hover {
  border-left: none;
}

header ul li.social-icons-item {
  border-left: none;
  margin: 0rem;
}

header ul li.social-icons-item:hover {
  border-left: none;
}

header ul li a {
  pointer-events: auto;
  padding: 0.8rem 0.8rem;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.08rem;
  transition: color 0.3s ease-in-out;
}

header ul li a:hover {
  color: rgba(255,255,255,1);
}

.active {
  border-left: none;
}

.active a {
  color: #ffffff;
}

header.main-page ul li {
  visibility: hidden;
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}

header.main-page ul li:nth-child(1) { animation-delay: 0.5s; }
header.main-page ul li:nth-child(2) { animation-delay: 0.7s; }
header.main-page ul li:nth-child(3) { animation-delay: 0.9s; }
header.main-page ul li:nth-child(4) { animation-delay: 1.1s; }

header.main-page ul.open li {
  animation: none;
  visibility: visible;
  opacity: 1;
}

/* Mobile Nav Toggler */
.navbar-toggler {
  appearance: none;
  padding: 0;
  font: inherit;
  color: inherit;
  pointer-events: auto;
  display: none;
  position: absolute;
  margin: 2rem 0;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  right: 8%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-radius: 50%;
  border: 0.0625rem solid rgba(255,255,255,0.1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.3s ease,
              border-color 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.navbar-toggler.open {
  transform: rotate(180deg);
}

.bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: transparent;
}

.bar::before, .bar::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 0.09rem;
  background: rgba(255,255,255,0.9);
  border-radius: 1rem;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              top 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              bottom 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bar::before {
  top: -0.25rem;
}

.bar::after {
  bottom: -0.25rem;
}

.navbar-toggler.open .bar::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.navbar-toggler.open .bar::after {
  bottom: 0;
  transform: translateX(-50%) rotate(-45deg);
}

.show-on-toggle {
  display: flex;
}

.show-only-on-toggle {
  display: none;
}


/*=============================================
=            Homepage Content                 =
=============================================*/

.content {
  height:100dvh;
  width: 100vw;
  display: flex;
  position: relative;
}

.text-content {
  height: 100vh;
  height: 100dvh;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  z-index: 18;
  position: relative;
  background: none;
  gap: 0.75rem;
  padding: 0 3vw 5rem 6vw;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.text-content h1,
.button-content a {
  visibility: hidden;
  animation: slideIn 1s ease-out forwards;
}

.text-content h1 {
  text-align: left;
  width: auto;
  max-width: 850px;
  font-size: 7rem;
  letter-spacing: -0.04rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0;
  text-transform: none;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.button-content {
  margin: 0;
}

.button-content a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  padding: 0.9rem 2rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border: none;
  border-radius: 6.25rem;
  letter-spacing: 0.06rem;
  text-transform: none;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  transition: background 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
}

.button-content a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6.25rem;
  padding: 0.0625rem;
  background:
    radial-gradient(circle 3rem at var(--btn-glow-x, -100px) var(--btn-glow-y, 50%),
      rgba(255,255,255,0.5) 0%,
      transparent 100%),
    rgba(255,255,255,0.12);
  background-size: 100% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  transition: --btn-glow-x 0.2s ease, --btn-glow-y 0.2s ease;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.button-content a:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.button-content a:hover .btn-arrow {
  transform: translateX(4px);
}

/* Aurora Background */
.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.aurora-1 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(0,210,190,0.15) 0%, rgba(0,210,190,0.08) 40%, transparent 70%);
  left: 20%; top: 60%;
  transform: translate(-50%, -50%);
  animation: auroraDrift1 20s ease-in-out infinite;
}

.aurora-2 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(0,165,155,0.12) 0%, rgba(0,165,155,0.06) 40%, transparent 70%);
  left: 75%; top: 30%;
  transform: translate(-50%, -50%);
  animation: auroraDrift2 25s ease-in-out infinite;
}

.aurora-3 {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, rgba(0,130,120,0.10) 0%, rgba(0,130,120,0.05) 40%, transparent 70%);
  left: 50%; top: 80%;
  transform: translate(-50%, -50%);
  animation: auroraDrift3 18s ease-in-out infinite;
}

@keyframes auroraDrift1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  33% { transform: translate(-40%, -60%) scale(1.1) rotate(5deg); }
  66% { transform: translate(-60%, -45%) scale(0.95) rotate(-3deg); }
}

@keyframes auroraDrift2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  25% { transform: translate(-55%, -40%) scale(1.05) rotate(-4deg); }
  50% { transform: translate(-45%, -55%) scale(1.12) rotate(3deg); }
  75% { transform: translate(-50%, -45%) scale(0.97) rotate(-2deg); }
}

@keyframes auroraDrift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  40% { transform: translate(-45%, -55%) scale(1.08) rotate(6deg); }
  70% { transform: translate(-55%, -48%) scale(0.93) rotate(-4deg); }
}

/* Noise overlay */
.content::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
  visibility: hidden;
  animation: scrollSlideIn 1s ease-out forwards, bounceDown 2s ease-in-out 1s infinite;
}

.scroll-indicator:hover {
  color: rgba(255,255,255,0.9);
}

@keyframes scrollSlideIn {
  0% {
    transform: translateX(-50%) translateY(-50%);
    opacity: 0;
    visibility: visible;
  }
  20% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0%);
  }
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(0.5rem); }
}

/* Hero Credibility Line */
.hero-credibility {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  margin: 0;
}

.hero-credibility .cred-number {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.hero-credibility .cred-item,
.hero-credibility .cred-sep {
  opacity: 0;
  transform: translateY(6px);
  animation: credFadeIn 0.5s ease-out forwards;
}

.hero-credibility .cred-item:nth-child(1) { animation-delay: 0.6s; }
.hero-credibility .cred-sep:nth-child(2)  { animation-delay: 1.0s; }
.hero-credibility .cred-item:nth-child(3) { animation-delay: 1.2s; }
.hero-credibility .cred-sep:nth-child(4)  { animation-delay: 1.6s; }
.hero-credibility .cred-item:nth-child(5) { animation-delay: 1.8s; }

@keyframes credFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.6;
  margin: 0;
  visibility: hidden;
  animation: slideIn 1s ease-out forwards;
}

/* Pipeline Showcase */
.pipeline-showcase {
  width: 50%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 17;
}

.pipeline-card {
  position: absolute;
  width: 22vw;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border: none;
  left: calc(50% - 11vw + (var(--card-index) - 1.5) * 6vw);
  top: calc(50% + (var(--card-index) - 1.5) * 4.5vw);
  transform: translateY(-50%);
  z-index: calc(10 + var(--card-index));
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  scale: 1;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              scale 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              z-index 0s,
              box-shadow 0.8s ease,
              opacity 0.6s ease,
              filter 0.6s ease;
  opacity: 0;
  pointer-events: none;
  animation: pipelineSlideIn 1s ease-out forwards;
  animation-delay: calc(0.2s + var(--card-index) * 0.2s);
}

.pipeline-card img {
  width: calc(100% + 2px);
  margin: -1px -1px 0;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease;
}

.pipeline-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem calc(1rem + 1px);
  width: calc(100% + 2px);
  margin: 0 -1px -1px;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06rem;
}

.pipeline-num {
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

.pipeline-card.first-pop {
  transition: transform 1.6s cubic-bezier(0.25, 0.8, 0.25, 1),
              scale 1.6s cubic-bezier(0.25, 0.8, 0.25, 1),
              z-index 0s,
              box-shadow 1.6s ease,
              opacity 1.2s ease,
              filter 1.2s ease;
}

.pipeline-card:hover,
.pipeline-card.pipeline-active {
  transform: translateY(calc(-50% - 3.5vw));
  scale: 1.25;
  z-index: 100;
  box-shadow: 0 2vw 4vw rgba(0,0,0,0.5), 0 0 3vw rgba(0,210,190,0.12);
}

.pipeline-card:hover ~ .pipeline-card,
.pipeline-card:has(~ .pipeline-card:hover),
.pipeline-card.pipeline-active ~ .pipeline-card,
.pipeline-card:has(~ .pipeline-card.pipeline-active) {
  opacity: 0.35;
  scale: 0.95;
  filter: blur(2px);
}

@keyframes pipelineSlideIn {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 2vw));
    pointer-events: none;
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
  }
}


/*=============================================
=            Services Section                 =
=============================================*/

.services-section {
  padding: 6rem 2rem;
  background: transparent;
}

.services-tagline {
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: rgba(0,210,190,0.6);
  margin: 0 0 2.5rem 0;
}

.services-container {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.service-block {
  position: relative;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 3rem;
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.service-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,210,190,0.4), rgba(0,210,190,0.8), rgba(0,210,190,0.4));
  transition: width 0.4s ease;
}

.service-block:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.service-block:hover::after {
  width: 100%;
}

.service-block::before {
  content: attr(data-number);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 3rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
}

.service-icon {
  width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 1.5rem;
  color: rgba(0,210,190,0.6);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-block h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  color: #fff;
  text-align: left;
}

.service-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/*=============================================
=            Featured Projects Section        =
=============================================*/

.featured-projects-section {
  padding: 2rem 2rem 0 2rem;
}

.featured-projects-container {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.featured-projects-container > h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem 0;
  text-align: center;
}

.featured-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 3rem 0;
  text-align: center;
}

.featured-projects-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.featured-projects-cta {
  margin-top: 3rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  padding: 0.9rem 2rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border: 0.0625rem solid rgba(255,255,255,0.12);
  border-radius: 6.25rem;
  letter-spacing: 0.06rem;
  text-transform: none;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.view-all-link::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.view-all-link:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.view-all-link:hover::after {
  transform: translateX(4px);
}

@media only screen and (max-width: 1050px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-section {
    padding: 4rem 1.5rem;
  }

  .service-block {
    padding: 1.75rem;
  }

  .service-icon {
    width: 1.91rem;
    height: 1.91rem;
    margin-bottom: 1rem;
  }

  .service-block h3 {
    font-size: 1.1rem;
    margin: 0 0 0.6rem 0;
  }

  .service-block p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .featured-projects-section {
    padding: 2rem 1.5rem 0 1.5rem;
  }

  .featured-projects-container > h2 {
    font-size: 2rem;
  }

  .featured-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .view-all-link {
    font-size: 0.85rem;
    padding: 0.75rem 1.75rem;
  }
}


/*=============================================
=            Projects (List) Page             =
=============================================*/

.content-projects {
  width: 100vw;
  height: auto;
}

.content-projects-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 0;
}

.projects-headline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 8rem;
  margin-bottom: 0;
  height: auto;
  width: 50vw;
}

.projects-headline h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-primary);
  margin: 0 0 1rem;
  text-align: center;
}

.projects-headline .page-subtitle {
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}

.process-revisions-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 1.25rem 0 0;
  opacity: 0.8;
}

.projects-images {
  display: flex;
  justify-content: center;
  width: 90%;
  flex-wrap: wrap;
  gap: 2.5rem;
}

/* Project Cards */
.project-card {
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(1.2rem);
  backdrop-filter: blur(1.2rem);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin: 0;
  width: 34rem;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
              filter 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: left;
}

.project-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.project-card a > * {
  grid-column: unset;
  grid-row: unset;
}

.project-card .img-wrapper {
  overflow: hidden;
  background: linear-gradient(90deg, #0d0d0d 0%, #1c1c1c 50%, #0d0d0d 100%);
  background-size: 200% 100%;
  animation: card-shimmer 1.6s ease-in-out infinite;
  line-height: 0;
  aspect-ratio: 16 / 9;
}

.project-card .img-wrapper.loaded {
  animation: none;
  background: #000;
}

@keyframes card-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.project-card a img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
              filter 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-info {
  position: relative;
  padding: 1.75rem;
  background: transparent;
  border-top: none;
  height: auto;
  margin: 0;
  text-align: left;
}

.project-info::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(to top, rgba(8,14,16,0.55), transparent);
  pointer-events: none;
}

.project-info::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,210,190,0.6), rgba(0,210,190,0));
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (hover: hover) and (pointer: fine) {
  .project-card.revealed:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(0,210,190,0.1);
    border-color: var(--border-hover);
  }

  .projects-images:has(.project-card.revealed:hover) .project-card.revealed:not(:hover),
  .featured-projects-grid:has(.project-card.revealed:hover) .project-card.revealed:not(:hover) {
    opacity: 0.6;
    filter: saturate(0);
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                filter 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .projects-images:has(.project-card.revealed:hover) .project-card.revealed:hover,
  .featured-projects-grid:has(.project-card.revealed:hover) .project-card.revealed:hover {
    transition: opacity 0.1s ease, filter 0.1s ease;
  }

  .project-card.revealed:hover a img {
    transform: scale(1.03);
  }

  .project-card.revealed:hover .project-info::after {
    width: 100%;
  }
}

.project-info h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.25rem 0;
  color: #fff;
  text-shadow: none;
  text-align: left;
}

.project-type {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(0,210,190,0.55);
  margin: 0.35rem 0 0;
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.project-desc {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0.5rem 0;
  color: var(--text-secondary);
}


/*=============================================
=            Single Project Page              =
=============================================*/

.content-project {
  width: 100vw;
  height: auto;
}

.content-project-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Video Project */
.video-project-container {
  margin-top: 8rem;
  margin-bottom: 4vh;
  height: auto;
  width: 65vw;
  background: linear-gradient(90deg, #0d0d0d 0%, #1c1c1c 50%, #0d0d0d 100%);
  background-size: 200% 100%;
  animation: card-shimmer 1.6s ease-in-out infinite;
  min-height: 36.5vw;
  border-radius: 2rem;
}

.video-project-container.imgs-loaded {
  animation: none;
  background: transparent;
  min-height: 0;
}

.video-project-container img{
  display: block;
  width:100%;
  justify-content: center;
  height: auto;
  border-radius: 2rem;
  filter: blur(0.5rem) brightness(0.5);
  z-index: 1;
}

.iframe-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.iframe-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: none;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Render/Slider Project */
.render-project-container {
  margin-top: 8rem;
  margin-bottom: 4vh;
  display: flex;
  justify-content: center;
  width: 100%;
}

.render-container {
  display: flex;
  width: 65%;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(90deg, #0d0d0d 0%, #1c1c1c 50%, #0d0d0d 100%);
  background-size: 200% 100%;
  animation: card-shimmer 1.6s ease-in-out infinite;
  min-height: 36.5vw;
}

.render-container.imgs-loaded {
  animation: none;
  background: transparent;
  min-height: 0;
}

.render-container::before {
  content: "";
  position: absolute;
  inset: 0rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 2.5rem,
    rgba(0, 0, 0, 0) 5rem
  );
  z-index: 1;
  border-radius: 1.4rem;
  pointer-events: none;
}

.render-container img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections collage hero */
.sections-collage {
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.sections-collage.sections-count-2 .collage-row img {
  height: 18.25vw;
}

.sections-collage::before {
  display: none;
}

.collage-row {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
}

.collage-row img {
  display: block;
  flex: 1;
  min-width: 0;
  width: 0;
  height: 7.3vw;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 0;
}

.collage-row:hover img {
  transform: scale(1.03);
}

.collage-row-label {
  position: absolute;
  bottom: 0.6rem;
  left: 1rem;
  z-index: 2;
  font-family: 'Sora', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  pointer-events: none;
}

.collage-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

/* Card collage — sections-layout projects on project cards */
.card-collage {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card .card-collage .collage-row {
  flex: 1;
  flex-shrink: 1;
}

.project-card .card-collage .collage-row img {
  height: 100%;
}

.project-card .card-collage .collage-row-label,
.project-card .card-collage .collage-row::after {
  display: none;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.slider-navigation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background-color: rgba(0,0,0,0.8);
}

.slider-arrow.hidden {
  visibility: hidden;
  opacity: 0;
}

.prev {
  left: 1.25rem;
}

.next {
  right: 1.25rem;
}

/* Slider Progress Bar */
.progress-container {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0 0 0 2rem;
  justify-content: space-between;
  z-index: 2;
}

.progress-bar {
  flex-grow: 1;
  height: 0.125rem;
  background-color: rgba(255,255,255,0.5);
  position: relative;
}

.progress-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  transition: left 0.5s ease;
}

.slide-count {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: white;
  margin: 0 2rem;
}

/* Project Description */
.description-container {
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-left: 2rem;
  padding-right: 2rem;
}

.description-container .about-headline {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.description-container .about-headline h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

.description-container .about-text {
  width: 100%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 2.5rem;
}

.description-container .about-text-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.description-container .about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  text-align: left;
}

.description-container p.date-of-creation {
  font-size: 1rem;
  text-align: right;
  width: 100%;
  margin-top: 2rem;
}

/* Project Gallery */
.gallery-heading {
  margin-top: 4rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  text-align: center;
  color: #fff;
}

.project-images-section {
  width: 85vw;
  margin-top: 3rem;
}

.project-images-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.project-images {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85vw;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 2rem;
}

.project-images-section .project-images {
  width: 100%;
  margin-top: 0;
}

.project-images img, .project-images video {
  border-radius: 0.75rem;
  max-width: 43.75rem;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  transition: transform 0.3s ease;
  display: block;
}

.img-placeholder {
  background: linear-gradient(90deg, #0d0d0d 0%, #1c1c1c 50%, #0d0d0d 100%);
  background-size: 200% 100%;
  animation: card-shimmer 1.6s ease-in-out infinite;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 43.75rem;
  width: 100%;
}

.img-placeholder.loaded {
  animation: none;
  background: transparent;
  aspect-ratio: auto;
}

.img-placeholder img {
  display: block;
  width: 100%;
  height: auto;
}


/* --- STORYBOARD SECTION --- */

.storyboard-container {
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 2000px;
    padding-bottom: 3rem;
}

.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
}

.sb-frame {
    background: rgba(20, 22, 26, 0.3);
    backdrop-filter: blur(0.75rem);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sb-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.sb-info {
    padding: 12px 15px;
    display: flex;
    justify-content: right;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
}

.sb-name {
    color: #bbb;
    font-size: 0.85rem;
    font-weight: 500;
}

.sb-timecode {
    color: #e8e8e8;
    font-family: 'Sora', monospace;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/*=============================================
=            About Page                       =
=============================================*/

.content-about-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem 0rem 2rem;
}

.about-headline {
  text-align: center;
  margin-bottom: 4rem;
}

.about-headline h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-primary);
  margin: 0 0 1rem;
  text-align: center;
}

.about-headline .page-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.main-about {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: flex-start;
  width: 100%;
}

.about-photo {
  flex: 0 0 400px;
}

.about-photo.reveal {
  transform: translateX(2rem);
}

.about-photo.revealed {
  transform: translateX(0);
}

.about-photo-shape {
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.3);
}

.about-photo-shape img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-text {
  flex: 1;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 2.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  text-align: left;
  color: var(--text-secondary);
}

@media only screen and (max-width: 1050px) {
    .content-about-container {
        padding: 6rem 1.5rem 0 1.5rem;
    }

    .about-headline {
        margin-bottom: 3rem;
    }

    .main-about {
        flex-direction: column;
        gap: 2rem;
    }

    .about-photo.reveal {
        transform: translateY(1.5rem);
    }

    .about-photo {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-text p {
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 600px) {
    .content-about-container {
        padding: 5rem 1.5rem 0 1.5rem;
    }

    .main-about {
        width: 100%;
        max-width: 100%;
    }

    .about-text {
        padding: 1.5rem;
        margin: 0 auto;
    }

    .about-photo,
    .about-photo-shape {
        margin: 0 auto;
    }

    .about-text p {
        text-align: left;
    }
}


/*=============================================
=            Policy Page                      =
=============================================*/

.policy-headline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 15vh;
  margin-bottom: 4vh;
  height: auto;
  width: 50vw;
}

.policy-headline h1 {
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  text-align: center;
}

.main-policy {
  width: 80%;
  height: auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
}

.policy-text {
  width: 50%;
  text-align: left;
}

.policy-text h3 {
  text-align: left;
}

.manage-cookies-btn {
  background-color: transparent;
  color: white;
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  border-radius: 0.375rem;
  transition: border-color 0.3s ease;
}

.manage-cookies-btn:hover {
  border-color: #fff;
  color: #fff;
}


/*=============================================
=            Footer                           =
=============================================*/

footer {
  background-color: transparent;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: none;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,210,190,0.3), transparent);
}

.footer-container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact h1 {
  font-family: 'Playfair Display', 'Sora', serif;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: center;
}

.footer-contact p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 31.25rem;
  margin: 0 auto 1.5rem auto;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border: 0.0625rem solid rgba(255,255,255,0.2);
  border-radius: 6.25rem;
  box-shadow: 0 0 25px rgba(0,210,190,0.1);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-email:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  box-shadow: 0 0 35px rgba(0,210,190,0.2);
  transform: none;
}

.email-container {
    position: relative;
    display: inline-block;
}

.copy-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #0c0c0c;
    padding: 0.5rem 1rem;
    border-radius: 0.3125rem;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.75);
    z-index: 10;
}

.copy-popup.show {
    visibility: visible;
    opacity: 1;
}

.footer-socials {
  margin-bottom: 1.5rem;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-icons-home {
  display: none;
}

.social-media-icons svg {
  font-size: 1.4rem;
  width: 1em;
  height: 1em;
  color: #a0a0a0;
  transition: color 0.3s ease;
}

.social-media-icons:hover svg { color: rgba(0,210,190,0.8); }

.social-media-icons a {
  text-decoration: none;
}

.footer-copyright{
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}


/*=============================================
=            404 Page                         =
=============================================*/

.error-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem;
  text-align: center;
}

.error-content {
  max-width: 28rem;
}

.error-code {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 15vw, 8rem);
  background: linear-gradient(135deg, rgba(0,210,190,0.6), rgba(0,210,190,0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.error-content h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.error-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

.error-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.error-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.error-link:hover {
  border-color: rgba(0,210,190,0.5);
  background: rgba(255,255,255,0.06);
}

/*=============================================
=            Process Page                     =
=============================================*/

.process-headline {
  padding-top: 8rem;
}

.process-timeline {
  position: relative;
  padding-left: 4rem;
  max-width: 50rem;
  margin: 1.5rem auto 0;
}

.timeline-line {
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,210,190,0.4), rgba(0,210,190,0.1));
}

.process-stage {
  position: relative;
  margin-bottom: 2.5rem;
}

.stage-number {
  position: absolute;
  left: -4rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(0,210,190,0.9);
  background: var(--bg);
  border: 1px solid rgba(0,210,190,0.3);
  border-radius: 50%;
  z-index: 1;
}

.stage-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 2rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.stage-card:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.08);
}

.stage-card h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.stage-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.stage-deliverable {
  display: inline-block;
  font-size: 0.85rem;
  color: rgba(0,210,190,0.7);
  border: 1px solid rgba(0,210,190,0.2);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
}

.process-cta-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .process-timeline {
    padding-left: 3.25rem;
  }

  .timeline-line {
    left: 0.9rem;
  }

  .stage-number {
    left: -3.25rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.7rem;
  }

  .stage-card {
    padding: 1.5rem;
  }

  .stage-card h2 {
    font-size: 1.1rem;
  }

  .stage-card p {
    font-size: 0.95rem;
  }

  .stage-deliverable {
    font-size: 0.8rem;
  }

  .process-cta-text {
    font-size: 0.95rem;
  }

  .process-revisions-note {
    font-size: 0.8rem;
  }
}

/*=============================================
=            Scroll Reveal                    =
=============================================*/

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

/*=============================================
=            Cookie Consent Bar               =
=============================================*/

.cookie-bar, .cookie-bar-video {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(1.5rem);
    -webkit-backdrop-filter: blur(1.5rem);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 6.25rem;
    max-width: 45%;
    width: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 0.0625rem solid rgba(255,255,255,0.1);
    z-index: 19;
}

.cookie-bar p, .cookie-bar-video p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
}

.cookie-bar p span, .cookie-bar-video p span {
    display: inline;
}

.cookie-bar p a, .cookie-bar-video p a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    transition: color 0.3s ease;
}

.cookie-bar p a:hover, .cookie-bar-video p a:hover {
    color: #fff;
}

.button-container {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-bar button, .cookie-bar-video button {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border: 0.0625rem solid rgba(255,255,255,0.15);
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 0.75rem;
    border-radius: 6.25rem;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.04rem;
    white-space: nowrap;
}

.cookie-bar button#accept-cookies, .cookie-bar-video button#accept-cookies,
.cookie-bar button.video-accept-btn {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.cookie-bar button#decline-cookies, .cookie-bar-video button#decline-cookies,
.cookie-bar button.video-decline-btn {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.08);
}

.cookie-bar button:hover, .cookie-bar-video button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.cookie-bar button:active {
    transform: scale(0.96);
}

#cookie-notice p {
  font-weight: 500;
}

@media (max-width: 767px) {
    .button-container {
        margin-top: 0;
    }
}


/*=============================================
=            Utility Classes                  =
=============================================*/

.hidden {
    display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--bg);
  color: #fff;
  border: 1px solid rgba(0, 210, 190, 0.6);
  border-radius: 0.375rem;
  z-index: 10000;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 1rem;
}

main[tabindex="-1"]:focus {
  outline: none;
}


/*=============================================
=            Responsive Styles                =
=============================================*/

/* Mobile styles - up to 1050px */
@media only screen and (max-width: 1050px) {
    .process-revisions-note {
        font-size: 0.85rem;
    }

    /* Header & Nav */
    header nav {
        margin: 0;
    }
    header nav ul {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0;
        position: absolute;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        display: none;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
    }
    header nav ul::before,
    header nav ul::after {
        display: none;
    }
    header nav ul.open {
        pointer-events: auto;
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.9);
        opacity: 1;
        -webkit-backdrop-filter: blur(0.25rem);
        backdrop-filter: blur(0.25rem);
    }
    header nav ul li {
        margin-bottom: 2rem;
        margin-left: 0;
        font-weight: 500;
        text-align: center;
        display: inline-block;
        border-left: none;
    }
    header ul li a{
        font-size: 1.3rem;
        letter-spacing: 0.08rem;
    }
    header ul li.show-on-toggle,
    header ul li.show-only-on-toggle {
        margin-bottom: 2rem;
        font-weight: 500;
        display: inline-block;
        border-left: none;
    }
    .navbar-toggler {
        display: flex;
        z-index: 100;
        animation: slideIn 1s ease-out;
    }
    .show-on-toggle,
    .show-only-on-toggle {
        display: flex;
    }
    /* Homepage Content */
    .text-content {
        width: 100%;
        align-items: center;
        justify-content: flex-end;
        padding: 0 5vw 6rem 5vw;
    }
    .hero-card {
        align-items: center;
    }
    .text-content h1 {
        font-size: 2.5rem;
        text-align: center;
        max-width: 100%;
    }
    .scroll-indicator,
    .scroll-indicator span {
        font-size: 0.5625rem !important;
        bottom: 1rem;
        gap: 0.25rem;
        letter-spacing: 0.09rem;
    }
    .scroll-indicator svg {
        width: 0.9375rem;
        height: 0.9375rem;
    }

    /* Pipeline */
    .pipeline-showcase {
        position: absolute;
        top: 3rem;
        bottom: 45vh;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 19;
    }
    .pipeline-card {
        width: 55vw;
        left: calc(50% - 27.5vw + (var(--card-index) - 1.5) * 8vw);
        top: calc(50% + (var(--card-index) - 1.5) * 14vw);
        transform: translateY(-50%);
        background: rgb(22, 24, 30);
    }
    .pipeline-label {
        background: rgb(22, 24, 30);
    }
    .pipeline-label {
        padding: 0.4rem 0.6rem;
        font-size: 0.55rem;
    }
    .pipeline-num {
        font-size: 0.5rem;
    }
    .pipeline-showcase.pipeline-ready .pipeline-card:not(.pipeline-active) {
        opacity: 0.35;
    }
    .pipeline-card.pipeline-active {
        transform: translateY(-3vw) scale(1.1);
        z-index: 100;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .pipeline-card.pipeline-active img {
        filter: brightness(1);
    }
    .button-content a {
        font-size: 0.85rem;
        padding: 0.75rem 1.75rem;
        letter-spacing: 0.1rem;
    }

    /* Hero mobile */
    .hero-credibility {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
    }
    .hero-credibility .cred-sep {
        display: none;
    }
    .hero-credibility,
    .hero-credibility .cred-item {
        font-size: 0.75rem !important;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    .aurora-1 { width: 70vw; height: 70vw; }
    .aurora-2 { width: 60vw; height: 60vw; }
    .aurora-3 { width: 50vw; height: 50vw; }

    /* Projects (List) Page */
    .projects-headline,
    .process-headline {
        padding-top: 0;
        width: 100%;
        margin-bottom: 0;
    }
    .projects-headline .page-subtitle,
    .about-headline .page-subtitle,
    .process-headline .page-subtitle {
        font-size: 0.95rem;
    }
    .projects-images {
        width: 95%;
    }
    .projects-images a img {
        border-radius: 0;
        max-width: 100%;
        object-fit: cover;
    }
    .project-card{
      max-width: 100%;
      width: 25rem;
    }
    .project-card a img{
      width: 100%;
    }
    .project-info h3 {
      font-size: 1.1rem;
    }
    .content-projects-container {
      padding: 5rem 5% 0;
      max-width: 100%;
    }

    /* Single Project Page */
    .video-project-container {
        margin-top: 17vh;
        margin-bottom: 3vh;
        height: auto;
        width: 97vw;
        min-height: 54.5vw;
    }
    .video-project-container.imgs-loaded {
        min-height: 0;
    }
    .render-project-container {
        margin-top: 17vh;
        margin-bottom: 3vh;
        width: 97vw;
    }
    .render-container {
        width: 95%;
        min-height: 53vw;
    }
    .render-container.imgs-loaded {
        min-height: 0;
    }
    .render-container img {
        border-radius: 0.75rem;
    }
    .collage-row img {
        height: 18.4vw;
        border-radius: 0 !important;
    }
    .sections-collage.sections-count-2 .collage-row img {
        height: 46vw;
    }
    .project-card .card-collage .collage-row img {
        height: 100%;
    }
    .collage-row-label {
        font-size: 0.5rem !important;
        letter-spacing: 0.07rem;
    }
    .collage-row::after {
        background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 70%);
    }
    .project-images-section {
        width: 95vw;
    }
    .project-images {
        width: 95vw;
        gap: 1rem;
    }
    .description-container {
        width: 100%;
        padding: 1.5rem;
    }
    .description-container .about-text {
        padding: 2rem;
    }
    .description-container .about-text p {
        font-size: 0.9rem;
    }
    p.date-of-creation {
        font-size: .9rem;
    }

    /* About Page */
    .content-about-container {
        padding: 6rem 1.5rem 0 1.5rem;
    }
    .about-headline {
        margin-bottom: 3rem;
    }
    .main-about {
        flex-direction: column;
        gap: 2rem;
    }
    .about-text {
        padding: 2rem;
    }
    .about-text p {
        font-size: 0.9rem;
    }
    .about-photo-shape {
        margin: 0 auto;
    }

    /* Policy Page */
    .policy-text {
      width: 80%;
    }
    .policy-text h3{
      font-size: 1.5rem;
    }
    .policy-text p{
      font-size: 0.9rem;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
    }
    .footer-contact p {
      font-size: 0.9rem;
    }
    .footer-email {
      font-size: 1rem;
      padding: 0.85rem 2rem;
    }
    .footer-main-page {
        display: none;
    }
    .footer-socials {
        width: 80%;
    }
    .footer-socials span {
        font-size: 1.25rem;
        margin: 2rem 0;
    }
    .footer-icons-home {
        height: 3rem;
        display: none;
        flex-direction: row;
    }

    .footer-icons-home.open {
        display: flex;
        position: absolute;
        bottom: 5vh;
        left: 20%;
        width: 60%;
        justify-content: space-around;
    }

    .social-media-icons svg {
        font-size: 2rem;
        width: 1em;
        height: 1em;
        transition: 0.4s;
    }
    .footer-bottom span,
    .footer-copyright span,
    .footer-links a {
        font-size: 0.85rem;
    }

    /* Cookie Bar */
    .cookie-bar {
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      bottom: 1.5rem;
      width: 90%;
      max-width: 90%;
      border-radius: 1.5rem;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.5rem;
      text-align: center;
      background: rgba(30, 30, 35, 0.85);
    }
    .cookie-bar p {
      font-size: 0.6rem !important;
      line-height: 1.4;
      margin: 0;
    }
    .cookie-bar .button-container {
      justify-content: center;
    }
}

/* Tablet portrait — pipeline & hero adjustments */
@media only screen and (min-width: 768px) and (max-width: 1050px) {
    .pipeline-showcase {
        top: 0;
        bottom: 40vh;
        height: auto;
    }
    .pipeline-card {
        width: 28vw;
        left: calc(50% - 14vw + (var(--card-index) - 1.5) * 5vw);
        top: calc(50% + (var(--card-index) - 1.5) * 6vw);
        transform: translateY(-50%);
    }
    .text-content {
        justify-content: flex-end;
        padding: 0 5vw 8rem 5vw;
    }
    .text-content h1 {
        font-size: 4.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-credibility {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    .hero-credibility .cred-sep {
        display: inline;
    }
}

/* Small phones — short screens */
@media only screen and (max-width: 1050px) and (max-height: 700px) {
    .pipeline-showcase {
        bottom: 55vh;
    }
    .pipeline-card {
        width: 45vw;
        left: calc(50% - 22.5vw + (var(--card-index) - 1.5) * 7vw);
        top: calc(50% + (var(--card-index) - 1.5) * 10vw);
    }
    .text-content h1 {
        font-size: 2rem;
    }
    .text-content {
        padding-bottom: 4rem;
    }
}

/* Mobile styles - up to 750px */
@media only screen and (min-width: 0px) and (max-width: 750px) {
  .button-content a {
      font-size: 0.85rem;
      padding: 0.75rem 1.75rem;
  }
  .cookie-bar {
    bottom: 1rem;
  }
}

/* Sub-400px — prevent project card horizontal overflow */
@media (max-width: 600px) {
  .project-card {
    width: 100%;
    min-width: 0;
  }
}

/* Software Logos */
.software-logos {
  text-align: center;
  margin-top: 3rem;
}

.software-logos h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  text-align: center;
}

.logos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.software-logo {
  height: 2.5rem;
  width: auto;
  transition: transform 0.3s ease;
}

.software-logo:hover {
  transform: scale(1.1);
}

/*=============================================
=            Keyboard Focus States            =
=============================================*/

:focus-visible {
  outline: 2px solid rgba(0,210,190,0.7);
  outline-offset: 2px;
}

/*=============================================
=            SPA Transitions                  =
=============================================*/

main { transition: opacity 0.2s ease; }
main.spa-out { opacity: 0; pointer-events: none; }

#spa-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: rgb(0, 210, 190);
  z-index: 9999;
  transition: width 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}
#spa-progress.active { opacity: 1; width: 70%; }
#spa-progress.done   { width: 100%; opacity: 0; }

/*=============================================
=            Projects Filter                  =
=============================================*/

.projects-filter {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.25rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  color: rgb(0, 210, 190);
  border-color: rgb(0, 210, 190);
}

/* Suppress intro animations when revisiting home via SPA */
body.spa-revisit header.main-page ul li {
  visibility: visible;
  opacity: 1;
  animation: none;
}

body.spa-revisit header.main-page nav ul::before {
  animation: none;
  -webkit-mask-position: left;
  mask-position: left;
}

body.spa-revisit .text-content h1,
body.spa-revisit .button-content a {
  visibility: visible;
  animation: none;
}

body.spa-revisit .hero-subtitle {
  visibility: visible;
  animation: none;
}

body.spa-revisit .hero-credibility .cred-item,
body.spa-revisit .hero-credibility .cred-sep {
  opacity: 1;
  transform: none;
  animation: none;
}

/*=============================================
=            Project Navigation               =
=============================================*/

.project-nav {
  width: 65vw;
  max-width: 75rem;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 4rem auto 0;
  border-top: 1px solid var(--border);
  gap: 0;
}

.project-nav-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
  max-width: 46%;
  border-bottom: 1px solid var(--border);
}

.project-nav-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255,255,255,0.03);
}

.project-nav-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.project-nav-btn:hover svg {
  opacity: 1;
}

.project-nav-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
}

.project-nav-title {
  font-size: 1rem;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-nav-next {
  margin-left: auto;
}

.project-nav-next .project-nav-info {
  text-align: right;
}

.project-nav-spacer {
  flex: 1;
}

@media (max-width: 767px) {
  .project-nav {
    width: 90%;
  }

  .project-nav-btn {
    max-width: 48%;
    padding: 1.5rem 1rem;
    gap: 0.75rem;
  }

  .project-nav-title {
    font-size: 0.875rem;
  }
}

/*=============================================
=            Lightbox                         =
=============================================*/

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-img {
  position: relative;
  width: 90vw;
  height: 80vh;
  object-fit: contain;
  z-index: 1;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.hero-image-container img,
.slide img,
.project-images img {
  cursor: zoom-in;
}

/*=============================================
=            Back to Top                      =
=============================================*/

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s, border-color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
}

/*=============================================
=            Project Transition               =
=============================================*/

.project-transition-overlay {
  will-change: transform, opacity;
}

/*=============================================
=            Lightbox / Back-to-top Mobile    =
=============================================*/

@media (max-width: 1024px) {
  .lightbox {
    flex-wrap: wrap;
    align-content: center;
    gap: 1rem;
    padding: 3.5rem 1rem 1.5rem;
  }

  .lightbox-img {
    width: 95vw;
    height: 65vh;
    width: 100%;
    order: 0;
  }

  .lightbox-arrow {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .lightbox-prev {
    left: auto;
    order: 1;
    margin-left: auto;
  }

  .lightbox-counter {
    position: static;
    transform: none;
    order: 2;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
  }

  .lightbox-next {
    right: auto;
    order: 3;
    margin-right: auto;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

/*=============================================
=            Reduced Motion                   =
=============================================*/

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
