/* minanima · the Paris house of the highlighted project.
   One 1920s Haussmann house at night with the Eiffel Tower behind it.
   Windows open into songs, curtained windows into videos, and the door into the project.
   Flat poster style in the site's purple, dusky pink and stone. */

:root {
  --night: #21142a;     /* sky */
  --night-2: #2f1d3b;   /* distant rooftops, Eiffel Tower */
  --ink: #170e1c;       /* ironwork, doors, signs, pop-up */
  --stone: #ece4da;     /* facade, text */
  --stone-2: #d3c4b6;   /* mouldings, ground floor */
  --roof: #4a3352;      /* mansard roof */
  --shutter: #9a5e70;   /* shutters and curtains */
  --rose: #c98d9c;      /* lettering and accents */
  --rose-soft: #ead0d6;
  --light: #f0d6c8;     /* lit windows and doorway */
  --pad: clamp(16px, 3vw, 40px);
  --display: 'Limelight', 'Didot', Georgia, serif;
  --deco: 'Poiret One', 'Futura', 'Century Gothic', sans-serif;
  --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; min-height: 100vh; overflow-x: clip; color: var(--stone); background: var(--night); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--rose); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rose); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.noscript { text-align: center; padding: 20px; }

/* ---------- Sky ---------- */
.sky { position: absolute; inset: 0 0 auto 0; height: 100vh; min-height: 700px; pointer-events: none; overflow: hidden; z-index: 0; }
.stars { position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; }
.moon { position: absolute; top: 120px; left: 9vw; width: 78px; height: 78px; border-radius: 50%; background: var(--rose-soft); }
.moon::after { content: ''; position: absolute; inset: -4px 20px -4px -4px; border-radius: 50%; background: var(--night); }

/* ---------- Top bar and title ---------- */
.topbar { position: relative; z-index: 5; display: flex; justify-content: space-between; gap: 12px; padding: 18px var(--pad); }
.back { color: var(--rose-soft); text-decoration: none; font: 500 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; }
.back:hover { color: var(--stone); border-bottom-color: var(--rose); }
.intro { position: relative; z-index: 5; max-width: 760px; margin: clamp(10px, 3vh, 40px) auto 0; padding: 0 var(--pad); text-align: center; }
.eyebrow { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.intro h1 { margin: 0; font: 400 clamp(40px, 7vw, 84px)/1 var(--serif); color: var(--stone); }
.summary { margin: 14px auto 0; max-width: 34em; font: italic 400 clamp(19px, 2vw, 23px)/1.4 var(--serif); color: var(--rose-soft); }
.summary:empty { display: none; }
.hint { margin: 14px 0 0; font-size: 13px; letter-spacing: .06em; color: var(--rose-soft); opacity: .75; }

/* ---------- The scene: one house, lamps either side, the tower behind ---------- */
.scene { position: relative; z-index: 4; display: flex; align-items: flex-end; justify-content: center; max-width: 1200px; margin: clamp(60px, 10vh, 120px) auto 0; padding: 0 var(--pad); }
.backdrop { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: -1; pointer-events: none; }
.eiffel { position: absolute; bottom: 0; left: 79%; height: 112%; width: auto; transform: translateX(-50%); }
.eiffel path { fill: #3a2648; }
.eiffel .eiffel-lattice { fill: none; stroke: var(--night); stroke-width: 1.4; }
.skyline { position: absolute; bottom: 0; left: -6vw; width: calc(100% + 12vw); height: 40%; }
.skyline path { fill: var(--night-2); }

.bldg { position: relative; display: flex; flex-direction: column; width: min(640px, 100%); }

/* Mansard roof with dormers and chimneys */
.roof-wrap { position: relative; height: clamp(70px, 9vw, 110px); margin: 0 3%; }
.roof {
  position: absolute; inset: 0; display: flex; justify-content: space-evenly; align-items: flex-end; padding-bottom: 10%;
  background: repeating-linear-gradient(90deg, var(--roof) 0 13px, var(--ink) 13px 14px);
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
}
.dormer { width: clamp(20px, 3vw, 30px); height: 62%; border: 3px solid var(--stone); border-bottom-width: 4px; border-radius: 50% 50% 2px 2px / 30% 30% 2px 2px; background: var(--light); }
.dormer.round { width: clamp(32px, 5vw, 48px); height: 72%; border-radius: 50%; }
.chimney { position: absolute; bottom: 70%; width: clamp(14px, 2vw, 22px); height: 36px; background: var(--stone-2); border-top: 5px solid var(--ink); z-index: -1; }
.chimney.tall { height: 50px; }
.cornice {
  height: 16px; margin: 0 -1.5%; position: relative; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--stone) 0 7px, var(--stone-2) 7px 10px) bottom / 100% 6px no-repeat, var(--stone);
  border-bottom: 2px solid var(--stone-2);
}
.facade { position: relative; overflow-x: clip; padding: clamp(14px, 2vw, 26px) 9% 8px; background: repeating-linear-gradient(0deg, var(--stone) 0 44px, var(--stone-2) 44px 45px); }

