:root {
  --bg: #040404;
  --panel: #0e0e0e;
  --text: #f5f1ea;
  --muted: #a4a4a4;
  --line: rgba(255, 255, 255, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 2rem;
  transition: all 0.3s ease;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(0px);
}

.site-header.is-sticky {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.logo,
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: transparent;
  border: none;
  padding: 0;
}

.logo {
  animation: logoReveal 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.logo:hover,
.hero-brand:hover {
  transform: translateY(-2px);
}

.site-header .logo:hover,
.site-header .logo:focus-visible {
  transform: scale(1.05);
}

.site-logo {
  display: block;
  height: clamp(84px, 9vw, 112px);
  width: auto;
  object-fit: contain;
  animation: headerLogoFloat 3.2s ease-in-out infinite;
  opacity: 1;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  border: 0 !important;
  padding: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(0, 0, 0, 0.24);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f7efe9;
  animation: logoFloat 3.4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  animation: logoTextGlow 3.6s ease-in-out infinite;
}

.logo-title {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f7efe9;
}

.logo-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d7b48a;
}

.hero-brand .logo-mark {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  font-size: 1.05rem;
}

.hero-brand .logo-title {
  font-size: 0.82rem;
}

.hero-brand .logo-subtitle {
  font-size: 1.4rem;
  letter-spacing: 0.3em;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerLogoFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(0, 0, 0, 0.24);
  }
  50% {
    transform: translateY(-3px) rotate(-1.4deg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 34px rgba(0, 0, 0, 0.3);
  }
}

@keyframes logoTextGlow {
  0%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 0.94;
    transform: translateX(1px);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.5rem;
}

.nav-links a {
  position: relative;
  margin-left: 0;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .site-logo {
    height: clamp(46px, 8vw, 58px);
  }

  .nav-links {
    gap: 0.6rem 0.9rem;
  }

  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.35rem;
  }

  .hero-content {
    padding: clamp(4rem, 15vh, 6rem) 1rem 4rem;
    margin-top: 3rem;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
 object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(0.84) brightness(0.74) contrast(1.1);
  transition: opacity 1.9s ease, transform 2.1s ease, filter 1.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.01);
  filter: saturate(0.98) brightness(0.86) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.11), transparent 22%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.78) 100%);
  mix-blend-mode: normal;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 860px);
  padding: clamp(5rem, 18vh, 9rem) 2rem 7rem;
  text-align: left;
  isolation: isolate;
  margin-right: auto;
  margin-top: 5rem;
  align-self: end;
}

.hero-content .eyebrow,
.hero-content .hero-brand,
.hero-content .hero-copy,
.hero-content .button {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero h1 {
  text-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
}

.hero .eyebrow {
  color: rgba(220, 95, 95, 0.9);
  letter-spacing: 0.32em;
  font-size: 0.68rem;
  margin-bottom: 0.95rem;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-content .eyebrow { animation-delay: 0.1s; }
.hero-content h1 { animation-delay: 0.4s; }
.hero-content .hero-copy { animation-delay: 0.7s; }
.hero-content .button { animation-delay: 1s; }
.hero-content .hero-brand {
  animation: heroFadeUp 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards, logoFloat 3.6s ease-in-out 0.8s infinite;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-card h2 {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.02;
  margin-bottom: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #f7f0ee;
  text-shadow: 0 0 32px rgba(220, 95, 95, 0.16);
}

.hero-copy {
  max-width: 34rem;
  font-size: 0.95rem;
  color: rgba(244, 232, 228, 0.9);
  margin-bottom: 1.7rem;
  line-height: 1.72;
  font-weight: 300;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.alt-section {
  background: rgba(255, 255, 255, 0.02);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 2.2rem;
}

.section-heading h2,
.about-copy h2,
.contact-card h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  max-width: 44rem;
}

.projects-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.35rem;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020202;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.48) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.project-media img,
.project-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-media img {
  transition: transform 0.7s ease, opacity 0.3s ease, filter 0.3s ease;
  z-index: 0;
}

.project-media video {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
  z-index: 2;
  pointer-events: none;
  box-shadow: none;
  will-change: transform, opacity;
}

.project-media:hover img {
  transform: scale(1.08);
  filter: brightness(0.68) saturate(0.82) contrast(1.08);
}

.project-media:hover .project-video,
.project-card.is-video-playing .project-media video {
  opacity: 1;
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.project-media:hover::after,
.project-card.is-video-playing .project-media::after {
  opacity: 0.2;
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-card:hover .project-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover .project-badge {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  flex: 1;
}

.card-meta {
  margin-bottom: 0;
}

.card-body h3 {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.card-body p {
  color: #d0d0d0;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.card-meta {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.card-body h3 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-body p {
  color: #d0d0d0;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.card-link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 1.4rem;
}

.about-copy p {
  margin-top: 1rem;
  color: #cfcfcf;
  max-width: 46rem;
  line-height: 1.85;
  font-size: 1rem;
}

.about-visual {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: contain;
  filter: grayscale(100%) contrast(110%);
  display: block;
}

.about-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: #e6e3dd;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.contact-card {
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.contact-card p {
  margin-top: 1rem;
  color: #d0d0d0;
}

.contact-list {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

footer {
  background: #020202;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 0 2.4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: grid;
  gap: 0.35rem;
}

.footer-title {
  color: var(--text);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-subtitle,
.footer-brand a,
.footer-copy {
  color: var(--muted);
}

.footer-brand a:hover {
  color: var(--text);
}

.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1200;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.82);
  color: var(--text);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--text);
  color: var(--bg);
}
