@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Yellowtail;
  src: url("assets/fonts/yellowtail.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --black: #09090a;
  --surface: #111113;
  --line: #363638;
  --white: #f1f0ed;
  --muted: #b4b2b3;
  --gutter: clamp(17px, 4.9vw, 80px);
  --sans: Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --metal: linear-gradient(170deg,#f8fbff 0%,#bfc4cd 16%,#9c9fa7 43%,#858891 47%,#e0e1e3 55%,#a3a6ad 75%,#e5e7e9 100%);
  --metal-dark: linear-gradient(172deg,#3d3f44,#18191c 38%,#0d0d0f 50%,#242529 69%,#141415);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--white); font: 1rem var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
h1, h2, p { margin: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid #e5e8ff; outline-offset: 4px; }
::selection { background: #dddfe5; color: #141414; }
.shell { max-width: 1490px; margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 95px; }
.mono { font: 500 .68rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.5; fill: none; vertical-align: middle; flex: none; }
.icons { position: absolute; pointer-events: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 12px; background: #fff; color: #111; }

.header {
  position: sticky; top: 0; z-index: 3; min-height: 69px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 8px var(--gutter); background: #111113; border-bottom: 1px solid #48494e;
}
.brand { justify-self: start; display: inline-flex; gap: 9px; align-items: center; min-height: 44px; white-space: nowrap; font-size: .76rem; font-weight: 770; letter-spacing: .08em; }
.brand-mark { width: 49px; flex: none; }
.brand-sub { display: block; color: var(--muted); font: .56rem var(--mono); margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a, .header-contact, .primary, .round {
  display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
  border: 1px solid #63646c; border-radius: 100px; background: var(--metal-dark);
  box-shadow: inset 0 1px 0 #ffffff24, 0 2px 3px #0006;
  transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s;
}
.nav a, .header-contact { padding: 0 16px; font-size: .83rem; white-space: nowrap; }
.header-contact { justify-self: end; gap: 8px; }
.header-contact .icon { width: 14px; }
.nav a:hover, .nav a[aria-current], .header-contact, .primary, .round:hover:not(:disabled), .sheet-button[aria-pressed=true] {
  background: var(--metal); color: #09090b; border-color: #c1c6ce;
}
.header-contact:hover, .primary:hover { box-shadow: inset 0 1px 0 #fff, 0 0 16px #cad4ec3b; }
.round { width: 45px; height: 45px; flex: none; padding: 0; }

.hero { padding-top: clamp(19px, 2.8vw, 40px); }
.masthead { text-align: center; padding: clamp(8px, 1.7vw, 28px) 0 clamp(15px, 2vw, 28px); }
.logo-wordmark {
  --shine-x: 50%; --shine-y: 35%;
  position: relative;
  isolation: isolate;
  width: min(68vw, 390px);
  margin-inline: auto;
}
.logo-wordmark img, .endmark-panel img, .brand-mark {
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}
@supports (mask-mode: luminance) {
  .logo-wordmark::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .45;
    background: radial-gradient(ellipse 33% 39% at var(--shine-x) var(--shine-y), #ffffff65, transparent 73%);
    mix-blend-mode: screen;
    mask-image: url("assets/lu-denis-logo.png");
    mask-size: 100% 100%;
    mask-mode: luminance;
  }
}
:root[data-motion=reduce] .logo-wordmark::after { display: none; }
.mast-sub { margin: 2px 0 0; color: #d1d0d4; font-size: clamp(.65rem, 1.38vw, 1.12rem); font-weight: 650; letter-spacing: .24em; text-transform: uppercase; }
.mast-sub i { font-style: normal; }
.hero-stage {
  display: grid; grid-template-columns: minmax(200px,.73fr) minmax(0,1.27fr);
  grid-template-rows: clamp(260px,32vw,470px) auto; gap: 9px 12px;
}
.hero-copy {
  grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; align-items: start;
  padding: clamp(17px, 3.3vw, 48px); border: 1px solid #414147; border-radius: 13px;
  background: radial-gradient(ellipse at 0 0,#292a2e,transparent 65%),#111113;
}
.hero-id { display: flex; align-items: center; gap: 8px; margin-bottom: clamp(18px,4vw,54px); color: var(--muted); }
.hero-id span { width: 6px; height: 6px; border-radius: 50%; background: #f1f1f3; }
.hero-intro { font-size: clamp(1.45rem,3.35vw,3.45rem); font-weight: 680; letter-spacing: -.065em; line-height: 1.03; }
.primary { margin-top: auto; padding: 0 15px; gap: 9px; font-size: .83rem; font-weight: 690; }
.primary .icon { width: 15px; }
.hero-visual { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; border: 1px solid #55555d; border-radius: 13px; background: #101011; }
.hero-image { position: absolute; inset: 0; object-position: 50% 44%; }
.hero-image.is-portrait { object-position: left 37%; }
.hero-type { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: clamp(2.8rem, 7vw, 7rem) Yellowtail, cursive; }
.hero-expand { position: absolute; right: 12px; top: 12px; background: var(--metal); color: #09090b; }
.featured { grid-column: 2; grid-row: 2; min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.featured-index { color: var(--muted); white-space: nowrap; }
.featured-credit strong { display: block; font-size: clamp(.94rem,1.35vw,1.2rem); letter-spacing: -.025em; }
#featured-title { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; margin-top: 2px; }
.featured-actions, .viewer-actions { display: flex; gap: 6px; }
.hero-rail { display: flex; align-items: center; gap: 15px; margin-top: 13px; }
.rail-label { flex: none; color: var(--muted); }
.hero-select { display: flex; gap: 5px; min-width: 0; overflow: auto; padding: 4px 4px 7px; scrollbar-width: thin; }
.hero-select button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; border: 1px solid #333339; border-radius: 8px; padding: 4px 10px 4px 4px; background: #151517; white-space: nowrap; font-size: .77rem; }
.hero-select button:hover { border-color: #7b7e88; }
.hero-select button[aria-pressed=true] { background: var(--metal-dark); border-color: #a6aab4; }
.hero-select button img { width: 34px; height: 34px; border-radius: 4px; }
.hero-select button span { color: var(--muted); font: .56rem var(--mono); }

h2 { font-size: clamp(2.55rem,6.5vw,7.5rem); line-height: .94; letter-spacing: -.078em; font-weight: 840; }
.about { margin-top: clamp(38px,6vw,85px); }
.about-layout { border-top: 1px solid #55555b; display: grid; grid-template-columns: minmax(170px,.73fr) minmax(0,1.27fr); gap: 16px; padding: clamp(17px,2.5vw,34px) 0; }
.about h2 { font-size: clamp(1.45rem,3vw,2.85rem); letter-spacing: -.052em; }
.about-main p { max-width: 43ch; color: #d2d0d3; font-size: clamp(1rem,1.65vw,1.35rem); line-height: 1.48; }
.about-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.about-strip a { display: block; overflow: hidden; border-radius: 10px; border: 1px solid #424249; aspect-ratio: 1.52; }
.about-strip img { object-position: center 43%; transition: transform .45s ease; }
.about-strip a:hover img, .about-strip a:focus-visible img { transform: scale(1.07); }
.featured-work, .work { padding-top: clamp(58px,8vw,118px); }
.featured-work h2 { margin-bottom: clamp(16px,2.4vw,31px); }
.feature-bands { display: grid; gap: 8px; }
.feature-band {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; border: 1px solid #46474d;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: clamp(84px,10vw,140px); padding: 14px clamp(14px,3vw,37px);
}
.feature-band img, .feature-band::after { position: absolute; inset: 0; z-index: -2; }
.feature-band img { transition: transform .6s cubic-bezier(.2,.72,.25,1); object-position: 50% 47%; }
.feature-band:nth-child(2) img { object-position: 50% 32%; }
.feature-band::after { content: ""; z-index: -1; background: linear-gradient(90deg,#030305dc 0%,#0303054a 59%,#03030586); }
.feature-band:nth-child(2) { flex-direction: row-reverse; text-align: right; }
.feature-band:nth-child(2)::after { background: linear-gradient(270deg,#030305dc 0%,#03030548 59%,#03030586); }
.feature-band strong { font-size: clamp(1.2rem,3vw,3rem); line-height: 1; font-weight: 810; letter-spacing: -.055em; }
.feature-band .round { background: var(--metal); color: #121215; }
.feature-band:hover img, .feature-band:focus-visible img { transform: scale(1.06); }

.work { padding-bottom: clamp(55px,8vw,112px); }
.work-heading { border-top: 1px solid #55555b; padding-top: 17px; display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: clamp(17px,2.5vw,32px); }
.gallery-note { margin-top: 11px; color: var(--muted); font: .68rem var(--mono); text-transform: uppercase; }
.work-controls, .filters { display: flex; align-items: center; gap: 5px; }
.filters { border: 1px solid #44444b; border-radius: 100px; padding: 3px; background: #111113; }
.filters button { min-height: 44px; border: 1px solid transparent; border-radius: 100px; background: none; padding: 0 13px; font-size: .82rem; }
.filters button:hover { background-color: #2c2d31; }
.filters button[aria-pressed=true] { background: var(--metal); border-color: #b9bec7; color: #101012; }
.gallery { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-items: start; gap: 18px 9px; }
.project { grid-column: span 4; min-width: 0; }
.gallery:not(.is-filtered,.is-sheet) .project:nth-child(7n + 1) { grid-column: span 7; }
.gallery:not(.is-filtered,.is-sheet) .project:nth-child(7n + 2) { grid-column: span 5; }
.gallery:not(.is-filtered,.is-sheet) .project:nth-child(7n + 6) { grid-column: span 5; }
.gallery:not(.is-filtered,.is-sheet) .project:nth-child(7n) { grid-column: span 7; }
.tile { display: block; }
.tile-image { display: block; position: relative; overflow: hidden; border: 1px solid #37373c; border-radius: 10px; background: #151517; aspect-ratio: 4 / 4.5; }
.gallery:not(.is-filtered,.is-sheet) .project:is(:nth-child(7n + 1),:nth-child(7n),:nth-child(7n + 2),:nth-child(7n + 6)) .tile-image { aspect-ratio: 1.5; }
.tile-image img { object-position: center 40%; transition: transform .55s cubic-bezier(.2,.74,.25,1); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile-open { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #b7bac0; background: var(--metal); color: #111115; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.project[data-video] .tile-open, .tile:hover .tile-open, .tile:focus-visible .tile-open { opacity: 1; transform: none; }
.tile-label { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 9px 1px 11px; border-bottom: 1px solid var(--line); }
.tile-type { display: block; color: var(--muted); margin-bottom: 3px; }
.tile-label strong { font-size: clamp(.98rem,1.53vw,1.42rem); line-height: 1.16; letter-spacing: -.036em; }
.tile-arrow { width: 16px; color: var(--muted); }
.gallery.is-sheet { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 8px; }
.gallery.is-sheet .project { grid-column: span 1; }
.gallery.is-sheet .tile-image { aspect-ratio: 1; }
.gallery.is-sheet .tile-label strong { font-size: clamp(.8rem,1.25vw,1.08rem); }
.gallery.is-sheet .tile-arrow { display: none; }

.contact-row { border-top: 1px solid #55555b; padding: clamp(20px,4vw,54px) 0; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.contact h2 { font-size: clamp(2.7rem,7vw,7.2rem); }
.contact h2 i { font: 400 1.1em/.89 Yellowtail, cursive; letter-spacing: -.02em; }
.contact p { color: var(--muted); margin-top: 18px; }
.contact-actions { max-width: 100%; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #606168; border-radius: 10px; background: var(--metal-dark); padding: 12px; min-height: 56px; }
.contact-link:hover { border-color: #b1b4bf; }
.contact-link strong { display: block; font-size: clamp(.98rem,1.6vw,1.4rem); overflow-wrap: anywhere; }
.contact-link .mono { display: block; color: var(--muted); margin-bottom: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid #6b6b73; font-size: .83rem; }
.text-link:hover { border-color: #fff; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; color: var(--muted); }
.footer a, .footer button { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: none; }
.footer a:hover, .footer button:hover { text-decoration: underline; text-underline-offset: 4px; }
.endmark { padding-bottom: 18px; }
.endmark-panel { display: grid; place-items: center; padding: 14px; background: #121214; border: 1px solid #424248; border-radius: 12px; }
.endmark-panel img { width: min(100%, 220px); }

dialog { background: #18181b; color: var(--white); border: 1px solid #777985; border-radius: 15px; padding: 0; width: min(900px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 24px 90px #000a; }
dialog::backdrop { background: #080809e6; }
dialog[open] { animation: enter .22s ease-out; }
body:has(dialog[open]) { overflow: hidden; }
.viewer-body { padding: clamp(10px,2vw,20px); }
.viewer-top, .viewer-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.viewer-top { margin-bottom: 9px; }
.viewer-top .mono, #viewer-index, #viewer-note { color: var(--muted); }
#viewer-media { background: #0b0b0c; border-radius: 8px; overflow: hidden; }
#viewer-media img, #viewer-media video { display: block; width: 100%; height: min(62dvh,590px); object-fit: contain; }
.viewer-info { margin-top: 12px; }
#viewer-title { font-size: clamp(1.4rem,4vw,2.6rem); letter-spacing: -.045em; margin: 4px 0; }
#viewer-note { font-size: .8rem; }
.video-fallback { display: block; text-align: center; padding: 20px; text-decoration: underline; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .header { min-height: 58px; }
  .brand { gap: 5px; font-size: .63rem; }
  .brand-mark { width: 34px; }
  .brand-sub { display: none; }
  .nav a, .header-contact { padding-inline: 8px; font-size: .72rem; }
  .header-contact .icon { display: none; }
  .hero-stage { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .hero-visual { grid-column: 1; grid-row: 1; aspect-ratio: 1.25; }
  .featured { grid-column: 1; grid-row: 2; }
  .hero-copy { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 14px; }
  .hero-id { grid-column: 1 / -1; margin-bottom: 0; }
  .hero-intro { font-size: 1.32rem; }
  .primary { margin-top: 0; padding-inline: 9px; }
  .hero-rail { display: block; margin-top: 8px; }
  .rail-label br { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 9px; }
  .about-strip { gap: 5px; }
  .about-strip a { aspect-ratio: 1; }
  .work-heading, .contact-row { flex-direction: column; align-items: start; }
  .gallery, .gallery.is-sheet { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 7px; }
  .gallery .project, .gallery:not(.is-filtered,.is-sheet) .project:nth-child(n) { grid-column: span 1; }
  .gallery:not(.is-filtered,.is-sheet) .project:nth-child(n) .tile-image { aspect-ratio: 4 / 4.5; }
  .gallery.is-sheet { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tile-arrow { display: none; }
  .tile-type { letter-spacing: 0; font-size: .57rem; }
  .footer { flex-wrap: wrap; gap: 0 10px; }
}
@media (max-width: 380px) {
  .brand > span:last-child { display: none; }
  .header { gap: 5px; }
  .nav a, .header-contact { padding-inline: 6px; font-size: .69rem; }
  .featured { gap: 5px; }
  .featured-index { display: none; }
  .featured { grid-template-columns: minmax(0,1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:root[data-motion=reduce], :root[data-motion=reduce] * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-motion=reduce] :is(.tile,.feature-band,.about-strip a) img { transform: none; }
@media (forced-colors: active) {
  .logo-wordmark::after { display: none; }
}

/* React Bits–inspired spotlight and magnetic controls. */
.hero-copy { position: relative; isolation: isolate; overflow: hidden; }
.hero-copy::before, .feature-band::before, .tile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .26s ease-out;
  background: radial-gradient(ellipse 190px 140px at var(--spot-x, 50%) var(--spot-y, 50%),
    #e3e9ff43, #bbc7e516 46%, transparent 84%);
}
.hero-copy::before { z-index: -1; }
.feature-band::before { z-index: 0; }
.feature-band > strong, .feature-band > .round { position: relative; z-index: 1; }
.tile-image::after { mix-blend-mode: screen; }
.tile-open { z-index: 1; }
:root[data-motion=full] .spotlight-active::before,
:root[data-motion=full] .tile-image.spotlight-active::after { opacity: 1; }
.primary > span, .header-contact > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: translate .45s cubic-bezier(.2, 1.5, .42, 1);
}
:root[data-motion=full] .magnet-active > span {
  translate: var(--magnet-x, 0px) var(--magnet-y, 0px);
  transition-duration: .16s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy::before, .feature-band::before, .tile-image::after { display: none; }
  .primary > span, .header-contact > span { translate: none !important; }
}

.hero-outgoing { pointer-events: none; z-index: 1; }
.hero-expand { z-index: 2; }
.twin-slideshow { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.twin-control {
  min-height: 44px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px;
  background: #121214; color: var(--white); border: 1px solid #909095; border-radius: 100px;
  font: .75rem var(--mono);
}
.twin-control:hover { background: #303036; }
.twin-control .icon { width: 15px; height: 15px; }
:root[data-motion=reduce] .hero-outgoing { display: none; }
