:root {
  color-scheme: dark;
  --cursor-size: 140px;
}

body {
  background-color: #0f0f0f;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(15, 15, 15, 0.92);
  border-top: 1px solid rgba(248, 248, 248, 0.06);
}

.mobile-menu.open {
  display: flex;
}

.brand-mark {
  font-family: 'Dancing Script', 'Playfair Display', cursive;
  font-weight: 600;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  color: #f8f8f8;
  letter-spacing: 0.06em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-mark::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(212, 175, 55, 0.4);
  transform-origin: left;
  transform: scaleX(0.6);
  filter: blur(0.2px);
}

.brand-mark:hover::after,
.brand-mark:focus-visible::after {
  background: rgba(212, 175, 55, 0.8);
  transform: scaleX(1);
}

#mobile-menu-toggle {
  background: #ffffff;
  border-color: rgba(248, 248, 248, 0.75);
  color: #0f0f0f;
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, color 0.3s ease, background 0.3s ease;
}

#mobile-menu-toggle:hover,
#mobile-menu-toggle:focus-visible {
  background: #ffffff;
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 18px 38px rgba(212, 175, 55, 0.18);
}

#mobile-menu-toggle .menu-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: background 0.3s ease;
}

#mobile-menu-toggle .menu-icon::before,
#mobile-menu-toggle .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.3s ease, background 0.3s ease, top 0.3s ease;
}

#mobile-menu-toggle .menu-icon::before {
  top: -6px;
}

#mobile-menu-toggle .menu-icon::after {
  top: 6px;
}

#mobile-menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

#mobile-menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

#mobile-menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-link {
  color: rgba(248, 248, 248, 0.65);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.7rem;
  transition: color 0.3s ease;
}

.mobile-link:hover,
.mobile-link:focus-visible {
  color: #d4af37;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  transform: scale(1.08);
}

.hero-slideshow .slide.active {
  opacity: 1;
  transform: scale(1.02);
}

.behind-lens-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

@supports not (aspect-ratio: 1 / 1) {
  .behind-lens-slideshow {
    padding-top: 133.333%;
  }
}

.behind-lens-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.behind-lens-frame.is-active {
  opacity: 1;
  transform: scale(1.01);
}

.hero-title {
  letter-spacing: 0.18em;
}

.cta-primary,
.cta-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2.6rem;
  border-radius: 999px;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  text-transform: uppercase;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.cta-primary {
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.9), rgba(196, 155, 102, 0.8));
  color: #0f0f0f;
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.18);
}

.cta-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(212, 175, 55, 0.28);
}

.cta-primary:hover::after,
.cta-primary:focus-visible::after {
  opacity: 1;
}

.cta-secondary {
  border: 1px solid rgba(248, 248, 248, 0.2);
  color: rgba(248, 248, 248, 0.85);
  background: rgba(15, 15, 15, 0.2);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f8f8f8;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.18);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 45px;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 0.4rem 0;
  border: 1px solid rgba(248, 248, 248, 0.25);
  background: rgba(15, 15, 15, 0.18);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
  overflow: hidden;
  --comet-duration: 1.9s;
  transition: border 0.3s ease, transform 0.3s ease;
}

.scroll-indicator::before,
.scroll-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  z-index: 0;
}

.scroll-indicator::before,
.scroll-indicator::after,
.scroll-indicator span::after {
  background: none;
}

.scroll-indicator::before {
  top: 8px;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 239, 210, 0.8) 0%, rgba(212, 175, 55, 0.3) 45%, rgba(212, 175, 55, 0) 70%);
  filter: blur(0.2px);
  animation: cometCore var(--comet-duration) ease-in-out infinite;
}

.scroll-indicator::after {
  top: 10px;
  width: 10px;
  height: 150px;
  transform: translate(-50%, -60%);
  background: linear-gradient(180deg, rgba(255, 244, 220, 0.95) 0%, rgba(255, 224, 175, 0.55) 45%, rgba(212, 175, 55, 0.25) 80%, rgba(212, 175, 55, 0) 100%);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.32);
  filter: blur(0.6px);
  opacity: 0.15;
  animation: cometTail var(--comet-duration) ease-in-out infinite;
}

.scroll-indicator__chevron::after { content: ""; }