/* A floor of windows, some with a wrought-iron balcony */
.floor { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0 12%; padding: 26px 0 30px; }
.floor.balcon::after {
  content: ''; position: absolute; left: -3%; right: -3%; bottom: 14px; height: 22px;
  border-top: 3px solid var(--ink); border-bottom: 4px solid var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cg fill='none' stroke='%23170e1c' stroke-width='1.6'%3E%3Cpath d='M12 0v18M0 9c4 0 6-3 6-6M24 9c-4 0-6-3-6-6M0 9c4 0 6 3 6 6M24 9c-4 0-6 3-6 6'/%3E%3Ccircle cx='12' cy='9' r='2.6'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / auto 100%;
  pointer-events: none; z-index: 3;
}

/* ---------- Window with shutters (songs) ---------- */
.win { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.7; padding: 0; border: 0; background: none; perspective: 700px; cursor: pointer; text-decoration: none; color: var(--stone); }
.win::before { content: ''; position: absolute; left: -14%; right: -14%; top: -16px; height: 10px; z-index: 2; background: var(--stone-2); }
.floor:nth-child(odd) .win::before { clip-path: polygon(0 100%, 50% 0, 100% 100%); top: -20px; height: 16px; }
.win .pane { position: absolute; inset: 0; overflow: hidden; border: 4px solid var(--stone); outline: 2px solid var(--stone-2); border-radius: 2px 2px 0 0; background: var(--light); }
.win .pane img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.75); transition: filter .5s; }
.win .pane::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), var(--stone) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(0deg, transparent calc(33% - 1.5px), var(--stone) calc(33% - 1.5px) calc(33% + 1.5px), transparent calc(33% + 1.5px)),
    linear-gradient(0deg, transparent calc(66% - 1.5px), var(--stone) calc(66% - 1.5px) calc(66% + 1.5px), transparent calc(66% + 1.5px));
}
.win .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(22px, 3vw, 34px) var(--display); color: var(--shutter); }
.win .label {
  position: absolute; left: -12%; right: -12%; bottom: -2px; z-index: 4; transform: translateY(40%); opacity: 0;
  padding: 5px 6px; text-align: center; font: 400 clamp(13px, 1.4vw, 16px)/1.15 var(--deco); letter-spacing: .04em; color: var(--stone);
  background: var(--ink); border: 1px solid var(--rose); transition: opacity .35s, transform .35s; pointer-events: none;
}
.shutter { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3; background: repeating-linear-gradient(180deg, var(--shutter) 0 5px, var(--ink) 5px 6px); border: 3px solid var(--shutter); transition: transform .9s cubic-bezier(.2, .75, .25, 1); }
.shutter.l { left: 0; transform-origin: 0 50%; }
.shutter.r { right: 0; transform-origin: 100% 50%; }
.shutter.l::after, .shutter.r::after { content: ''; position: absolute; top: 46%; width: 4px; height: 12px; background: var(--rose-soft); }
.shutter.l::after { right: 3px; } .shutter.r::after { left: 3px; }
.awake .win.on .shutter.l { transform: rotateY(-78deg); }
.awake .win.on .shutter.r { transform: rotateY(78deg); }
.win.on:hover .shutter.l, .win.on:focus-visible .shutter.l { transform: rotateY(-140deg); }
.win.on:hover .shutter.r, .win.on:focus-visible .shutter.r { transform: rotateY(140deg); }
.win.on:hover .pane img, .win.on:focus-visible .pane img { filter: none; }
.win.on:hover .label, .win.on:focus-visible .label { opacity: 1; transform: translateY(55%); }
.win.off { cursor: default; }
.win.off .pane { background: var(--night-2); }

