/* 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(380px, 64vw); height: auto;
  animation: lightup 2.6s var(--ease) both;
}
.entrance__line {
  max-width: 34ch; margin: 0;
  font-size: clamp(16px, 1.6vw, 19px); 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: five lit frames on a dark wall ---------- */
.do {
  position: relative;
  padding: clamp(72px, 12vh, 128px) clamp(18px, 5vw, 72px) clamp(64px, 10vh, 112px);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(26, 33, 96, .5), transparent 60%),
    var(--night);
}
.do__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(40px, 7vh, 72px); }
.do__intro { margin: 0; font: 400 clamp(22px, 2.4vw, 32px)/1.1 var(--serif); }
.do__wall {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1240px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.frame:nth-child(even) { margin-top: 48px; }   /* hung at different heights */
.frame figure { margin: 0; position: relative; }
.frame__art {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  padding: 7%;                                   /* the mat */
  background: #0b1030;
  box-shadow: 0 0 0 1px rgba(191, 195, 217, .12), 0 30px 60px -30px #000;
  transition: box-shadow .8s var(--ease), background .8s var(--ease);
}
.frame__art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.85) brightness(.45);
  transition: filter 1s var(--ease), transform 1.4s var(--ease);
}
/* the light sits behind the frame: a warm glow on the wall around its edges */
.frame__hang { position: relative; isolation: isolate; }
.frame__light {
  position: absolute; inset: -16% -26% -10%; z-index: -2; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 213, 138, .85), rgba(255, 213, 138, .3) 50%, transparent);
  filter: blur(20px);
  opacity: 0; transform: scale(.8);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
}
.frame.is-lit .frame__light { opacity: 1; transform: none; }
/* the light spills onto the floor in front of the frame */
.frame__hang::after {
  content: ""; position: absolute; left: -30%; right: -30%; top: 96%; height: 55%; z-index: -2; pointer-events: none;
  background: radial-gradient(closest-side at 50% 25%, rgba(255, 213, 138, .32), transparent);
  filter: blur(10px); opacity: 0; transition: opacity 1.1s var(--ease);
}
.frame.is-lit .frame__hang::after { opacity: 1; }
/* ...so the frame throws its shadow forward, onto the floor towards you */
.frame__shadow {
  position: absolute; left: 4%; right: 4%; top: 99%; height: 42%; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(2, 3, 14, .95), rgba(2, 3, 14, .55) 50%, transparent);
  clip-path: polygon(6% 0, 94% 0, 112% 100%, -12% 100%);
  filter: blur(6px);
  opacity: 0; transform-origin: top; transform: scaleY(.4);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
}
.frame.is-lit .frame__shadow { opacity: 1; transform: none; }
.frame figcaption { position: relative; z-index: 1; }
.frame.is-lit .frame__art { background: #141a46; box-shadow: 0 0 0 1px rgba(255, 213, 138, .35), 0 40px 80px -30px rgba(255, 213, 138, .25); }
.frame.is-lit .frame__art img { filter: none; transform: scale(1.03); }
.frame figcaption { display: grid; gap: 2px; margin-top: 16px; }
.frame figcaption strong { font: 400 clamp(20px, 1.8vw, 26px)/1.1 var(--serif); }
.frame figcaption small { font-size: 12px; color: var(--lavender); }

@media (max-width: 900px) {
  /* tablets: a hung wall of 3 + 2 */
  .do__wall { grid-template-columns: repeat(6, 1fr); row-gap: 40px; }
  .frame { grid-column: span 2; }
  .frame:nth-child(4) { grid-column: 2 / span 2; }
  .frame:nth-child(even) { margin-top: 24px; }
}
@media (max-width: 600px) {
  /* phones: a strip to swipe, one frame centred, the next peeking in */
  .do { padding-left: 0; padding-right: 0; }
  .do__head { padding: 0 18px; flex-wrap: wrap; }
  .do__wall {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 70px 18px 12px; margin: -70px 0 0; scrollbar-width: none;
  }
  .do__wall::-webkit-scrollbar { display: none; }
  .frame { flex: 0 0 72%; scroll-snap-align: center; }
  .frame:nth-child(even) { margin-top: 0; }
}

/* ---------- 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(20px, 2vw, 26px); }

.wall { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .wall { grid-template-columns: 1fr 1fr; } .piece:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; } }
.piece { position: relative; aspect-ratio: 4 / 5; max-height: 86vh; overflow: hidden; background: var(--night); transition: opacity .6s var(--ease), filter .6s; }
.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: .35; filter: blur(6px) brightness(.6); transform: scale(1.08);
  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: 52px;
  font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); 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: 24px; font-size: 12px; 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(30px, 3vw, 44px)/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(44px, 6vw, 92px)/.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(17px, 1.6vw, 22px); }
.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; }
  .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; }
  .piece:last-child { aspect-ratio: 4 / 5; }
  .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; }
}