.scroll-indicator .scroll-indicator__chevron::after {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 228, 190, 0.35) 55%, rgba(212, 175, 55, 0) 80%);
  filter: blur(0.4px);
  opacity: 0;
  animation: cometSpark var(--comet-duration) ease-in-out infinite;
}

.scroll-indicator .scroll-indicator__chevron:nth-child(2)::after {
  animation-delay: 80ms;
}

.scroll-indicator .scroll-indicator__chevron:nth-child(3)::after {
  animation-delay: 160ms;
}

.scroll-indicator--small {
  position: static;
  transform: none;
  margin: 0 auto;
}

.scroll-indicator__chevron {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 12px;
  border-bottom: 1px solid rgba(248, 248, 248, 0.6);
  border-right: 1px solid rgba(248, 248, 248, 0.6);
  transform: rotate(45deg);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-indicator__chevron:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-indicator__chevron:nth-child(3) {
  animation-delay: 0.4s;
}

.scroll-indicator:hover,
.scroll-indicator:focus-visible {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translate(-50%, 6px);
}

.scroll-indicator--small:hover,
.scroll-indicator--small:focus-visible {
  transform: translateY(3px);
}

@keyframes scrollPulse {
  0%,
  50%,
  100% {
    opacity: 0.2;
    transform: translateY(-2px) rotate(45deg);
  }
  25% {
    opacity: 1;
    transform: translateY(6px) rotate(45deg);
  }
}

@keyframes cometCore {
  0% {
    transform: translate(-50%, -45%) scale(0.35);
    opacity: 0;
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -10%) scale(1);
  }
  100% {
    transform: translate(-50%, 110%) scale(0.55);
    opacity: 0;
  }
}

@keyframes cometTail {
  0% {
    transform: translate(-50%, -65%) scaleY(0.1);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, 120%) scaleY(1.2);
    opacity: 0;
  }
}

@keyframes cometSpark {
  0% {
    transform: translate(-50%, -35%) scale(0.3);
    opacity: 0;
  }
  45% {
    transform: translate(-50%, 0%) scale(0.85);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 110%) scale(0.2);
    opacity: 0;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease, transform 1s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-lens-flare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 242, 215, 0.2),
      transparent 55%
    ),
    radial-gradient(circle at 80% 80%, rgba(255, 200, 150, 0.15), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(248, 248, 248, 0.05);
  background: rgba(15, 15, 15, 0.4);
  transition: transform 0.8s ease, box-shadow 0.8s ease;
}

.feature-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.5s ease;
}

.feature-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.75) 80%);
  pointer-events: none;
}

.feature-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 2rem;
  color: rgba(248, 248, 248, 0.88);
}

.feature-card__title {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.18em;
  font-size: 1.25rem;
}

.feature-card__subtitle {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(248, 248, 248, 0.65);
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-12px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.feature-card:hover .feature-card__image,
.feature-card:focus-visible .feature-card__image {
  transform: scale(1.12);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: rgba(248, 248, 248, 0.7);
  transition: color 0.35s ease, gap 0.35s ease;
}

.link-arrow::after {
  content: "→";
  font-size: 0.9rem;
  transform: translateX(0);
  transition: transform 0.35s ease;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: #d4af37;
  gap: 1rem;
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: translateX(4px);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  background: transparent;
  border: none;
}

.gallery-image {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: none;
  transition: transform 0.45s ease;
  transform: scale(1);
}

[data-focus-reveal] .gallery-image {
  opacity: 1;
  transform: scale(1);
  filter: none;
  transition: transform 0.45s ease;
}

.gallery-item::after {
  content: none;
}

[data-focus-reveal]::after {
  opacity: 0;
}

.gallery-image:hover,
.gallery-image:focus-visible {
  transform: scale(1.06);
  filter: saturate(1.02) brightness(1.05);
}

[data-focus-reveal].is-focused .gallery-image {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

[data-focus-reveal].is-focused::after {
  opacity: 0;
}

.gallery-horizontal {
  display: grid;
  grid-auto-flow: column;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 248, 248, 0.2) rgba(15, 15, 15, 0.4);
}

.gallery-horizontal.is-dragging {
  cursor: grabbing;
}

.portfolio-project {
  position: relative;
}

.project-header {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.8rem, 6vw, 4.6rem);
}

.project-story {
  max-width: 56ch;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(248, 248, 248, 0.62);
}

.project-header .font-heading {
  letter-spacing: 0.16em;
}