/* ---------- Curtained windows (videos) ---------- */
.floor--screen { gap: 0 10%; border-top: 3px solid var(--stone-2); }
.win.screen { aspect-ratio: 16 / 11; }
.win.screen::before { clip-path: none; height: 6px; top: -12px; background: var(--rose); }
.win.screen .pane { border-color: var(--ink); outline-color: var(--rose); background: var(--ink); }
.win.screen .pane::after { display: none; }
.win.screen .ph { color: var(--rose); }
.win.screen .shutter { border: 0; background: repeating-linear-gradient(90deg, var(--shutter) 0 7px, var(--ink) 7px 9px); transition: transform 1s cubic-bezier(.3, .7, .2, 1); }
.win.screen .shutter::after { display: none; }
.win.screen .shutter.l { transform-origin: 0 0; } .win.screen .shutter.r { transform-origin: 100% 0; }
.awake .win.screen.on .shutter.l, .awake .win.screen.on .shutter.r { transform: scaleX(.42); }
.win.screen.on:hover .shutter.l, .win.screen.on:focus-visible .shutter.l,
.win.screen.on:hover .shutter.r, .win.screen.on:focus-visible .shutter.r { transform: scaleX(.1); }

/* ---------- Ground floor: sign, shop windows and the door ---------- */
.ground { position: relative; padding: 16px 9% 0; background: repeating-linear-gradient(0deg, var(--stone-2) 0 26px, var(--stone) 26px 28px); border-top: 6px solid var(--stone); }
.enseigne {
  margin: 0 auto 16px; width: fit-content; max-width: 100%; padding: 7px 22px 5px; text-align: center;
  font: 400 clamp(20px, 3vw, 30px)/1.05 var(--display); color: var(--rose); letter-spacing: .04em;
  background: var(--ink); border: 2px solid var(--rose); outline: 3px solid var(--ink);
}
.enseigne small { display: block; margin-top: 3px; font: 400 11px var(--deco); letter-spacing: .3em; text-transform: uppercase; color: var(--stone); }
.ground-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8%; }
.vitrine { display: block; height: clamp(80px, 12vw, 130px); margin-bottom: 18%; border: 4px solid var(--ink); background: var(--light);
  background-image: linear-gradient(90deg, transparent calc(50% - 2px), var(--ink) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)); }
.door {
  position: relative; display: block; width: clamp(80px, 16vw, 130px); aspect-ratio: 1 / 1.75; margin: 70px auto 0; padding: 0;
  border: 5px solid var(--stone); border-bottom: 0; border-radius: 3px 3px 0 0; cursor: pointer; perspective: 900px; background: var(--light);
}
.door .fan {
  position: absolute; left: -5px; right: -5px; bottom: 100%; aspect-ratio: 2 / 1;
  border: 5px solid var(--stone); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, var(--ink) 0deg 3deg, var(--light) 3deg 18deg);
}
.door .inside { position: absolute; inset: 0; overflow: hidden; padding: 0 3px; display: grid; place-items: center; text-align: center; overflow-wrap: anywhere; font: 400 clamp(11px, 1.4vw, 14px) var(--display); color: var(--ink); letter-spacing: .04em; }
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; background: var(--ink); border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 6px var(--shutter);
  transition: transform 1.1s cubic-bezier(.2, .75, .25, 1);
}
.leaf.l { left: 0; transform-origin: 0 50%; }
.leaf.r { right: 0; transform-origin: 100% 50%; }
.leaf.l::after, .leaf.r::after { content: ''; position: absolute; top: 52%; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.leaf.l::after { right: 6px; } .leaf.r::after { left: 6px; }
.door:hover .leaf.l, .door:focus-visible .leaf.l, .door.opening .leaf.l { transform: rotateY(-100deg); }
.door:hover .leaf.r, .door:focus-visible .leaf.r, .door.opening .leaf.r { transform: rotateY(100deg); }

/* Street lamps either side */
.lamp { position: relative; flex: 0 0 clamp(40px, 8vw, 120px); height: 0; align-self: flex-end; z-index: 6; }
.lamp::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 5px; height: clamp(190px, 20vw, 260px); transform: translateX(-50%); background: var(--ink); }
.lamp::after {
  content: ''; position: absolute; left: 50%; bottom: clamp(190px, 20vw, 260px); width: 20px; height: 28px; transform: translateX(-50%);
  background: var(--light); border-top: 4px solid var(--ink); clip-path: polygon(10% 0, 90% 0, 72% 100%, 28% 100%);
}

.pavement { position: relative; z-index: 5; height: 46px; margin-top: -2px; background: var(--roof); border-top: 8px solid var(--stone-2); }
.cobbles {
  position: relative; z-index: 5; padding: 30px var(--pad) 36px; text-align: center; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  background:
    radial-gradient(ellipse 15px 9px at 50% 50%, var(--night-2) 70%, transparent 72%) 0 0 / 34px 22px,
    radial-gradient(ellipse 15px 9px at 50% 50%, var(--night-2) 70%, transparent 72%) 17px 11px / 34px 22px,
    var(--ink);
}
.cobbles p { margin: 0; }
.cobbles a { color: var(--rose-soft); text-decoration: none; border-bottom: 1px solid var(--rose); }

