:root {
  color-scheme: dark;
  --bg: #070710;
  --panel: rgba(7, 7, 16, 0.76);
  --line: rgba(201, 168, 76, 0.18);
  --text: #f5f0e8;
  --muted: rgba(212, 207, 198, 0.68);
  --accent: #c9a84c;
  --transition: 1500ms;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.ambient__image {
  position: absolute;
  inset: -7%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  filter: blur(35px) saturate(0.8);
  transform: scale(1.12);
  transition: opacity 2.5s ease;
}
.ambient__image.is-visible { opacity: 0.32; }
.ambient__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(120, 88, 177, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(7, 7, 16, 0.52), rgba(7, 7, 16, 0.97) 72%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 14px clamp(20px, 4vw, 60px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  background: rgba(7,7,16,.88);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--accent);
}
.topbar__nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.topbar__nav a:hover { color: var(--text); }
.topbar__current { color: var(--text); }
.icon-button {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 14px;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,168,76,.05); }

main { width: min(1500px, 100%); margin: 0 auto; padding: 0 clamp(14px, 3vw, 48px) 56px; }
.hero {
  max-width: 980px;
  padding: clamp(22px, 3.2vw, 38px) 4px clamp(18px, 2.4vw, 28px);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 9px;
}
.hero h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: .01em;
}
.hero h1 em {
  color: var(--accent);
  font-weight: 300;
}
.hero__copy {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.55;
  letter-spacing: .25px;
}

.gallery-shell {
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
}
.gallery-status { display: grid; min-height: 220px; place-items: center; padding: 28px; color: var(--muted); text-align: center; }
.gallery-status[hidden] { display: none; }
.gallery-status.is-error { color: #ffcbcb; }

.eidos-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  background: rgba(255,255,255,.08);
}
.tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #0d0f16;
  cursor: zoom-in;
  isolation: isolate;
  perspective: 900px;
}
.tile:focus-visible { outline: 2px solid white; outline-offset: -4px; z-index: 2; }
.tile__layer { position: absolute; inset: 0; background-position: center; background-size: cover; backface-visibility: hidden; transform-origin: center; }
.tile__current { z-index: 1; }
.tile__next { z-index: 2; opacity: 0; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.045);
  background: linear-gradient(145deg, rgba(255,255,255,.045), transparent 35%, rgba(0,0,0,.14));
  transition: opacity .35s ease;
}
.tile:hover::after { opacity: .45; }

.tile.is-changing .tile__current,
.tile.is-changing .tile__next { animation-duration: var(--transition); animation-fill-mode: both; animation-timing-function: cubic-bezier(.2,.72,.18,1); }
.tile.is-changing .tile__next { opacity: 1; }

.fx-fade .tile__current { animation-name: out-fade; }
.fx-fade .tile__next { animation-name: in-fade; }
.fx-zoom-in .tile__current { animation-name: out-zoom-in; }
.fx-zoom-in .tile__next { animation-name: in-zoom-in; }
.fx-zoom-out .tile__current { animation-name: out-zoom-out; }
.fx-zoom-out .tile__next { animation-name: in-zoom-out; }
.fx-slide-left .tile__current { animation-name: out-left; }
.fx-slide-left .tile__next { animation-name: in-right; }
.fx-slide-right .tile__current { animation-name: out-right; }
.fx-slide-right .tile__next { animation-name: in-left; }
.fx-slide-up .tile__current { animation-name: out-up; }
.fx-slide-up .tile__next { animation-name: in-down; }
.fx-slide-down .tile__current { animation-name: out-down; }
.fx-slide-down .tile__next { animation-name: in-up; }
.fx-flip-x .tile__current { animation-name: out-flip-x; }
.fx-flip-x .tile__next { animation-name: in-flip-x; }
.fx-flip-y .tile__current { animation-name: out-flip-y; }
.fx-flip-y .tile__next { animation-name: in-flip-y; }
.fx-rotate .tile__current { animation-name: out-rotate; }
.fx-rotate .tile__next { animation-name: in-rotate; }
.fx-blur .tile__current { animation-name: out-blur; }
.fx-blur .tile__next { animation-name: in-blur; }
.fx-diagonal .tile__current { animation-name: out-diagonal; }
.fx-diagonal .tile__next { animation-name: in-diagonal; }
.fx-tilt .tile__current { animation-name: out-tilt; }
.fx-tilt .tile__next { animation-name: in-tilt; }
.fx-wipe .tile__current { animation-name: out-wipe; }
.fx-wipe .tile__next { animation-name: in-wipe; }
.fx-depth .tile__current { animation-name: out-depth; }
.fx-depth .tile__next { animation-name: in-depth; }
.fx-curtain .tile__current { animation-name: out-curtain; }
.fx-curtain .tile__next { animation-name: in-curtain; }
.fx-iris .tile__current { animation-name: out-iris; }
.fx-iris .tile__next { animation-name: in-iris; }
.fx-swing .tile__current { animation-name: out-swing; transform-origin: left center; }
.fx-swing .tile__next { animation-name: in-swing; transform-origin: right center; }
.fx-twist .tile__current { animation-name: out-twist; }
.fx-twist .tile__next { animation-name: in-twist; }
.fx-pan .tile__current { animation-name: out-pan; }
.fx-pan .tile__next { animation-name: in-pan; }
.fx-prism .tile__current { animation-name: out-prism; }
.fx-prism .tile__next { animation-name: in-prism; }
.fx-collapse .tile__current { animation-name: out-collapse; }
.fx-collapse .tile__next { animation-name: in-collapse; }
.fx-corner .tile__current { animation-name: out-corner; transform-origin: top left; }
.fx-corner .tile__next { animation-name: in-corner; transform-origin: bottom right; }
.fx-glide .tile__current { animation-name: out-glide; }
.fx-glide .tile__next { animation-name: in-glide; }

