:root {
  --ink: #08090b;
  --ink-2: #111317;
  --paper: #f6f2ea;
  --paper-2: #fffaf1;
  --text: #f8f6f0;
  --muted: rgba(248, 246, 240, 0.68);
  --dark-muted: #69635a;
  --line: rgba(255, 255, 255, 0.13);
  --dark-line: rgba(10, 11, 13, 0.12);
  --gold: #d3a13b;
  --gold-2: #f0cb78;
  --cyan: #50d6c8;
  --green: #6fd36d;
  --blue: #4d8dff;
  --red: #e74136;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(211, 161, 59, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(80, 214, 200, 0.12), transparent 30rem),
    linear-gradient(135deg, #08090b 0%, #111317 48%, #07080a 100%);
  font-family:
    Montserrat, Inter, Avenir Next, Avenir, Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 24px rgba(211, 161, 59, 0.65);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  width: 380px;
  height: 380px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(211, 161, 59, 0.22), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0.8;
  mix-blend-mode: screen;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 50% 10%, #000, transparent 70%);
}

.ambient span {
  position: absolute;
  border: 1px solid rgba(211, 161, 59, 0.22);
  border-radius: 999px;
  animation: drift 16s ease-in-out infinite alternate;
}

.ambient span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  right: -16vw;
  top: 12vh;
}

.ambient span:nth-child(2) {
  width: 24vw;
  height: 24vw;
  left: -8vw;
  bottom: 14vh;
  animation-delay: -5s;
}

.ambient span:nth-child(3) {
  width: 8px;
  height: 8px;
  left: 54%;
  top: 28%;
  border: 0;
  background: var(--gold);
  box-shadow: 0 0 30px var(--gold);
  animation-delay: -2s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(24px, -18px, 0) rotate(12deg);
  }
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 60;
  display: grid;
  width: min(1180px, calc(100% - 28px));
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 12px 14px 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    top 0.25s ease;
}

.site-header.is-scrolled {
  top: 10px;
  background: rgba(246, 242, 234, 0.9);
  border-color: rgba(10, 11, 13, 0.12);
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 0.72rem;
}

.brand span {
  color: var(--gold);
}

.brand strong {
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.8vw, 34px);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  opacity: 0.82;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.nav-cta,
.button,
.filter-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-cta {
  padding: 0 18px;
  color: #111;
  background: var(--gold-2);
}

.button {
  padding: 0 22px;
  border: 1px solid transparent;
}

.button:hover,
.nav-cta:hover,
.filter-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #111;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 34px rgba(211, 161, 59, 0.22);
}

.button-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.site-header.is-scrolled .button-ghost,
.site-header.is-scrolled .menu-toggle {
  color: var(--ink);
  border-color: rgba(10, 11, 13, 0.16);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero-lab {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  width: min(1320px, calc(100% - 42px));
  margin: 0 auto;
  padding: clamp(116px, 13vw, 168px) 0 70px;
}

.folio-label {
  margin: 0 0 22px;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 900;
}

.hero-lab h1 {
  max-width: 820px;
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(3rem, 4.9vw, 5.8rem);
}

.hero-text {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics {
  display: grid;
  max-width: 580px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-metrics article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-metrics strong {
  display: block;
  color: var(--gold-2);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 900;
}

.hero-stage {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
}

.stage-toolbar,
.stage-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 900;
}

.stage-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.stage-toolbar span:nth-child(2) {
  background: var(--cyan);
}

.stage-toolbar span:nth-child(3) {
  background: var(--red);
}

.stage-toolbar strong {
  margin-left: auto;
}

.stage-screen {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.stage-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.38));
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: scan 5s ease-in-out infinite;
}