/* ---------- Pop-up ---------- */
dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; color: var(--stone); }
dialog::backdrop { background: rgba(23, 14, 28, .85); }
dialog[open] .frame { animation: swing .5s cubic-bezier(.2, .8, .25, 1); }
@keyframes swing { from { opacity: 0; transform: perspective(900px) rotateX(-10deg); } to { opacity: 1; transform: none; } }
.frame { position: relative; max-height: calc(100vh - 32px); overflow: auto; padding: clamp(22px, 4vw, 44px); background: var(--ink); border: 2px solid var(--rose); outline: 1px solid var(--rose); outline-offset: -9px; }
.close { position: sticky; float: right; top: 0; margin: -10px -10px 0 10px; width: 40px; height: 40px; z-index: 2; border: 1px solid var(--rose); background: var(--ink); color: var(--rose); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; }
.close:hover { background: var(--rose); color: var(--ink); }
.modal-body h2 { margin: 0 0 6px; font: 400 clamp(30px, 5vw, 46px)/1.05 var(--serif); color: var(--stone); }
.modal-body h3 { margin: 26px 0 10px; padding-bottom: 6px; font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); border-bottom: 1px solid var(--night-2); }
.modal-body p { margin: 0 0 12px; }
.modal-body .lede, .modal-body .prose p { font: 400 20px/1.5 var(--serif); }
.meta { font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li { padding: 2px 12px; border: 1px solid var(--shutter); border-radius: 99px; font-size: 13px; }
.media-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 8px; }
.cover { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--rose); }
.cover.ph { display: grid; place-items: center; font: 400 64px var(--serif); color: var(--rose); background: var(--night-2); }
.embed { position: relative; width: 100%; margin: 14px 0; border: 1px solid var(--night-2); background: #000; }
.embed.video { aspect-ratio: 16 / 9; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed.audio iframe { height: 152px; }
.embed.sc iframe { height: 166px; }
audio { width: 100%; margin: 10px 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.btn { display: inline-block; padding: 10px 18px; border: 1px solid var(--rose); border-radius: 999px; text-decoration: none; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--rose); cursor: pointer; }
.btn:hover { background: var(--rose-soft); border-color: var(--rose-soft); }
.btn.ghost { color: var(--rose); background: transparent; }
.btn.ghost:hover { color: var(--ink); background: var(--rose); }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px dotted var(--shutter); }
.list button, .list a { display: flex; width: 100%; gap: 12px; align-items: baseline; padding: 10px 2px; background: none; border: 0; text-align: left; color: var(--stone); text-decoration: none; cursor: pointer; font: 400 21px var(--serif); }
.list button:hover, .list a:hover { color: var(--rose); }
.list .dots { flex: 1; border-bottom: 1px dotted var(--shutter); transform: translateY(-5px); }
.list .aside { font: 500 13px var(--sans); color: var(--rose); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.grid button { padding: 0; background: none; border: 1px solid var(--night-2); text-align: left; cursor: pointer; color: var(--stone); }
.grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.grid span { display: block; padding: 8px 10px; font: 400 18px var(--serif); }
.grid button:hover { border-color: var(--rose); }
.empty { font-style: italic; opacity: .8; }

/* ---------- Narrow screens ---------- */
@media (max-width: 700px) {
  .lamp { flex-basis: 18px; }
  .lamp:first-of-type { display: none; }
  .eiffel { left: 80%; height: 108%; }
  .moon { width: 40px; height: 40px; top: 64px; left: auto; right: 7vw; }
  .floor { gap: 0 10%; }
  .media-row { grid-template-columns: 1fr; }
  .media-row .cover { max-width: 240px; }
  .vitrine { margin-bottom: 30%; }
}
@media (hover: none) {
  .awake .win.on .shutter.l { transform: rotateY(-140deg); }
  .awake .win.on .shutter.r { transform: rotateY(140deg); }
  .awake .win.screen.on .shutter.l, .awake .win.screen.on .shutter.r { transform: scaleX(.12); }
  .win.on .label { opacity: 1; transform: translateY(55%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Quiet link to the CMS (signing in is handled by Cloudflare Access) */
.cobbles .admin { margin-top: 10px; font-size: 11px; }
.cobbles .admin-link { border: 0; opacity: .45; }
.cobbles .admin-link:hover, .cobbles .admin-link:focus-visible { opacity: 1; text-decoration: underline; }