.project-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.project-carousel__viewport {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(248, 248, 248, 0.06);
  background: rgba(15, 15, 15, 0.55);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  outline: none;
}

.project-carousel__viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.project-carousel__viewport .gallery-item {
  grid-area: 1 / 1;
  margin: 0;
  aspect-ratio: 3 / 2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(3%) scale(1.04);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-carousel__viewport .gallery-image {
  height: 100%;
}

.project-carousel__viewport .gallery-item.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.project-carousel__viewport .gallery-item::after {
  opacity: 0;
}

.project-carousel__viewport .gallery-item.is-active::after {
  opacity: 1;
  transition-delay: 0.35s;
}

.project-carousel__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(248, 248, 248, 0.15);
  background: rgba(15, 15, 15, 0.4);
  color: rgba(248, 248, 248, 0.75);
  font-size: 1.7rem;
  transition: transform 0.3s ease, border 0.3s ease, color 0.3s ease;
  z-index: 5;
}

.project-carousel__control:hover,
.project-carousel__control:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f8f8f8;
}

.project-carousel__status {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(248, 248, 248, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 248, 248, 0.7);
  pointer-events: none;
}

.project-carousel__status-divider {
  opacity: 0.45;
}

@media (max-width: 1024px) {
  .project-carousel {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .project-carousel__control {
    display: none;
  }

  .project-carousel__status {
    right: 1rem;
  }
@media (min-width: 1024px) {
  .project-gallery--elliptical {
    margin-top: clamp(5rem, 6vw, 6.5rem);
  }

  .elliptical-carousel {
    padding-top: clamp(5.2rem, 6vw, 6.8rem);
  }
}
}

.project-gallery {
  position: relative;
}

.project-gallery--elliptical {
  --carousel-height: clamp(320px, 48vw, 420px);
  --carousel-radius: clamp(420px, 52vw, 640px);
  --carousel-tilt: 0deg;
  --carousel-transition-duration: 900ms;
  padding-inline: clamp(0.5rem, 3vw, 1.5rem);
  margin-top: clamp(3.4rem, 7vw, 5.2rem);
  isolation: isolate;
}

.elliptical-carousel {
  position: relative;
  padding-block: clamp(3.8rem, 7vw, 5.6rem) clamp(1.2rem, 3vw, 2rem);
}

.elliptical-carousel::before {
  content: "";
  position: absolute;
  inset: clamp(-1.4rem, -3vw, -2.6rem) clamp(15%, 20vw, 22%) auto clamp(15%, 20vw, 22%);
  height: clamp(180px, 24vw, 220px);
  background: radial-gradient(ellipse at center, rgba(61, 61, 61, 0.45) 0%, rgba(15, 15, 15, 0) 70%);
  filter: blur(42px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

.elliptical-carousel::after {
  content: "";
  position: absolute;
  inset: clamp(-1.2rem, -2.4vw, -1.8rem) clamp(10%, 14vw, 16%) clamp(-0.4rem, -1vw, 0rem) clamp(10%, 14vw, 16%);
  border-radius: clamp(2.4rem, 8vw, 5rem);
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(24px);
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.38));
  z-index: -1;
  pointer-events: none;
}

.elliptical-carousel__viewport {
  position: relative;
  display: block;
  width: 100%;
  height: var(--carousel-height);
  perspective: 1400px;
  transform-style: preserve-3d;
  outline: none;
  z-index: 1;
}

.elliptical-carousel__viewport:focus-visible {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45);
  border-radius: 32px;
}

.elliptical-carousel__viewport::-webkit-scrollbar {
  height: 6px;
}

.elliptical-carousel__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transform: rotateX(var(--carousel-tilt)) rotateY(var(--rotation, 0deg));
  transition: transform var(--carousel-transition-duration) cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.elliptical-carousel__item {
  --item-angle: calc(360deg / var(--total-items, 7));
  --item-index: 0;
  --item-scale: 0.8;
  --item-opacity: 0.45;
  --item-translate-y: 0px;
  --item-blur: 1.6px;
  --item-saturation: 0.85;
  --item-depth: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(440px, 56vw);
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 15, 15, 0.6);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  transform-style: preserve-3d;
  transform: translate3d(-50%, -50%, 0)
    rotateY(calc(var(--item-index) * var(--item-angle)))
    translateZ(var(--carousel-radius))
    translateY(var(--item-translate-y))
    translateX(calc(var(--item-depth) * -22px))
    translateX(var(--item-offset-x, 0px))
    rotateX(var(--item-face-tilt, 0deg))
    scale(var(--item-scale));
  opacity: var(--item-opacity);
  filter: saturate(var(--item-saturation)) blur(var(--item-blur));
  transition:
    transform var(--carousel-transition-duration) cubic-bezier(0.23, 1, 0.32, 1),
    opacity 380ms ease,
    filter 380ms ease,
    box-shadow 380ms ease;
  pointer-events: none;
}

