/* 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: 72px; height: 72px; margin: -36px 0 0 -36px;
  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: 12px;
  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 20px 50px -30px #000;
  transition: box-shadow 1.1s var(--ease);
}
/* at rest: every picture is greyscale */
.frame__art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.7);
  transition: filter 1.2s var(--ease), transform 1.6s var(--ease);
}
/* the light behind the frame: a soft warm glow on the wall */
.frame__hang { position: relative; isolation: isolate; }
.frame__hang::before {
  content: ""; position: absolute; inset: -36% -48%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 213, 138, .6) 35%, rgba(255, 213, 138, .2) 65%, transparent);
  filter: blur(16px);
  opacity: 0; transform: scale(.85);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
}
/* lit: light comes on behind, the picture turns to colour,
   and the frame's shadow reaches out towards you on every side,
   sharp at the edge and more blurred the further it goes */
.frame.is-lit .frame__hang::before { opacity: 1; transform: none; }
.frame.is-lit .frame__art {
  box-shadow:
    0 0 0 1px rgba(255, 213, 138, .18),
    0 0 1px 1px rgba(2, 3, 14, .9),
    0 0 6px 4px rgba(2, 3, 14, .7),
    0 0 14px 7px rgba(2, 3, 14, .45),
    0 0 28px 12px rgba(2, 3, 14, .22);
}
.frame.is-lit .frame__art img { filter: none; transform: scale(1.02); }
.frame figcaption { position: relative; z-index: 1; }
.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: 120px 18px 120px; margin: -120px 0 -108px; 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: 5 / 2; } }
.piece { position: relative; aspect-ratio: 1 / 1; max-height: 70vh; 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; }

/* while a piece is open nothing behind it moves */
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }
.panel { overscroll-behavior: contain; }

/* 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; grid-template-rows: minmax(0, 1fr); 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 {
  cursor: default;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start;
  min-height: 0; max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 24px 0;
  scrollbar-width: none;
  mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
}
.panel__reel::-webkit-scrollbar { display: none; }
.panel__col { display: flex; flex-direction: column; gap: 14px; }
.panel__col:nth-child(2) { margin-top: 48px; }   /* keeps the staggered look */
.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; }

/* ---------- 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: 18px; list-style: none; margin: 0; padding: 0; }
.social {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid rgba(191, 195, 217, .3);
  color: var(--white);
  transition: border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.social svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }
/* the same warm light from behind as the We Do frames */
.social::before {
  content: ""; position: absolute; inset: -60%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 213, 138, .45), transparent);
  filter: blur(8px); opacity: 0; transform: scale(.6);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.social:hover, .social:focus-visible { border-color: var(--light); color: var(--light); transform: translateY(-3px); }
.social:hover::before, .social:focus-visible::before { opacity: 1; transform: none; }

.foot__sep { margin: 0 8px; opacity: .5; }
.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: 1 / 1; }
  .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: minmax(0, 1fr) auto; overflow: hidden; }
  .piece:last-child { aspect-ratio: 1 / 1; }
  .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; }
}
