:root {
  --bg: #07090c;
  --bg-soft: #0d1218;
  --surface: #111821;
  --surface-strong: rgba(8, 11, 15, 0.92);
  --card: #f6f1e8;
  --text: #f1eee7;
  --muted: #b9c1ca;
  --dark-text: #1b242d;
  --line: rgba(214, 190, 145, 0.14);
  --accent: #b8945a;
  --accent-strong: #e3c48f;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1180px;
  --gutter: clamp(1rem, 3vw, 1.5rem);
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --space-hero-top: clamp(5rem, 8vw, 7rem);
  --space-hero-bottom: clamp(3rem, 6vw, 5rem);
  --space-stack: clamp(1rem, 2vw, 1.5rem);
  --space-grid: clamp(1rem, 2vw, 1.4rem);
  --space-card: clamp(1.1rem, 2vw, 1.6rem);
  --font-body: "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-heading: "Montserrat", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #f4efe7;
  --bg-soft: #ebe3d6;
  --surface: #fffdfa;
  --surface-strong: rgba(255, 252, 246, 0.97);
  --card: #182028;
  --text: #1b242d;
  --muted: #635d54;
  --dark-text: #f7f2ea;
  --line: rgba(140, 111, 66, 0.14);
  --accent: #9e7740;
  --accent-strong: #7f5f30;
  --shadow: 0 28px 60px rgba(73, 52, 26, 0.12);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at top, rgba(184, 148, 90, 0.11), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(95, 82, 61, 0.07), transparent 24%),
    linear-gradient(180deg, #f4efe7 0%, #fbf8f2 48%, #efe7db 100%);
}

[data-theme="light"] body::after {
  opacity: 0.018;
  filter: invert(1);
}

[data-theme="light"] .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

[data-theme="light"] .site-header.is-scrolled {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

[data-theme="light"] .nav-shell {
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(248, 240, 229, 0.86)),
    rgba(255, 255, 255, 0.76);
  border-color: rgba(158, 119, 64, 0.24);
  box-shadow: 0 24px 54px rgba(83, 62, 34, 0.12);
}

[data-theme="light"] .nav-shell::before {
  background: linear-gradient(90deg, rgba(176, 141, 85, 0.2), rgba(176, 141, 85, 0.7), rgba(176, 141, 85, 0.2));
}

[data-theme="light"] .brand-mark {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.18) 62%),
    linear-gradient(145deg, rgba(176, 141, 85, 0.18), rgba(176, 141, 85, 0.04));
  border-color: rgba(176, 141, 85, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 12px 24px rgba(176, 141, 85, 0.12);
}

[data-theme="light"] .site-nav {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(176, 141, 85, 0.16);
}

[data-theme="light"] .site-nav a::before {
  background: rgba(176, 141, 85, 0.18);
}

[data-theme="light"] .nav-cta {
  border-color: transparent;
}

[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(244, 239, 231, 0.96) 0%, rgba(244, 239, 231, 0.72) 48%, rgba(244, 239, 231, 0.32) 100%),
    linear-gradient(180deg, rgba(244, 239, 231, 0.1) 0%, rgba(244, 239, 231, 0.68) 100%);
}

[data-theme="light"] .hero-media img {
  opacity: 0.45;
}

[data-theme="light"] .hero-text {
  color: #4b5563;
}

[data-theme="light"] .hero-signature {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-signature p {
  color: #4b5563;
}

[data-theme="light"] .hero-panel {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01)),
    rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-panel::before {
  background: linear-gradient(135deg, rgba(197, 164, 109, 0.1), transparent 48%);
}

[data-theme="light"] .hero-panel-item {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-panel-item span {
  color: #4b5563;
}

[data-theme="light"] .hero-stats article {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01)),
    rgba(0, 0, 0, 0.02);
  border-color: var(--line);
}

[data-theme="light"] .hero-stats article:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero-stats span {
  color: #6b7280;
}

[data-theme="light"] .featured {
  background:
    radial-gradient(circle at top right, rgba(197, 164, 109, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
}

[data-theme="light"] .process {
  background:
    radial-gradient(circle at 0% 0%, rgba(197, 164, 109, 0.06), transparent 20%),
    linear-gradient(180deg, rgba(237, 234, 228, 0.92), rgba(245, 243, 239, 0.36));
}

[data-theme="light"] .thumbnail-frame {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01)),
    #edeae4;
}

