:root {
  --bg: #0a0f14;
  --bg-soft: #101922;
  --surface: #121d28;
  --surface-strong: rgba(10, 15, 20, 0.88);
  --card: #f4f1eb;
  --text: #e8edf2;
  --muted: #aab6c3;
  --dark-text: #1b242d;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #c5a46d;
  --accent-strong: #ddbb81;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --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: #f5f3ef;
  --bg-soft: #edeae4;
  --surface: #ffffff;
  --surface-strong: rgba(255, 255, 255, 0.96);
  --card: #1b242d;
  --text: #1b242d;
  --muted: #6b7280;
  --dark-text: #f5f3ef;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #b08d55;
  --accent-strong: #9a7a48;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at top, rgba(197, 164, 109, 0.08), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(64, 108, 150, 0.05), transparent 24%),
    linear-gradient(180deg, #f5f3ef 0%, #faf8f5 46%, #f0eee9 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, 255, 255, 0.92), rgba(255, 255, 255, 0.8)),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(176, 141, 85, 0.24);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

[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(245, 243, 239, 0.92) 0%, rgba(245, 243, 239, 0.65) 45%, rgba(245, 243, 239, 0.35) 100%),
    linear-gradient(180deg, rgba(245, 243, 239, 0.05) 0%, rgba(245, 243, 239, 0.7) 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-details a:first-child,
[data-theme="light"] .contact-details a:nth-child(2) {
  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-details a:first-child,
[data-theme="light"] .contact-details a:nth-child(2) {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-details a:first-child:hover,
[data-theme="light"] .contact-details a:nth-child(2):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(197, 164, 109, 0.18), transparent 70%);
  top: 10%;
  left: -5%;
  animation-delay: 0s, 0s;
}

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

.ambient-orb-accent {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(197, 164, 109, 0.1), 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% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 6rem 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.015) 50%, transparent);
  opacity: 0.4;
}

.eyebrow {
  margin: 0 0 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.76rem;
  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(197, 164, 109, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 15, 20, 0.92), rgba(10, 15, 20, 0.76)),
    rgba(10, 15, 20, 0.72);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
  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);
}

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

.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.55;
  transform: scale(1.08);
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.82) 0%, rgba(5, 8, 12, 0.58) 45%, rgba(5, 8, 12, 0.36) 100%),
    linear-gradient(180deg, rgba(5, 8, 12, 0.1) 0%, rgba(5, 8, 12, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

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

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

.hero h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  line-height: 1.1;
}

.hero-text {
  max-width: 640px;
  margin-top: 1.6rem;
  font-size: 1.08rem;
  color: #d6dde4;
}

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

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

.hero-signature {
  display: grid;
  gap: 0.65rem;
  max-width: 560px;
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(9, 14, 19, 0.72);
}

.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: #d8e0e8;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 11, 15, 0.88);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.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: #c9d3dc;
  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 14px 32px rgba(0, 0, 0, 0.16);
  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: var(--accent);
  color: #111820;
  font-weight: 600;
}

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

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

.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(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  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: 2rem;
  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(255, 255, 255, 0.03);
  pointer-events: none;
}

.featured {
  background:
    radial-gradient(circle at top right, rgba(197, 164, 109, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.section-heading {
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 2rem;
}

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

.project-card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  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(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #091018;
  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(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #05080d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  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: 1.4rem;
  background:
    linear-gradient(180deg, rgba(17, 25, 34, 0.92), rgba(10, 15, 20, 0.98)),
    var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.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;
}

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

.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: 1.2rem;
}

.process-card {
  padding: 1.8rem;
  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 {
  align-items: end;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.filter-chip {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  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: 1.25rem;
}

.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: 1.25rem;
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  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: 1rem 1.1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(20, 29, 39, 0.96), rgba(10, 15, 20, 0.98)),
    var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: none;
  transition: background-color 220ms ease;
}

.gallery-item strong {
  display: block;
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
}

.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: 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(197, 164, 109, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(197, 164, 109, 0.18);
}

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

.contact-details a:first-child,
.contact-details a:nth-child(2) {
  font-size: 1.1rem;
  color: var(--text);
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 11, 15, 0.36);
}

.contact-details a:first-child:hover,
.contact-details a:nth-child(2):hover {
  color: var(--accent-strong);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.2rem;
  background: rgba(7, 11, 15, 0.42);
}

.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) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0.75rem;
    left: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    min-width: auto;
    padding: 0.75rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }

  .site-nav a {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .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 {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-block;
  }


  .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: 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 {
    gap: 0.5rem;
  }

  .filter-chip {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }

  .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-details a:first-child,
  .contact-details a:nth-child(2) {
    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.94);
  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), 1200px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 280ms ease;
}

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

.video-lightbox video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
}

.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 video {
    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;
  }

  .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-details a:first-child,
  .contact-details a:nth-child(2) {
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
  }

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

  .gallery-controls {
    gap: 0.4rem;
  }

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

  .footer-shell {
    gap: 0.5rem;
  }

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

@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;
  }

}
