/* Lumex Creative — palette from the logo, plus one warm light. */
:root {
  --night: #04061c;      /* deepest wall */
  --navy: #080d38;       /* logo navy */
  --indigo: #1a2160;     /* lifted navy for surfaces */
  --lavender: #bfc3d9;   /* "creative" line in the logo */
  --white: #f7f6f2;
  --light: #ffd58a;      /* the one warm accent: light */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lavender); }

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--lavender);
}

/* ---------- cursor + light ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 213, 138, .18);
  backdrop-filter: blur(6px) brightness(1.25);
  -webkit-backdrop-filter: blur(6px) brightness(1.25);
  color: var(--white);
  font-size: 14px;
  pointer-events: none;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s;
}
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
.cursor.is-close { background: var(--white); color: var(--navy); }
.glow {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, -500px) var(--gy, -500px), rgba(255, 213, 138, .10), transparent 70%);
  mix-blend-mode: screen;
}
@media (hover: none) { .cursor, .glow { display: none; } }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
  background: linear-gradient(var(--navy), rgba(8, 13, 56, 0));
}
.bar__logo img { width: 92px; height: auto; }
.bar__nav { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 14px; }
.bar__nav a { opacity: .75; transition: opacity .3s; }
.bar__nav a:hover { opacity: 1; }
.bar__light { color: var(--light); opacity: 1 !important; }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
a:hover .arrow { transform: translateX(6px); }
@media (max-width: 720px) {
  .bar__nav a:not(.bar__light) { display: none; }
}

/* ---------- Lumex: the entrance ---------- */
.entrance {
  min-height: 100svh;
  display: grid; place-items: center; align-content: center; gap: 36px;
  padding: 120px 24px 80px;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 45%, var(--indigo), var(--navy) 60%, var(--night));
}
.entrance__logo {
  width: min(520px, 78vw); height: auto;
  animation: lightup 2.6s var(--ease) both;
}
.entrance__line {
  max-width: 34ch; margin: 0;
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; line-height: 1.45;
  animation: rise 1.4s 1.2s var(--ease) both;
}
.entrance__line em { font-size: 1.15em; }
.entrance__scroll {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--lavender);
  animation: rise 1.4s 1.8s var(--ease) both;
}
.entrance__scroll::after {
  content: ""; display: block; width: 1px; height: 56px; margin: 18px auto 0;
  background: linear-gradient(var(--lavender), transparent);
  animation: drip 2.4s 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes lightup {
  0% { opacity: 0; filter: blur(18px) brightness(0); transform: scale(.94); }
  60% { opacity: 1; filter: blur(0) brightness(1.8) drop-shadow(0 0 40px rgba(255, 213, 138, .55)); }
  100% { opacity: 1; filter: none; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- We Do ---------- */
.do {
  position: relative; overflow: hidden;
  padding: clamp(80px, 14vh, 160px) clamp(18px, 6vw, 96px);
  background: var(--night);
}
.do__list {
  position: relative; z-index: 2;
  list-style: none; margin: 28px 0 0; padding: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 168px);
  line-height: .95;
}
.do__list li {
  width: fit-content;
  color: transparent;
  -webkit-text-stroke: 1px rgba(191, 195, 217, .55);
  transition: color .5s var(--ease), -webkit-text-stroke-color .5s, transform .6s var(--ease);
  cursor: default;
}
.do__list li:nth-child(even) { margin-left: auto; }
.do__list li.is-lit {
  color: var(--white); -webkit-text-stroke-color: transparent;
  transform: translateX(14px);
}
.do__list li:nth-child(even).is-lit { transform: translateX(-14px); }
.do__stage {
  position: absolute; inset: 0; z-index: 1;
  background: center / cover no-repeat;
  opacity: 0; transform: scale(1.08);
  filter: saturate(.9) brightness(.55);
  transition: opacity .8s var(--ease), transform 1.6s var(--ease);
}
.do__stage.is-on { opacity: 1; transform: scale(1); }

/* ---------- The Creative Gallery ---------- */
.gallery__head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  padding: clamp(64px, 10vh, 120px) clamp(18px, 4vw, 48px) 28px;
}
.gallery__count { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); }