[data-theme="light"] .thumbnail-frame:hover,
[data-theme="light"] .thumbnail-frame:focus-visible {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01)),
    #edeae4;
}

[data-theme="light"] .project-card .thumbnail-frame img,
[data-theme="light"] .project-card .thumbnail-frame video,
[data-theme="light"] .gallery-item .thumbnail-frame img,
[data-theme="light"] .gallery-item .thumbnail-frame video {
  border-color: rgba(0, 0, 0, 0.1);
  background: #e8e5df;
}

[data-theme="light"] .project-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 245, 0.98)),
    var(--surface);
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .project-copy p {
  color: #6b7280;
}

[data-theme="light"] .process-card {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01)),
    rgba(0, 0, 0, 0.02);
  border-color: var(--line);
}

[data-theme="light"] .process-card:hover,
[data-theme="light"] .process-card:focus-within {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .gallery-item figcaption {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 245, 0.98)),
    var(--surface);
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gallery-item:hover figcaption,
[data-theme="light"] .gallery-item:focus-visible figcaption {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 248, 245, 1)),
    var(--surface);
}

[data-theme="light"] .contact-card {
  background:
    linear-gradient(135deg, rgba(197, 164, 109, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
  border-color: rgba(197, 164, 109, 0.22);
}

[data-theme="light"] .contact-link {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .site-footer {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .lightbox {
  background: rgba(240, 238, 233, 0.88);
}

[data-theme="light"] .lightbox-panel {
  background: #faf8f5;
  border-color: rgba(197, 164, 109, 0.18);
}

[data-theme="light"] .lightbox-image {
  background: #edeae4;
}

[data-theme="light"] .lightbox-copy p {
  color: #4b5563;
}

[data-theme="light"] .lightbox-close {
  background: rgba(245, 243, 239, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

[data-theme="light"] .video-lightbox {
  background: rgba(240, 238, 233, 0.94);
}

[data-theme="light"] .video-lightbox-panel {
  background: var(--surface-strong);
}

[data-theme="light"] .intro-grid::before,
[data-theme="light"] .section-heading::before,
[data-theme="light"] .contact-card::before {
  color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .filter-chip {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--line);
}

[data-theme="light"] .filter-chip:hover,
[data-theme="light"] .filter-chip:focus-visible,
[data-theme="light"] .filter-chip.is-active {
  background: rgba(176, 141, 85, 0.1);
  border-color: rgba(176, 141, 85, 0.35);
  color: #5c4a2a;
}

[data-theme="light"] .video-lightbox-copy strong {
  color: #5c4a2a;
}

[data-theme="light"] .video-lightbox-close {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

[data-theme="light"] .hero-text {
  color: #4b5563;
}

[data-theme="light"] .hero-panel-item strong {
  color: #1b242d;
}

[data-theme="light"] .hero-panel-item span {
  color: #6b7280;
}

[data-theme="light"] .hero-stats strong {
  color: #1b242d;
}

[data-theme="light"] .project-copy p {
  color: #6b7280;
}

[data-theme="light"] .filter-chip.is-active {
  color: #5c4a2a;
}

[data-theme="light"] .gallery-item strong {
  color: #1b242d;
}

[data-theme="light"] .lightbox-copy p {
  color: #4b5563;
}

[data-theme="light"] .lightbox-close {
  color: #1b242d;
}

[data-theme="light"] .video-lightbox-copy strong {
  color: #5c4a2a;
}

[data-theme="light"] .site-nav {
  color: #6b7280;
}

[data-theme="light"] .site-nav a:hover,
[data-theme="light"] .site-nav a:focus-visible {
  color: #1b242d;
}

[data-theme="light"] .brand-copy strong {
  color: #1b242d;
}

[data-theme="light"] .button-secondary {
  border-color: rgba(0, 0, 0, 0.14);
  color: #1b242d;
}

[data-theme="light"] .button-primary {
  color: #fff;
}

[data-theme="light"] .section::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.015) 50%, transparent);
}

[data-theme="light"] .site-nav a.is-active {
  color: #1b242d;
}

[data-theme="light"] .nav-cta {
  border-color: transparent;
}

[data-theme="light"] .project-card .thumbnail-frame img,
[data-theme="light"] .project-card .thumbnail-frame video,
[data-theme="light"] .gallery-item .thumbnail-frame img,
[data-theme="light"] .gallery-item .thumbnail-frame video {
  background: #e8e5df;
}

[data-theme="light"] .contact-link {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-link:hover {
  color: var(--accent-strong);
}

[data-theme="light"] .site-footer {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .lightbox-panel {
  background: #faf8f5;
}

[data-theme="light"] .lightbox-image {
  background: #edeae4;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .lightbox-close {
  background: rgba(245, 243, 239, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lightbox-close:hover,
[data-theme="light"] .lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .video-lightbox-close {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .video-lightbox-close:hover,
[data-theme="light"] .video-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .hero-stats span {
  color: #6b7280;
}

[data-theme="light"] .thumbnail-frame {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01)),
    #edeae4;
}

[data-theme="light"] .thumbnail-frame:hover,
[data-theme="light"] .thumbnail-frame:focus-visible {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01)),
    #edeae4;
}

[data-theme="light"] .video-play-overlay {
  background: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .video-play-overlay svg {
  fill: #fff;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-30px) translateX(15px); }
  50% { transform: translateY(15px) translateX(-20px); }
  75% { transform: translateY(-20px) translateX(10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes theme-toggle-bloom {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 164, 109, 0);
  }
  55% {
    box-shadow: 0 0 0 8px rgba(197, 164, 109, 0.12), 0 12px 26px rgba(197, 164, 109, 0.16);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(197, 164, 109, 0.08), 0 8px 18px rgba(197, 164, 109, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background:
    radial-gradient(circle at top, rgba(197, 164, 109, 0.14), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(64, 108, 150, 0.14), transparent 24%),
    linear-gradient(180deg, #091017 0%, #0d151d 46%, #0b1118 100%);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grain 8s steps(8) infinite;
  will-change: transform;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: float 12s ease-in-out infinite, pulse-glow 6s ease-in-out infinite;
}

.ambient-orb-gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 148, 90, 0.24), transparent 70%);
  top: 10%;
  left: -5%;
  animation-delay: 0s, 0s;
}

.ambient-orb-blue {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(62, 76, 94, 0.16), transparent 70%);
  bottom: 15%;
  right: -5%;
  animation-delay: -4s, -2s;
}

.ambient-orb-accent {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(214, 190, 145, 0.12), transparent 70%);
  top: 55%;
  left: 55%;
  animation-delay: -8s, -4s;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--space-section) 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent),
    linear-gradient(180deg, transparent, rgba(184, 148, 90, 0.03) 40%, transparent);
  opacity: 0.5;
}

.eyebrow {
  margin: 0 0 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.7rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
  padding: 0.95rem 1.35rem;
  border: 1px solid rgba(214, 190, 145, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(8, 11, 15, 0.94), rgba(8, 11, 15, 0.78)),
    rgba(8, 11, 15, 0.74);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.nav-shell::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 164, 109, 0.12), rgba(197, 164, 109, 0.7), rgba(197, 164, 109, 0.12));
}

.nav-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10rem;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(197, 164, 109, 0.55);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.6;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(197, 164, 109, 0.4);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(145deg, rgba(197, 164, 109, 0.16), rgba(197, 164, 109, 0.03));
  color: var(--accent-strong);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(197, 164, 109, 0.18);
  border-radius: 50%;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-copy strong {
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a {
  position: relative;
  z-index: 1;
  padding: 0.35rem 0;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 0.2rem);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(197, 164, 109, 0.22);
  transform: translateX(-50%) scale(0);
  transition: transform 180ms ease, background-color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a.is-active::before {
  transform: translateX(-50%) scale(1);
}

.site-nav a.is-active {
  color: var(--text);
}

.nav-cta {
  padding: 0.35rem 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  margin: -0.5rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(197, 164, 109, 0);
  transition: background-color 180ms ease, border-color 180ms ease, transform 220ms ease, box-shadow 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(197, 164, 109, 0.12);
  border-color: rgba(197, 164, 109, 0.42);
  transform: translateY(-2px);
  animation: theme-toggle-bloom 650ms ease forwards;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.theme-toggle-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-icon-sun {
  display: block;
}

.theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: clip;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-text,
.hero-copy .hero-actions,
.hero-copy .hero-signature,
.hero-panel,
.hero-stats article {
  opacity: 0;
  animation: hero-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy .eyebrow { animation-delay: 0.15s; }
.hero-copy h1 { animation-delay: 0.3s; }
.hero-copy .hero-text { animation-delay: 0.45s; }
.hero-copy .hero-actions { animation-delay: 0.6s; }
.hero-copy .hero-signature { animation-delay: 0.75s; }
.hero-panel { animation-delay: 0.55s; }
.hero-stats article:nth-child(1) { animation-delay: 0.9s; }
.hero-stats article:nth-child(2) { animation-delay: 1.0s; }
.hero-stats article:nth-child(3) { animation-delay: 1.1s; }

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.48;
  transform: scale(1.04);
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 6, 9, 0.9) 0%, rgba(4, 6, 9, 0.62) 50%, rgba(4, 6, 9, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 6, 9, 0.16) 0%, rgba(4, 6, 9, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-hero-top) 0 var(--space-hero-bottom);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-stack);
  align-items: start;
  max-width: 980px;
}

.hero-copy {
  max-width: 980px;
  display: grid;
  gap: var(--space-stack);
}

.hero-copy > * {
  opacity: 1;
  transform: none;
}

.hero-panel,
.hero-stats {
  opacity: 1;
  transform: none;
}

.hero h1 {
  max-width: 28ch;
  font-size: clamp(2.2rem, 5.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-text {
  max-width: 760px;
  margin-top: 0;
  font-size: 1.08rem;
  color: #d8d0c3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0;
}

.hero-actions .theme-toggle {
  flex-shrink: 0;
}

.hero-signature {
  display: grid;
  gap: 0.65rem;
  max-width: 640px;
  margin-top: 0;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(214, 190, 145, 0.14);
  border-radius: 18px;
  background: rgba(9, 14, 19, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-signature span,
.hero-panel-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-signature p {
  color: #ddd3c5;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.45rem;
  border: 1px solid rgba(214, 190, 145, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(214, 190, 145, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 11, 15, 0.9);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(197, 164, 109, 0.12), transparent 48%);
  pointer-events: none;
}

.hero-panel-item {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel-item strong {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
}

.hero-panel-item span {
  color: #d7cebf;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.35rem;
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transition: background-color 180ms ease, border-color 180ms ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.button:hover::before {
  opacity: 1;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.button-primary {
  background: linear-gradient(135deg, #9e7740, #d2b17c);
  color: #0d1116;
  font-weight: 600;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid rgba(214, 190, 145, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-stats article,
.process-card,
.project-card,
.contact-card {
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(214, 190, 145, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, background-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.hero-stats article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 164, 109, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-stats article:hover::before {
  opacity: 1;
}

.hero-stats article:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 164, 109, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-stats span {
  color: #ccd5de;
}

.intro-grid,
.section-heading,
.contact-card {
  display: grid;
  gap: var(--space-stack);
  position: relative;
}

.intro-grid,
.contact-card {
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}

.intro h2,
.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.intro-grid::before,
.section-heading::before,
.contact-card::before {
  content: attr(data-label);
  position: absolute;
  top: -2.6rem;
  right: 0;
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 11vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 190, 145, 0.045);
  pointer-events: none;
}

.featured {
  background:
    radial-gradient(circle at top right, rgba(184, 148, 90, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.section-heading {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.featured .section-heading,
.video-section .section-heading {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-grid);
}

.project-card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--surface);
  border: 1px solid rgba(214, 190, 145, 0.12);
  transition: border-color 220ms ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 164, 109, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-large {
  grid-column: span 8;
}

.project-card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-card > img,
.gallery-item > img {
  display: none;
}

.thumbnail-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0.35rem;
  border-bottom: 1px solid rgba(214, 190, 145, 0.08);
  background:
    linear-gradient(180deg, rgba(214, 190, 145, 0.06), rgba(255, 255, 255, 0.015)),
    #090d12;
  cursor: zoom-in;
  transition: background-color 180ms ease, transform 220ms ease;
}

.project-card .thumbnail-frame img,
.project-card .thumbnail-frame video,
.gallery-item .thumbnail-frame img,
.gallery-item .thumbnail-frame video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border: 1px solid rgba(214, 190, 145, 0.16);
  border-radius: 12px;
  background: #05070a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  transition: border-color 220ms ease;
}

.thumbnail-frame:hover,
.thumbnail-frame:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #091018;
}

.thumbnail-frame:hover img,
.thumbnail-frame:focus-visible img,
.thumbnail-frame:hover video,
.thumbnail-frame:focus-visible video {
  transform: scale(1.02);
  border-color: rgba(197, 164, 109, 0.38);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.project-copy {
  position: relative;
  padding: var(--space-card);
  background:
    linear-gradient(180deg, rgba(22, 18, 14, 0.2), rgba(10, 15, 20, 0.98)),
    var(--surface);
  border-top: 1px solid rgba(214, 190, 145, 0.08);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(197, 164, 109, 0.35);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

.project-copy h3 {
  margin-bottom: 0.75rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.project-copy p {
  color: #d5cbbd;
}

.process {
  background:
    radial-gradient(circle at 0% 0%, rgba(197, 164, 109, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(12, 19, 26, 0.92), rgba(8, 12, 16, 0.36));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-grid);
}

.process-card {
  padding: calc(var(--space-card) + 0.2rem);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, background-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 164, 109, 0.07), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.process-card:hover::before {
  opacity: 1;
}

.process-card:hover,
.process-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(197, 164, 109, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.process-card span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.process-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.45rem;
}

.gallery-heading {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1rem;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  background: rgba(197, 164, 109, 0.16);
  border-color: rgba(197, 164, 109, 0.4);
  color: #fff4e0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-grid);
}

.gallery-group {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-group-title {
  margin: 0;
  padding: 0.5rem 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}

.gallery-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-grid);
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--surface);
  border: 1px solid rgba(214, 190, 145, 0.12);
  min-height: 0;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, opacity 220ms ease;
  overflow: hidden;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(197, 164, 109, 0.07), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-3px);
  border-color: rgba(197, 164, 109, 0.35);
}

.gallery-item figcaption {
  position: static;
  flex: 0 0 auto;
  padding: var(--space-card);
  background:
    linear-gradient(180deg, rgba(22, 18, 14, 0.18), rgba(10, 15, 20, 0.98)),
    var(--surface);
  border-top: 1px solid rgba(214, 190, 145, 0.08);
  transform: none;
  transition: background-color 220ms ease;
}

.gallery-item strong {
  display: block;
  color: #f5efe4;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption {
  background:
    linear-gradient(180deg, rgba(24, 34, 45, 0.98), rgba(10, 15, 20, 0.98)),
    var(--surface);
}

.gallery-item.is-filtering {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.contact-card {
  padding: calc(var(--space-card) + 0.4rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(184, 148, 90, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(214, 190, 145, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.contact-details {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.contact-item-stacked {
  flex-direction: column;
  align-items: flex-start;
}

.contact-item-stacked .contact-link {
  flex: 0 0 auto;
  width: 100%;
}

.contact-label {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
}

.contact-link {
  flex: 1 1 16rem;
  font-size: 1.1rem;
  color: var(--text);
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(214, 190, 145, 0.14);
  border-radius: 14px;
  background: rgba(9, 12, 16, 0.42);
}

.contact-link:hover {
  color: var(--accent-strong);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    rgba(7, 11, 15, 0.58);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-shell a {
  color: var(--accent-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-word {
  display: inline-block;
  overflow: hidden;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-char.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(4, 7, 10, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  position: relative;
  width: min(calc(100vw - 2rem), 1440px);
  max-width: min(calc(100vw - 2rem), 1440px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(197, 164, 109, 0.22);
  background: #0d151d;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  transform: translateY(28px) scale(0.92);
  transition: transform 280ms ease;
}

.lightbox.is-open .lightbox-panel {
  transform: translateY(0) scale(1);
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, calc(100vw - 3rem));
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  background: #070c11;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lightbox-copy {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.25rem 1.5rem;
}

.lightbox-copy p {
  color: #d7dee6;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(10, 15, 20, 0.72);
  color: #fff;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(197, 164, 109, 0.42);
  background: rgba(14, 21, 29, 0.95);
}

@media (max-width: 980px) {
  .nav-shell {
    overflow: visible;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0.75rem;
    left: 0.75rem;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: auto;
    gap: 0.35rem;
    max-height: 0;
    padding: 0;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, padding 180ms ease, visibility 0s linear 180ms;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .site-nav a {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.3;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.04);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a::before {
    display: none;
  }

  .nav-cta {
    margin-top: 0.25rem;
    justify-content: center;
  }

  .site-nav.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    max-height: min(24rem, calc(100vh - 7rem));
    padding: 0.75rem;
    overflow-y: auto;
    transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, padding 180ms ease;
  }

  /* Staggered animation for nav items */
  .site-nav a {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 300ms ease, transform 300ms ease, background-color 180ms ease;
  }

  .site-nav.is-open a {
    opacity: 1;
    transform: translateX(0);
  }

  .site-nav.is-open a:nth-child(1) { transition-delay: 50ms; }
  .site-nav.is-open a:nth-child(2) { transition-delay: 100ms; }
  .site-nav.is-open a:nth-child(3) { transition-delay: 150ms; }
  .site-nav.is-open a:nth-child(4) { transition-delay: 200ms; }
  .site-nav.is-open a:nth-child(5) { transition-delay: 250ms; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(197, 164, 109, 0.3);
    border-radius: 50%;
    background: rgba(10, 15, 20, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
  }

  .nav-toggle:hover {
    background: rgba(20, 30, 40, 0.8);
    border-color: rgba(197, 164, 109, 0.5);
    transform: scale(1.05);
  }

  .nav-toggle:active {
    transform: scale(0.95);
  }

  /* Touch feedback styles */
  .button,
  .filter-chip,
  .nav-toggle,
  .gallery-item,
  .project-card,
  .thumbnail-frame {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .button:active,
  .filter-chip:active,
  .nav-toggle:active,
  .gallery-item:active,
  .project-card:active,
  .thumbnail-frame:active {
    transform: scale(0.97);
  }

  /* Mobile-optimized animations */
  @keyframes mobile-reveal {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reveal.is-visible {
    animation: mobile-reveal 0.5s ease-out;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 640px;
  }

  .hero-stats,
  .process-grid,
  .intro-grid,
  .section-heading,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .gallery-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item {
    min-width: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-large {
    grid-column: auto;
  }

  .gallery-controls {
    justify-content: flex-start;
  }

  .intro-grid::before,
  .section-heading::before,
  .contact-card::before {
    font-size: clamp(2.8rem, 12vw, 5rem);
    top: -1.4rem;
  }
}

@media (max-width: 980px) {
  [data-theme="light"] .site-nav {
    background: rgba(255, 252, 246, 0.98);
    border-color: rgba(158, 119, 64, 0.2);
    box-shadow: 0 18px 40px rgba(83, 62, 34, 0.14);
  }

  [data-theme="light"] .site-nav a {
    color: #5f6773;
  }

  [data-theme="light"] .site-nav a:hover,
  [data-theme="light"] .site-nav a:focus-visible,
  [data-theme="light"] .site-nav a.is-active {
    color: #1b242d;
    background: rgba(158, 119, 64, 0.08);
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 5rem 0 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
    line-height: 1.15;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-signature,
  .hero-panel {
    padding: 1rem;
  }

  .hero-panel {
    border-radius: 18px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .gallery-grid,
  .gallery-group-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    min-height: 260px;
  }

  .gallery-controls {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .filter-chip {
    width: 100%;
    padding: 0.7rem 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .project-card .thumbnail-frame img,
  .project-card .thumbnail-frame video,
  .gallery-item .thumbnail-frame img,
  .gallery-item .thumbnail-frame video {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-image {
    max-height: 58vh;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-label {
    font-size: 1rem;
  }

  .contact-link {
    font-size: 1rem;
    word-break: break-all;
  }

  .intro-grid::before,
  .section-heading::before,
  .contact-card::before {
    font-size: clamp(2.2rem, 10vw, 4rem);
    top: -1.2rem;
  }
}

/* Video gallery */
.video-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  border-radius: calc(var(--radius-sm) - 4px);
  transition: background 200ms ease;
  pointer-events: none;
}

.video-play-overlay svg {
  width: 52px;
  height: 52px;
  fill: #fff;
  transition: transform 200ms ease;
}

.video-item:hover .video-play-overlay,
.video-item:focus-within .video-play-overlay {
  background: rgba(0, 0, 0, 0.42);
}

.video-item:hover .video-play-overlay svg,
.video-item:focus-within .video-play-overlay svg {
  transform: scale(1.12);
}

.video-placeholder {
  cursor: pointer;
}

/* Video lightbox */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 14, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  padding: 2rem;
}

.video-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-lightbox-panel {
  position: relative;
  width: min(calc(100vw - 2rem), 760px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 280ms ease;
}

.video-lightbox.is-open .video-lightbox-panel {
  transform: translateY(0) scale(1);
}

.video-lightbox iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 60vh;
}

.video-lightbox-copy {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.25rem 1.5rem;
}

.video-lightbox-copy strong {
  color: #fff4e0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.video-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 21, 29, 0.85);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.video-lightbox-close:hover,
.video-lightbox-close:focus-visible {
  border-color: rgba(197, 164, 109, 0.42);
  background: rgba(14, 21, 29, 0.95);
}

@media (max-width: 640px) {
  .video-lightbox {
    padding: 1rem;
  }

  .video-lightbox-panel {
    width: min(calc(100vw - 1rem), 100%);
  }

  .video-lightbox iframe {
    max-height: 58vh;
  }
}

@media (max-width: 980px) {
  .ambient-orb {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  .nav-shell {
    min-height: 64px;
    padding: 0.8rem 1rem;
  }

  .site-nav {
    right: 0.5rem;
    left: 0.5rem;
    border-radius: 16px;
  }

  .site-nav a {
    padding: 0.85rem 0.9rem;
    font-size: 0.98rem;
  }

  .nav-shell::after {
    display: none;
  }

  .theme-toggle {
    min-height: 36px;
    padding: 0.65rem 0.9rem;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .brand-copy {
    font-size: 0.78rem;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-content {
    padding: 4.5rem 0 3rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-panel-item span {
    font-size: 0.9rem;
  }

  .hero-stats article {
    padding: 1.1rem;
  }

  .hero-stats strong {
    font-size: 1.15rem;
  }

  .hero-stats span {
    font-size: 0.85rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .intro h2,
  .section-heading h2,
  .contact-card h2 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .process-card {
    padding: 1.3rem;
  }

  .process-card h3 {
    font-size: 1.2rem;
  }

  .process-card p {
    font-size: 0.92rem;
  }

  .project-copy {
    padding: 1.1rem;
  }

  .project-copy h3 {
    font-size: 1.2rem;
  }

  .project-copy p {
    font-size: 0.9rem;
  }

  .gallery-item {
    min-height: 220px;
  }

  .gallery-item figcaption {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .contact-card {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .contact-label {
    font-size: 0.92rem;
  }

  .contact-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
  }

  .filter-chip {
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
  }

  .gallery-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .site-footer {
    padding: 1.25rem 0 1.75rem;
  }

  .footer-shell {
    gap: 0.5rem;
  }

  .footer-shell p {
    font-size: 0.85rem;
  }
}

/* Lightbox navigation styles */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(10, 15, 20, 0.8);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  z-index: 10;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(20, 30, 40, 0.95);
  border-color: rgba(197, 164, 109, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.lightbox-swipe-hint {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox-swipe-hint.is-visible {
  opacity: 1;
}

.lightbox-swipe-hint svg {
  width: 16px;
  height: 16px;
  animation: swipe-hint 1.5s ease-in-out infinite;
}

@keyframes swipe-hint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Mobile lightbox adjustments */
@media (max-width: 720px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  
  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
}

/* Brand Introduction Section */
.brand-introduction {
  max-width: 980px;
  display: grid;
  gap: 0.9rem;
}

.hero .brand-title {
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-strong);
  line-height: 0.98;
  max-width: 12ch;
  text-wrap: balance;
}

.hero .brand-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.3;
  max-width: 38ch;
}

.credentials-section {
  display: grid;
  gap: 1rem;
  background: linear-gradient(145deg, rgba(184, 148, 90, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(214, 190, 145, 0.15);
  border-radius: var(--radius-md);
  padding: calc(var(--space-card) + 0.1rem);
}

.credentials-section h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(214, 190, 145, 0.2);
}

.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 1.75rem);
  row-gap: 0.75rem;
}

.credentials-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.credentials-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Light theme adjustments for brand section */
[data-theme="light"] .hero .brand-title {
  color: var(--accent);
}

[data-theme="light"] .credentials-section {
  background: linear-gradient(145deg, rgba(184, 148, 90, 0.06), rgba(255, 255, 255, 0.5));
  border-color: rgba(214, 190, 145, 0.25);
}

[data-theme="light"] .credentials-section h3 {
  border-bottom-color: rgba(214, 190, 145, 0.3);
}

[data-theme="light"] .credentials-list li {
  color: var(--muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-layout,
  .hero-copy,
  .brand-introduction,
  .credentials-section {
    gap: 0.9rem;
  }

  .credentials-section {
    padding: 1.25rem;
  }

  .credentials-list {
    grid-template-columns: 1fr;
  }

  .credentials-list li {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero-copy > *,
  .hero-panel,
  .hero-stats {
    opacity: 1;
    transform: none;
  }

}