.elliptical-carousel__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.08) 18%, rgba(12, 12, 12, 0.08) 82%, rgba(12, 12, 12, 0.55) 100%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: -1;
}

.elliptical-carousel__item:not(.is-active)::before {
  opacity: 0.75;
}

.elliptical-carousel__item.is-active {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.46);
  pointer-events: auto;
}

.elliptical-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.elliptical-carousel__controls {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 2.2rem);
}

.elliptical-carousel__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 248, 248, 0.16);
  background: rgba(15, 15, 15, 0.45);
  color: rgba(248, 248, 248, 0.82);
  font-size: 1.35rem;
  transition: transform 260ms ease, color 260ms ease, border 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.elliptical-carousel__control:hover,
.elliptical-carousel__control:focus-visible {
  color: #f8f8f8;
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(212, 175, 55, 0.22);
}

.elliptical-carousel__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 248, 248, 0.12);
  background: rgba(15, 15, 15, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(248, 248, 248, 0.7);
}

.elliptical-carousel__status-divider {
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .project-gallery--elliptical {
    --carousel-height: clamp(280px, 74vw, 420px);
    --carousel-radius: clamp(320px, 58vw, 480px);
  }
}

@media (max-width: 768px) {
  .project-gallery--elliptical {
    --carousel-height: auto;
  }

  .elliptical-carousel::before {
    display: none;
  }

  .elliptical-carousel__viewport {
    perspective: none;
    height: auto;
    overflow-x: auto;
    padding-bottom: 1.2rem;
    scroll-snap-type: x mandatory;
  }

  .elliptical-carousel__stage {
    position: relative;
    display: flex;
    gap: 1rem;
    transform: none !important;
  }

  .elliptical-carousel__item {
    position: relative;
    top: auto;
    left: auto;
    width: min(360px, 92vw);
    aspect-ratio: 4 / 3;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto;
    scroll-snap-align: center;
  }

  .elliptical-carousel {
    padding-bottom: clamp(3.2rem, 12vw, 4.4rem);
  }

  .elliptical-carousel__controls {
    position: absolute;
    bottom: clamp(0.6rem, 2.8vw, 1.4rem);
    left: clamp(0.8rem, 4vw, 2.6rem);
    right: clamp(0.8rem, 4vw, 2.6rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    pointer-events: none;
  }

  .elliptical-carousel__control {
    width: clamp(2.6rem, 10vw, 3.1rem);
    height: clamp(2.6rem, 10vw, 3.1rem);
    font-size: clamp(1rem, 6vw, 1.25rem);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .elliptical-carousel__status {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elliptical-carousel__stage,
  .elliptical-carousel__item {
    transition: none !important;
  }
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-gallery__grid .gallery-item {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
}

.project-gallery__grid .gallery-image {
  aspect-ratio: 3 / 2;
}

.project-gallery__grid figure:nth-child(2) {
  transform: translateY(32px);
}

.project-gallery__grid figure:nth-child(3) {
  transform: translateY(16px);
}

.project-gallery__grid figure {
  transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.project-gallery__grid figure[data-gallery-hidden] {
  display: none;
}

.project-gallery__grid figure:hover,
.project-gallery__grid figure:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  .project-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery__grid figure:nth-child(2),
  .project-gallery__grid figure:nth-child(3) {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .project-gallery__grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .project-gallery__grid figure {
    transform: none !important;
  }

  .project-gallery__grid .gallery-image {
    aspect-ratio: 4 / 3;
  }
}



.gallery-horizontal::-webkit-scrollbar {
  height: 6px;
}

.gallery-horizontal::-webkit-scrollbar-track {
  background: rgba(15, 15, 15, 0.4);
}

.gallery-horizontal::-webkit-scrollbar-thumb {
  background: rgba(248, 248, 248, 0.2);
  border-radius: 999px;
}

.horizontal-frame {
  position: relative;
  overflow: hidden;
  width: min(480px, 90vw);
  border-radius: 28px;
  border: 1px solid rgba(248, 248, 248, 0.05);
  background: rgba(15, 15, 15, 0.35);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.horizontal-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.horizontal-frame__caption {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.horizontal-frame__caption h4 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.horizontal-frame__caption p {
  font-size: 0.85rem;
  color: rgba(248, 248, 248, 0.65);
}

.horizontal-frame:hover,
.horizontal-frame:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.horizontal-frame:hover img,
.horizontal-frame:focus-visible img {
  transform: scale(1.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  padding: 2rem;
  z-index: 100;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  position: relative;
  max-width: min(1248px, 95vw);
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(248, 248, 248, 0.08);
  background: rgba(15, 15, 15, 0.85);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(248, 248, 248, 0.18);
  background: rgba(15, 15, 15, 0.55);
  color: rgba(248, 248, 248, 0.82);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease, color 0.3s ease;
  z-index: 2;
}

.lightbox__nav--prev {
  left: 1.6rem;
}

.lightbox__nav--next {
  right: 1.6rem;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.2);
  color: #f8f8f8;
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(80vh, 884px);
  object-fit: contain;
  margin: 0 auto;
}

.lightbox__caption {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lightbox--no-caption .lightbox__caption {
  display: none;
}

.lightbox__title {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.18em;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.lightbox__description {
  font-size: 0.95rem;
  color: rgba(248, 248, 248, 0.65);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(248, 248, 248, 0.2);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: rgba(248, 248, 248, 0.8);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.35s ease, border 0.35s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  transform: scale(1.08);
  border-color: rgba(212, 175, 55, 0.6);
  color: #f8f8f8;
}

@media (max-width: 768px) {
  .lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
    background: rgba(15, 15, 15, 0.65);
  }

  .lightbox__nav--prev {
    left: 0.6rem;
  }

  .lightbox__nav--next {
    right: 0.6rem;
  }
}

.about-pill {
  border-radius: 28px;
  border: 1px solid rgba(248, 248, 248, 0.06);
  padding: 1.8rem;
  background: rgba(15, 15, 15, 0.35);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, border 0.4s ease;
}

.about-pill h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.about-pill:hover,
.about-pill:focus-within {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.5);
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 248, 248, 0.18);
  background: rgba(15, 15, 15, 0.35);
  color: rgba(248, 248, 248, 0.75);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.7rem;
  transition: transform 0.35s ease, border 0.35s ease, color 0.35s ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible,
.audio-toggle.is-active {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f8f8f8;
}

.audio-toggle__icon {
  font-size: 1.1rem;
}

.contact-form {
  border-radius: 32px;
  border: 1px solid rgba(248, 248, 248, 0.08);
  background: rgba(15, 15, 15, 0.68);
  padding: 2.8rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 45px 90px rgba(0, 0, 0, 0.45);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-field span {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  color: rgba(248, 248, 248, 0.5);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(15, 15, 15, 0.45);
  border: 1px solid rgba(248, 248, 248, 0.1);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  color: rgba(248, 248, 248, 0.88);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:hover,
.form-field input:focus,
.form-field select:hover,
.form-field select:focus,
.form-field textarea:hover,
.form-field textarea:focus {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-feedback {
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  color: rgba(212, 175, 55, 0.7);
}

.bio-social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.bio-social-links__label {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.68rem;
  color: rgba(248, 248, 248, 0.6);
}

.bio-social-links__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.bio-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid rgba(248, 248, 248, 0.12);
  background: rgba(15, 15, 15, 0.4);
  color: rgba(248, 248, 248, 0.78);
  transition: transform 0.35s ease, border 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.bio-social-link svg {
  width: 1.35rem;
  height: 1.35rem;
}

.bio-social-link:hover,
.bio-social-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.65);
  color: rgba(248, 248, 248, 0.95);
  background: rgba(15, 15, 15, 0.65);
}

@media (max-width: 640px) {
  .bio-social-links__icons {
    gap: 0.75rem;
.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;
}
  }
  .bio-social-link {
    width: 3rem;
    height: 3rem;
  }
}

.contact-social-panel {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 3rem;
  border-radius: 32px;
  border: 1px solid rgba(248, 248, 248, 0.08);
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.35));
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.contact-social-panel::before {
  content: "";
  position: absolute;
  inset: auto -25% -35% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.45) 0%, transparent 70%);
  opacity: 0.12;
  transform: rotate(18deg);
  z-index: -1;
}

.contact-social-panel__intro {
  display: grid;
  gap: 1rem;
}

.contact-social-panel__links {
  display: grid;
  gap: 1rem;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem 1.6rem;
  border-radius: 26px;
  border: 1px solid rgba(248, 248, 248, 0.08);
  background: rgba(15, 15, 15, 0.45);
  transition: transform 0.4s ease, border 0.4s ease, background 0.4s ease;
  color: inherit;
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(15, 15, 15, 0.65);
}

.contact-social-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: transform 0.4s ease;
}

.contact-social-link:hover .contact-social-link__icon,
.contact-social-link:focus-visible .contact-social-link__icon {
  transform: scale(1.05);
}

.contact-social-link__icon svg {
  width: 26px;
  height: 26px;
}

.contact-social-link__meta {
  display: grid;
  gap: 0.25rem;
}

.contact-social-link__label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(248, 248, 248, 0.82);
}

.contact-social-link__handle {
  font-size: 0.85rem;
  color: rgba(248, 248, 248, 0.6);
}

.contact-social-link__arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: rgba(248, 248, 248, 0.45);
  transition: transform 0.4s ease, color 0.4s ease;
}

.contact-social-link:hover .contact-social-link__arrow,
.contact-social-link:focus-visible .contact-social-link__arrow {
  transform: translateX(6px);
  color: rgba(248, 248, 248, 0.85);
}

@media (max-width: 1024px) {
  .contact-social-panel {
    padding: 2.4rem;
    gap: 1.6rem;
  }
}

@media (max-width: 768px) {
  .contact-social-link {
    gap: 1rem;
    padding: 1.25rem 1.4rem;
  }
  .contact-social-link__icon {
    width: 52px;
    height: 52px;
  }
  .contact-social-link__label {
    letter-spacing: 0.26em;
  }
}

@media (max-width: 640px) {
  .contact-social-panel {
    padding: 2rem;
  }
  .contact-social-link {
    justify-content: flex-start;
  }
}

#cursor-glow {
  position: fixed;
  width: var(--cursor-size);
  height: var(--cursor-size);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 65%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.1s ease;
  z-index: 70;
}