@keyframes scan {
  0%,
  45% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

.stage-screen img {
  width: 100%;
  aspect-ratio: 1.49 / 1;
  object-fit: cover;
  transition:
    opacity 0.45s ease,
    transform 0.6s ease;
}

.stage-screen img.is-switching {
  opacity: 0;
  transform: scale(1.035);
}

.stage-footer {
  justify-content: space-between;
}

.floating-chip {
  position: absolute;
  z-index: 4;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 9, 11, 0.66);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.chip-video {
  left: -16px;
  top: 23%;
}

.chip-web {
  right: -12px;
  bottom: 22%;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.marquee div {
  display: flex;
  width: max-content;
  gap: 46px;
  padding: 18px 0;
  animation: marquee 26s linear infinite;
}

.marquee span {
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 900;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.studio-section {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}

.studio-section:nth-of-type(even) {
  background: var(--paper-2);
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(84px, 10vw, 140px) 0;
}

.section-index {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

h2 {
  margin: 0 0 22px;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: clamp(3.1rem, 7vw, 7rem);
}

h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  font-size: clamp(1.55rem, 3vw, 3rem);
}

.lead {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  line-height: 1.45;
}

.lead strong {
  color: var(--gold);
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 26px;
  align-items: start;
  margin-bottom: 44px;
}

.section-heading h2,
.section-heading p {
  grid-column: 2;
}

.section-heading .section-index {
  grid-row: 1 / span 2;
}

.section-heading p,
.about-copy p,
.clients-copy p,
.contact-copy p {
  max-width: 680px;
  color: var(--dark-muted);
  font-size: 1.04rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.portrait-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(8, 9, 11, 0.12);
}

.portrait-panel img {
  width: 100%;
  aspect-ratio: 1.49 / 1;
  object-fit: cover;
}

.portrait-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(8, 9, 11, 0.62);
  backdrop-filter: blur(12px);
}

.portrait-note span,
.project-kicker {
  display: block;
  color: var(--gold-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.portrait-note strong {
  display: block;
  margin-top: 8px;
  line-height: 1.25;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.signal-list span {
  padding: 10px 14px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.expertise-lab {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(260px, 0.78fr) minmax(260px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.expertise-card,
.project-card,
.contact-card {
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 20px 60px rgba(8, 9, 11, 0.09);
}

.expertise-card {
  min-height: 280px;
  padding: clamp(24px, 4vw, 38px);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.expertise-card:hover {
  color: #fff;
  background: #111317;
  transform: translateY(-8px);
}

.expertise-card span {
  color: var(--gold);
  font-weight: 900;
}

.expertise-card h3 {
  margin-top: 70px;
  text-transform: uppercase;
}

.expertise-card p {
  color: inherit;
  opacity: 0.72;
}

.expertise-preview {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(8, 9, 11, 0.12);
}

.expertise-preview img {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
  transition:
    opacity 0.24s ease,
    transform 0.35s ease;
}

.expertise-preview img.is-switching {
  opacity: 0.35;
  transform: scale(1.02);
}

.project-control {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--dark-line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.filter-button.is-active {
  border-color: var(--gold);
  background: var(--gold-2);
}

.project-control p {
  margin: 0;
  color: var(--dark-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #fff;
  background: #0c0d10;
  box-shadow: var(--shadow);
}

.showcase-copy {
  align-self: center;
  padding: clamp(28px, 5vw, 54px);
}

.showcase-copy > span {
  color: var(--gold-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}

.showcase-copy h3 {
  margin-top: 18px;
}

.showcase-copy p {
  color: var(--muted);
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.showcase-media {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition:
    opacity 0.25s ease,
    transform 0.45s ease;
}

.showcase-media:hover img {
  transform: scale(1.035);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(8, 9, 11, 0.18);
}

.project-cover {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
}

.project-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-cover span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 9, 11, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.project-card:hover .project-cover::after,
.project-card:hover .project-cover span,
.project-cover:hover::after,
.project-cover:hover span {
  opacity: 1;
  transform: translateY(0);
}

.project-cover img {
  width: 100%;
  aspect-ratio: 1.49 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-cover img {
  transform: scale(1.05);
}

.project-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dark-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.project-card h3 {
  font-size: 1.28rem;
}

.project-card p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.92rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.project-action,
.project-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 900;
}

.project-action {
  border: 1px solid var(--gold);
  color: #111;
  background: var(--gold-2);
  cursor: pointer;
}

.project-link {
  border: 1px solid var(--dark-line);
  color: var(--ink);
  background: #fff;
}

.clients-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
}

.clients-copy blockquote {
  position: relative;
  margin: 38px 0 0;
  padding-left: 28px;
  border-left: 3px solid var(--gold);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-style: italic;
  line-height: 1.5;
}

.clients-board {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(8, 9, 11, 0.12);
  cursor: pointer;
}

.clients-board img {
  width: 100%;
  aspect-ratio: 1.49 / 1;
  object-fit: cover;
}

.contact {
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(211, 161, 59, 0.2), transparent 23rem),
    linear-gradient(135deg, #000 0%, #090909 52%, #030303 100%);
}

.contact .section-index,
.contact h2 {
  color: #fff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: clamp(28px, 5vw, 44px);
  border-color: rgba(211, 161, 59, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.contact-card a,
.contact-card span {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(211, 161, 59, 0.28);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 800;
}

.contact-card a:hover {
  color: var(--gold-2);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  padding: 72px 20px 26px;
  background:
    radial-gradient(circle at 20% 10%, rgba(211, 161, 59, 0.18), transparent 28rem),
    rgba(4, 5, 7, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.lightbox-content {
  width: min(100%, 1280px);
  min-width: 0;
  margin: 0 auto;
}

.lightbox figure {
  margin: 0;
}

.lightbox-media {
  display: grid;
  align-items: center;
  gap: 18px;
}

.lightbox.has-video .lightbox-media {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
}

.lightbox iframe {
  display: none;
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 0;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.lightbox.has-video iframe {
  display: block;
  order: 1;
}

.lightbox img {
  width: min(100%, 1420px);
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.lightbox.has-video img {
  order: 2;
  max-height: 36vh;
}

.lightbox-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  margin: 16px auto 0;
}

.lightbox-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 800;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 56px;
  height: 70px;
  justify-self: center;
  border-radius: 999px;
  font-size: 3rem;
  line-height: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 26px;
  }

  .main-nav {
    position: fixed;
    inset: 78px 14px auto;
    display: grid;
    gap: 0;
    padding: 18px;
    color: var(--ink);
    background: rgba(246, 242, 234, 0.96);
    border: 1px solid var(--dark-line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(14px);
  }

  body.menu-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px 0;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-content: center;
  }

  .hero-lab,
  .about-grid,
  .project-showcase,
  .clients-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .expertise-lab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .cursor-glow {
    display: none;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    letter-spacing: 0.2em;
    font-size: 0.68rem;
  }

  .hero-lab {
    width: min(100% - 28px, 1320px);
    min-height: auto;
    gap: 34px;
    padding-top: 118px;
    padding-bottom: 64px;
  }

  .hero-lab h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 11vw, 3.25rem);
    line-height: 1.02;
    overflow-wrap: normal;
  }

  .hero-text {
    max-width: 100%;
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.72;
  }

  .folio-label {
    margin-bottom: 20px;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
  }

  .hero-actions,
  .showcase-actions,
  .lightbox-actions,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .filter-button {
    width: 100%;
  }

  .hero-actions {
    margin-top: 28px;
    gap: 14px;
  }

  .hero-stage {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .stage-toolbar {
    padding: 10px;
  }

  .stage-toolbar strong {
    max-width: 50%;
    overflow: hidden;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero-metrics,
  .project-grid,
  .expertise-lab {
    grid-template-columns: 1fr;
  }

  .floating-chip {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .stage-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .section-inner {
    width: min(100% - 28px, var(--max));
    padding-block: 72px;
  }

  .section-heading {
    display: block;
  }

  h2,
  #projets h2 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
    line-height: 1.02;
  }

  .project-control {
    align-items: stretch;
  }

  .project-control p {
    text-align: center;
  }

  .showcase-media img {
    min-height: 240px;
  }

  .project-action,
  .project-link {
    flex: 1;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .lightbox.has-video .lightbox-media {
    grid-template-columns: 1fr;
  }

  .lightbox.has-video img {
    max-height: 24vh;
  }

  .lightbox-nav {
    position: fixed;
    bottom: 18px;
    width: 52px;
    height: 52px;
    font-size: 2rem;
  }

  .lightbox-nav.prev {
    left: 20px;
  }

  .lightbox-nav.next {
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.contact-dark {
  isolation: isolate;
  color: #fff !important;
  background:
    radial-gradient(circle at 76% 20%, rgba(211, 161, 59, 0.28), transparent 24rem),
    radial-gradient(circle at 12% 82%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(135deg, #050506 0%, #0b0b0d 48%, #000 100%) !important;
}

.contact-dark .section-inner {
  padding-block: clamp(92px, 11vw, 150px);
}

.contact-dark .section-index {
  border-color: rgba(211, 161, 59, 0.78);
  color: var(--gold-2) !important;
}

.contact-dark h2 {
  max-width: 620px;
  color: #fff !important;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
}

.contact-dark p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.contact-dark .contact-card {
  border: 1px solid rgba(211, 161, 59, 0.52) !important;
  color: #fff !important;
  background: rgba(8, 8, 9, 0.82) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

.contact-dark .contact-card a {
  border-bottom-color: rgba(211, 161, 59, 0.34);
  color: rgba(255, 255, 255, 0.95) !important;
}

.contact-dark .contact-card a:hover {
  color: var(--gold-2) !important;
}

@media (max-width: 900px) {
  .contact-dark h2 {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  body {
    position: relative;
  }

  main,
  .ambient,
  .marquee,
  .hero-lab,
  .studio-section,
  .section-inner,
  .about-grid,
  .project-showcase,
  .clients-grid,
  .contact-grid,
  .portrait-panel,
  .expertise-lab,
  .project-grid,
  .contact-card {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    transform: none;
  }

  .hero-lab,
  .section-inner {
    width: 100%;
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero-lab h1 {
    font-size: clamp(2.55rem, 10.6vw, 3.05rem);
    line-height: 1.04;
  }

  .hero-stage {
    margin-top: 18px;
  }

  .stage-screen img {
    aspect-ratio: 1.28 / 1;
  }

  .studio-section {
    width: 100%;
  }

  .portrait-panel,
  .project-showcase,
  .clients-board,
  .contact-card {
    min-width: 0;
  }

  .signal-list {
    max-width: 100%;
  }
}