.wall { display: grid; grid-template-columns: 1fr 1fr; }
.piece { position: relative; aspect-ratio: 1 / 1; max-height: 92vh; overflow: hidden; background: var(--night); transition: opacity .6s var(--ease), filter .6s; }
.piece--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.piece__open {
  all: unset; position: absolute; inset: 0; cursor: none; display: block;
}
@media (hover: none) { .piece__open { cursor: pointer; } }
.piece__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: blur(14px) brightness(.3); transform: scale(1.14);
  transition: opacity 1.4s var(--ease), filter 1.6s var(--ease), transform 2.4s var(--ease);
}
.piece.is-seen .piece__img { opacity: 1; filter: none; transform: scale(1.04); animation: drift 18s ease-in-out 2.4s infinite alternate; }
.piece__open:hover .piece__img, .piece__open:focus-visible .piece__img { transform: scale(1.08); }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }

.piece__open::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(4, 6, 28, .75));
}
.piece__no, .piece__name, .piece__tags { position: absolute; z-index: 2; left: clamp(18px, 2.4vw, 32px); }
.piece__no { top: 22px; font-size: 12px; letter-spacing: .25em; color: var(--lavender); }
.piece__name {
  bottom: 64px;
  font-family: var(--serif); font-size: clamp(36px, 4.4vw, 64px); line-height: 1;
}
.piece__name i { font-style: normal; font-family: var(--sans); font-weight: 300; font-size: .5em; vertical-align: middle; transition: transform .5s var(--ease); display: inline-block; }
.piece__open:hover .piece__name i { transform: rotate(90deg); }
.piece__tags { bottom: 30px; font-size: 13px; color: var(--lavender); }
.piece__story { display: none; }

/* dim the wall when one piece is open: a spotlight */
.wall.has-open .piece:not(.is-open) { opacity: .25; filter: grayscale(.6); }

/* ---------- the open piece ---------- */
.panel {
  position: absolute; inset: 0; z-index: 5;
  display: grid; grid-template-columns: minmax(220px, .9fr) 2fr; gap: 24px;
  padding: clamp(18px, 2.4vw, 32px);
  background: rgba(4, 6, 28, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .45s var(--ease);
  cursor: none;
}
.piece.is-open .panel { opacity: 1; }
.panel__info { align-self: end; }
.panel__name { margin: 0 0 8px; font: 400 clamp(36px, 4vw, 60px)/1 var(--serif); }
.panel__tags { margin: 0 0 18px; font-size: 13px; color: var(--lavender); }
.panel__story { margin: 0; max-width: 32ch; font-weight: 300; }
.panel__close {
  all: unset; margin-top: 24px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--light); cursor: pointer;
}
.panel__reel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow: hidden; mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.panel__col { display: flex; flex-direction: column; gap: 14px; animation: climb 28s linear infinite; }
.panel__col:nth-child(2) { animation-duration: 36s; animation-direction: reverse; }
.panel__col img { width: 100%; border-radius: 6px; transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .8s; }
.piece.is-open .panel__col img { transform: none; opacity: 1; }
.panel__reel:hover .panel__col { animation-play-state: paused; }
@keyframes climb { to { transform: translateY(-50%); } }

/* ---------- Let there be light ---------- */
.light {
  min-height: 90svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(18px, 6vw, 96px);
  background: radial-gradient(70% 60% at 85% 60%, rgba(255, 213, 138, .14), transparent 60%), var(--night);
}
.light__title { margin: 24px 0 0; font: 400 clamp(56px, 10vw, 150px)/.95 var(--serif); }
.light__title em { color: var(--light); }
.light__line { position: relative; height: 1px; margin: 56px 0 40px; background: rgba(191, 195, 217, .2); overflow: hidden; }
.light__line span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--light));
  transform: translateX(-100%);
  transition: transform 2.4s var(--ease);
}
.light.is-seen .light__line span { transform: none; }
.light__links { display: flex; flex-wrap: wrap; gap: 12px 48px; list-style: none; margin: 0; padding: 0; font-size: clamp(20px, 2.4vw, 30px); }
.light__links a { position: relative; }
.light__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--light); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.light__links a:hover::after { transform: none; }
.light__place { margin: 48px 0 0; font-size: 13px; color: var(--lavender); }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 24px clamp(18px, 4vw, 48px);
  font-size: 12px; color: var(--lavender); background: var(--night);
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .wall { grid-template-columns: 1fr; }
  .piece { aspect-ratio: 4 / 5; }
  .piece--wide { aspect-ratio: 4 / 3; }
  .gallery__head { flex-direction: column; align-items: start; }
  .piece.is-open .panel { position: fixed; z-index: 70; }
  .panel { grid-template-columns: 1fr; grid-template-rows: 1fr auto; overflow: hidden; }
  .panel__info { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .piece__img { opacity: 1; filter: none; transform: none; }
}

@media (max-width: 720px) {
  .do__list { line-height: 1.12; }
  .do__list li.is-lit, .do__list li:nth-child(even).is-lit { transform: none; }
}