body.cursor-active #cursor-glow {
  opacity: 0.6;
}

#cursor-glow.is-highlighted {
  background: radial-gradient(circle, rgba(255, 220, 170, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(0.5px);
}

.lazy-image {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 1s ease, filter 1s ease;
}

.lazy-image.is-loaded {
  opacity: 1;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slideshow .slide {
    transition: none;
  }
  .cta-primary,
  .cta-secondary,
  .feature-card,
  .gallery-image,
  .horizontal-frame {
    transition: none;
  }
}

.word-fragment,
.line-fragment {
  opacity: 0;
  transform: translateY(12px);
  display: inline-block;
  animation: wordReveal 0.85s ease forwards;
}


.word-fragment--full {
  display: inline-block;
  font-family: 'Playfair Display', 'Inter', cursive;
  font-style: italic;
  font-size: 1.05em;
  letter-spacing: 0.03em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.word-fragment--full::first-letter {
  font-size: 1.18em;
  color: rgba(212, 175, 55, 0.85);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.word-fragment--full {
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.line-fragment {
  display: block;
}

@keyframes wordReveal {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .horizontal-frame img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .cta-primary,
  .cta-secondary {
    letter-spacing: 0.32em;
    font-size: 0.68rem;
    padding: 0.85rem 1.8rem;
  }
  .feature-card__content {
    padding: 2rem 1.6rem;
  }
  .horizontal-frame {
    width: min(360px, 85vw);
  }
  .project-carousel {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-carousel__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    backdrop-filter: blur(6px);
  }
  .project-carousel__control--prev {
    left: 0.75rem;
  }
  .project-carousel__control--next {
    right: 0.75rem;
  }
  .project-carousel__status {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 640px) {
  .contact-form {
    padding: 2.2rem;
  }
  .hero-title {
    letter-spacing: 0.12em;
  }
}