.fx-dissolve .tile__current { animation-name: out-dissolve; }
.fx-dissolve .tile__next { animation-name: in-dissolve; }
.fx-focus .tile__current { animation-name: out-focus; }
.fx-focus .tile__next { animation-name: in-focus; }
.fx-exposure .tile__current { animation-name: out-exposure; }
.fx-exposure .tile__next { animation-name: in-exposure; }
.fx-soft-wipe .tile__current { animation-name: out-soft-wipe; }
.fx-soft-wipe .tile__next { animation-name: in-soft-wipe; }
.fx-parallax .tile__current { animation-name: out-parallax; }
.fx-parallax .tile__next { animation-name: in-parallax; }
.fx-vignette .tile__current { animation-name: out-vignette; }
.fx-vignette .tile__next { animation-name: in-vignette; }
.fx-reveal-up .tile__current { animation-name: out-reveal-up; }
.fx-reveal-up .tile__next { animation-name: in-reveal-up; }
.fx-diamond .tile__current { animation-name: out-diamond; }
.fx-diamond .tile__next { animation-name: in-diamond; }

@keyframes out-fade { to { opacity: 0; } }
@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes out-zoom-in { to { opacity: 0; transform: scale(1.28); filter: blur(4px); } }
@keyframes in-zoom-in { from { opacity: 0; transform: scale(.7); filter: blur(7px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes out-zoom-out { to { opacity: 0; transform: scale(.68); } }
@keyframes in-zoom-out { from { opacity: 0; transform: scale(1.42); } to { opacity: 1; transform: scale(1); } }
@keyframes out-left { to { opacity: .15; transform: translateX(-105%); } }
@keyframes in-right { from { transform: translateX(105%); } to { transform: translateX(0); } }
@keyframes out-right { to { opacity: .15; transform: translateX(105%); } }
@keyframes in-left { from { transform: translateX(-105%); } to { transform: translateX(0); } }
@keyframes out-up { to { opacity: .15; transform: translateY(-105%); } }
@keyframes in-down { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes out-down { to { opacity: .15; transform: translateY(105%); } }
@keyframes in-up { from { transform: translateY(-105%); } to { transform: translateY(0); } }
@keyframes out-flip-x { to { opacity: 0; transform: rotateX(-92deg) scale(.88); } }
@keyframes in-flip-x { from { opacity: 0; transform: rotateX(92deg) scale(.88); } to { opacity: 1; transform: rotateX(0) scale(1); } }
@keyframes out-flip-y { to { opacity: 0; transform: rotateY(92deg) scale(.88); } }
@keyframes in-flip-y { from { opacity: 0; transform: rotateY(-92deg) scale(.88); } to { opacity: 1; transform: rotateY(0) scale(1); } }
@keyframes out-rotate { to { opacity: 0; transform: rotate(-18deg) scale(.54); filter: blur(3px); } }
@keyframes in-rotate { from { opacity: 0; transform: rotate(20deg) scale(1.35); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes out-blur { to { opacity: 0; filter: blur(16px) saturate(.2); transform: scale(1.08); } }
@keyframes in-blur { from { opacity: 0; filter: blur(18px) saturate(.2); transform: scale(.9); } to { opacity: 1; filter: blur(0) saturate(1); transform: scale(1); } }
@keyframes out-diagonal { to { opacity: 0; transform: translate(-70%, -70%) rotate(-8deg) scale(.7); } }
@keyframes in-diagonal { from { opacity: 0; transform: translate(75%, 75%) rotate(8deg) scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes out-tilt { to { opacity: 0; transform: perspective(700px) rotateZ(-8deg) rotateY(55deg) scale(.65); } }
@keyframes in-tilt { from { opacity: 0; transform: perspective(700px) rotateZ(8deg) rotateY(-55deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes out-wipe { to { clip-path: inset(0 100% 0 0); filter: brightness(.6); } }
@keyframes in-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes out-depth { to { opacity: 0; transform: translateZ(-260px) rotateX(18deg); filter: blur(7px); } }
@keyframes in-depth { from { opacity: 0; transform: translateZ(240px) rotateX(-18deg) scale(1.3); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes out-curtain { to { opacity: .2; clip-path: inset(0 50% 0 50%); filter: brightness(.55); } }
@keyframes in-curtain { from { clip-path: inset(0 50% 0 50%); transform: scale(1.08); } to { clip-path: inset(0); transform: scale(1); } }
@keyframes out-iris { to { opacity: 0; clip-path: circle(0 at 50% 50%); transform: scale(1.12); } }
@keyframes in-iris { from { opacity: 0; clip-path: circle(0 at 50% 50%); transform: scale(.86); } to { opacity: 1; clip-path: circle(75% at 50% 50%); transform: scale(1); } }
@keyframes out-swing { to { opacity: 0; transform: perspective(850px) rotateY(96deg) scale(.88); filter: brightness(.55); } }
@keyframes in-swing { from { opacity: 0; transform: perspective(850px) rotateY(-96deg) scale(.88); } to { opacity: 1; transform: perspective(850px) rotateY(0) scale(1); } }
@keyframes out-twist { to { opacity: 0; transform: rotate(-28deg) skewX(12deg) scale(.58); filter: blur(5px); } }
@keyframes in-twist { from { opacity: 0; transform: rotate(28deg) skewX(-12deg) scale(1.36); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes out-pan { to { opacity: 0; transform: translateX(-18%) scale(1.22); filter: blur(3px); } }
@keyframes in-pan { from { opacity: 0; transform: translateX(22%) scale(1.18); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes out-prism { to { opacity: 0; transform: scale(1.14); filter: blur(10px) saturate(2.2) hue-rotate(55deg) contrast(1.35); } }
@keyframes in-prism { from { opacity: 0; transform: scale(.84); filter: blur(14px) saturate(2.4) hue-rotate(-65deg) contrast(1.45); } to { opacity: 1; transform: scale(1); filter: none; } }
@keyframes out-collapse { to { opacity: 0; transform: scaleX(.02) scaleY(.72); filter: brightness(.45); } }
@keyframes in-collapse { from { opacity: 0; transform: scaleX(.02) scaleY(1.28); } to { opacity: 1; transform: scale(1); } }
@keyframes out-corner { to { opacity: 0; transform: perspective(700px) rotateX(75deg) rotateY(-55deg) scale(.42); filter: blur(4px); } }
@keyframes in-corner { from { opacity: 0; transform: perspective(700px) rotateX(-75deg) rotateY(55deg) scale(.48); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes out-glide { to { opacity: 0; transform: translate(32%, -12%) rotate(5deg) scale(.78); filter: blur(5px); } }
@keyframes in-glide { from { opacity: 0; transform: translate(-36%, 14%) rotate(-5deg) scale(1.18); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }

@keyframes out-dissolve { to { opacity: 0; transform: scale(1.04); filter: blur(9px) contrast(.72) brightness(.62); } }
@keyframes in-dissolve { from { opacity: 0; transform: scale(.98); filter: blur(10px) contrast(.78) brightness(1.18); } to { opacity: 1; transform: scale(1); filter: blur(0) contrast(1) brightness(1); } }
@keyframes out-focus { to { opacity: 0; transform: scale(1.1); filter: blur(20px) saturate(.72); } }
@keyframes in-focus { from { opacity: 0; transform: scale(1.12); filter: blur(24px) saturate(.72); } to { opacity: 1; transform: scale(1); filter: blur(0) saturate(1); } }
@keyframes out-exposure { to { opacity: 0; transform: scale(1.06); filter: brightness(2.1) contrast(.62) saturate(.35); } }
@keyframes in-exposure { from { opacity: 0; transform: scale(.96); filter: brightness(2.25) contrast(.58) saturate(.3); } to { opacity: 1; transform: scale(1); filter: brightness(1) contrast(1) saturate(1); } }
@keyframes out-soft-wipe { to { opacity: .08; clip-path: polygon(100% 0, 100% 0, 0 100%, 0 100%); transform: scale(1.05); filter: blur(3px); } }
@keyframes in-soft-wipe { from { opacity: .18; clip-path: polygon(100% 0, 100% 0, 0 100%, 0 100%); transform: scale(1.08); filter: blur(4px); } to { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: scale(1); filter: blur(0); } }
@keyframes out-parallax { to { opacity: 0; transform: translateX(-14%) scale(1.16); filter: blur(4px) brightness(.72); } }
@keyframes in-parallax { from { opacity: 0; transform: translateX(14%) scale(1.1); filter: blur(5px) brightness(.78); } to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0) brightness(1); } }
@keyframes out-vignette { to { opacity: 0; clip-path: ellipse(12% 12% at 50% 50%); transform: scale(1.12); filter: brightness(.42) blur(6px); } }
@keyframes in-vignette { from { opacity: 0; clip-path: ellipse(10% 10% at 50% 50%); transform: scale(.92); filter: brightness(.6) blur(7px); } to { opacity: 1; clip-path: ellipse(75% 75% at 50% 50%); transform: scale(1); filter: brightness(1) blur(0); } }
@keyframes out-reveal-up { to { opacity: .08; clip-path: inset(100% 0 0 0); transform: translateY(-8%) scale(1.04); filter: blur(3px); } }
@keyframes in-reveal-up { from { opacity: .12; clip-path: inset(100% 0 0 0); transform: translateY(10%) scale(1.08); filter: blur(4px); } to { opacity: 1; clip-path: inset(0); transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes out-diamond { to { opacity: 0; clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); transform: scale(1.14) rotate(2deg); filter: blur(5px); } }
@keyframes in-diamond { from { opacity: 0; clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); transform: scale(.9) rotate(-2deg); filter: blur(6px); } to { opacity: 1; clip-path: polygon(50% -22%, 122% 50%, 50% 122%, -22% 50%); transform: scale(1) rotate(0); filter: blur(0); } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(52px, 9vw) 1fr minmax(52px, 9vw);
  align-items: center;
  background: rgba(2, 3, 6, .94);
  backdrop-filter: blur(18px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { display: grid; justify-items: center; max-width: min(1200px, 82vw); max-height: 90vh; margin: auto; }
.lightbox__figure img { display: block; max-width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.lightbox__figure figcaption { min-height: 26px; padding-top: 14px; color: var(--muted); }
.lightbox__close, .lightbox__arrow { border: 0; background: transparent; cursor: pointer; }
.lightbox__close { position: absolute; top: 16px; right: 22px; z-index: 2; font-size: 44px; font-weight: 200; }
.lightbox__arrow { height: 100%; font-size: clamp(52px, 7vw, 96px); color: rgba(255,255,255,.65); }
.lightbox__arrow:hover { color: white; }

@media (max-width: 1050px) { .eidos-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 760px) {
  .topbar { min-height: 58px; padding: 12px 16px; }
  .brand { font-size: 23px; letter-spacing: 6px; }
  .topbar__current { display: none; }
  .eidos-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 22px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}
@media (max-width: 430px) {
  .eidos-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__copy { font-size: 13px; }
  .topbar__nav { gap: 9px; font-size: 9px; letter-spacing: 1px; }
  .icon-button { padding: 8px 9px; }
}

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