/* Port d'attache, at night: warm dark rooms, the river darker still, an amber radar. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #16120E;      /* the rooms, the offer, the contact */
  --ground-lift: #221B15; /* raised surfaces: the offer's chart, cards, empty image slots */
  --deep: #0D0A08;        /* outside: the radar, the reel, the list, the footer */
  --cream: #F1E8D8;       /* text */
  --cream-soft: #B4A68F;  /* secondary text */
  --amber: #E9963A;       /* buttons, radar pings, the words that grow */
  --amber-soft: #E8BE82;  /* small labels, radar rings */
  --on-amber: #1A140E;    /* text on an amber button */
  --line: rgba(241, 232, 216, .16);
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 4.5vw, 4rem);
  --bar-h: 4.25rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font: 400 1.125rem/1.55 var(--text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; line-height: .92; letter-spacing: -.015em; }
strong { font-weight: 600; }

.skip { position: absolute; left: var(--gutter); top: -5rem; z-index: 100; background: var(--ground-lift); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* Bar ------------------------------------------------------------------ */

.bar {
  --fg: var(--cream);
  --bg: var(--ground);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
  padding: calc(env(safe-area-inset-top, 0px) + .9rem) var(--gutter) .9rem;
  font: 600 1rem/1 var(--display);
  font-stretch: 85%;
  color: var(--fg);
  transition: color .4s, opacity .3s;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar::before { content: ""; position: absolute; inset: 0 0 -1.5rem; z-index: -1; background: linear-gradient(to bottom, var(--bg) 45%, transparent); transition: background .4s; pointer-events: none; }
body.on-dark .bar { --fg: var(--cream); --bg: var(--deep); }
.brand { margin-right: auto; text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.15rem; }
.sound {
  background: transparent;
  border: 1.5px solid var(--fg);
  border-radius: 99px;
  padding: .45rem .85rem;
  color: var(--fg);
  cursor: pointer;
}
.sound[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.bar-cta { background: var(--amber); color: var(--on-amber); text-decoration: none; padding: .55rem 1.05rem; border-radius: 99px; }

/* Rooms: the photos as a deck of prints --------------------------------- */
/* rooms.js places the deck (left, top, --card) and moves every card with a transform. */

.rooms { position: relative; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; }
.rooms-intro { position: absolute; top: calc(var(--bar-h) + 3.5vh); left: var(--gutter); z-index: 3; max-width: 33rem; }
.rooms-intro h1 { font-size: clamp(3.2rem, 8.6vw, 8.5rem); font-stretch: calc(112% - var(--squeeze, 0) * 1%); }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.38; margin: 1.1rem 0 .6rem; max-width: 24em; }
.hint { margin: 0; font-size: 1rem; color: var(--cream-soft); max-width: 26em; }

.deck { --card: 160px; position: absolute; left: 63%; top: 58%; z-index: 2; width: 0; height: 0; }
.room-card {
  position: absolute;
  left: calc(var(--card) / -2);
  top: calc(var(--card) / -2);
  width: var(--card);
  height: var(--card);
  overflow: hidden;
  border: max(3px, calc(var(--card) * .025)) solid var(--cream);
  border-radius: calc(var(--card) * .1);
  background: var(--ground-lift);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .7);
  cursor: zoom-in;
  will-change: transform;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}
.room-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.room-card-name { display: none; }

/* The open photo: it flies out of its card, the empty room opens in a circle, the caption sits under it. */
html.room-open { overflow: hidden; }
.room-view {
  --ratio: 1.3333;
  --view-w: min(calc(100vw - 2 * var(--gutter)), 1100px, calc((100vh - 15rem) * var(--ratio)));
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--gutter) calc(var(--safe-b) + 1rem);
  border: 0;
  background: rgba(13, 10, 8, calc(var(--veil, 1) * .94));
  color: var(--cream);
  overflow: hidden;
}
@supports (height: 1svh) {
  .room-view { --view-w: min(calc(100vw - 2 * var(--gutter)), 1100px, calc((100svh - 15rem) * var(--ratio))); }
}
.room-view[open] { display: grid; place-items: center; }
.room-view::backdrop { background: transparent; }
.room-view-figure { display: grid; gap: 1rem; width: var(--view-w); margin: 0; }
.room-view-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--ground-lift);
  cursor: pointer;
  will-change: transform;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.room-view-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.room-view-empty { position: absolute; inset: 0; clip-path: circle(0 at 50% 50%); }
.room-view-caption { max-width: 40rem; }
.room-view-count { margin: 0 0 .45rem; font: 600 .95rem/1 var(--display); font-stretch: 85%; color: var(--amber-soft); font-variant-numeric: tabular-nums; }
.room-view-name { font-size: clamp(1.7rem, 3vw, 2.6rem); font-stretch: 95%; }
.room-view-note { margin: .5rem 0 0; font-size: 1.1rem; line-height: 1.4; }
.room-view-hint { margin: .45rem 0 0; font-size: .95rem; color: var(--cream-soft); }
.room-view-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + .8rem);
  right: var(--gutter);
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgba(241, 232, 216, .6);
  border-radius: 50%;
  background: rgba(13, 10, 8, .5);
  color: var(--cream);
  font: 400 1.6rem/1 var(--display);
  cursor: pointer;
  opacity: var(--veil, 1);
}

/* Offer: the chart's title block ------------------------------------- */

.offer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  row-gap: clamp(3rem, 8vh, 5rem);
  padding: 18vh var(--gutter) 22vh;
}
.offer-head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--bar-h) + 2rem); }
.offer h2 { font-size: clamp(2.6rem, 6vw, 6rem); font-stretch: calc(100% - var(--squeeze, 0) * .9%); }
.offer-head p { font-size: 1.25rem; line-height: 1.45; max-width: 26em; margin: 1.25rem 0 0; }
.cartouche { grid-column: 7 / span 6; margin: 0; border: 5px double var(--cream-soft); padding: .4rem 1.6rem; background: var(--ground-lift); }
.cartouche div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.cartouche div:first-child { border-top: 0; }
.cartouche dt { font: 600 .95rem/1.3 var(--display); font-stretch: 85%; color: var(--cream-soft); padding-top: .32rem; }
.cartouche dd { margin: 0; font-size: 1.3rem; line-height: 1.35; }
.cartouche .lead dd { font: 800 clamp(2.1rem, 3.6vw, 3.3rem)/1 var(--display); font-stretch: 105%; }
.cartouche .lead dd span { font: 400 1.3rem/1 var(--text); font-stretch: normal; }
.cartouche .pending-fact dd { color: var(--cream-soft); }
.steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--cream-soft); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; margin-bottom: .8rem; font: 800 3.6rem/1 var(--display); font-stretch: 70%; color: var(--amber); }
.steps h3 { font-size: 1.65rem; font-stretch: 95%; }
.steps p { margin: .55rem 0 0; max-width: 28em; }

/* Radar: leaving the apartment ---------------------------------------- */

.radar { position: relative; height: 720vh; background: var(--deep); }
.radar-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--cream);
  background: radial-gradient(circle at 50% 50%, #2A2016 0%, var(--deep) 55%, #080605 100%);
}
.radar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-pins { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  visibility: hidden;
}
.pin.is-on { visibility: visible; }
.pin-label {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  padding: .32rem .5rem;
  white-space: nowrap;
  font: 600 .95rem/1 var(--display);
  font-stretch: 85%;
  color: var(--cream);
  background: rgba(13, 10, 8, .82);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.pin.is-left .pin-label { left: auto; right: 25px; }
.pin.is-up .pin-label { left: 50%; top: auto; bottom: 25px; transform: translateX(-50%); }
.pin.is-down .pin-label { left: 50%; top: 25px; transform: translateX(-50%); }
.pin.is-featured .pin-label, .pin.is-filtered .pin-label, .pin:hover .pin-label, .pin:focus-visible .pin-label { opacity: 1; }
/* radar.js found no free room for this label: it shows on hover or focus only. */
.pin.is-crowded:not(:hover):not(:focus-visible) .pin-label { opacity: 0; }
.origin-label { position: absolute; left: 0; top: 0; font: 700 1rem/1 var(--display); font-stretch: 95%; color: var(--cream); opacity: 0; transition: opacity .5s; pointer-events: none; }
.origin-label.is-on { opacity: 1; }

.radar-head { position: absolute; left: var(--gutter); top: calc(var(--bar-h) + 2.5vh); z-index: 4; }
.radar-title { font-size: clamp(2.8rem, 7vw, 6.8rem); font-stretch: 62%; white-space: nowrap; opacity: 0; }
.radar-title span { display: block; margin-top: .7rem; font: 400 clamp(1.15rem, 1.6vw, 1.5rem)/1.3 var(--text); font-stretch: 100%; letter-spacing: 0; color: var(--cream-soft); }
.radar-scale { margin: .9rem 0 0; font: 600 1rem/1 var(--display); font-stretch: 85%; color: var(--amber-soft); font-variant-numeric: tabular-nums; }
.radar-story { position: absolute; left: var(--gutter); bottom: calc(var(--safe-b) + 7vh); z-index: 4; max-width: 25rem; margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.4; text-wrap: pretty; }
.radar-legend { position: absolute; right: var(--gutter); bottom: calc(var(--safe-b) + 7vh); z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; opacity: 0; transition: opacity .5s; }
.radar-legend.is-on { opacity: 1; }
.radar-legend button {
  font: 600 .95rem/1 var(--display);
  font-stretch: 88%;
  color: var(--cream);
  background: rgba(13, 10, 8, .66);
  border: 1px solid rgba(232, 190, 130, .45);
  border-radius: 99px;
  padding: .5rem .8rem;
  cursor: pointer;
  white-space: nowrap;
}
.radar-legend button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.radar-legend b { font-weight: 600; color: var(--amber-soft); margin-left: .35rem; }
.radar-legend button[aria-pressed="true"] b { color: var(--on-amber); }

.place-card {
  position: absolute;
  z-index: 6;
  right: var(--gutter);
  top: calc(var(--bar-h) + 2.5vh);
  width: min(22rem, calc(100% - 2 * var(--gutter)));
  padding: 1.2rem 1.3rem 1.1rem;
  background: var(--ground-lift);
  color: var(--cream);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.place-close { position: absolute; right: .4rem; top: .3rem; width: 2.4rem; height: 2.4rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.place-cat { margin: 0 0 .5rem; font: 600 .9rem/1 var(--display); font-stretch: 85%; color: var(--cream-soft); }
.place-card h3 { font-size: 1.7rem; font-stretch: 95%; line-height: 1; margin-right: 1.8rem; }
.place-card p { margin: .55rem 0 0; }
.place-time { color: var(--cream-soft); font-size: 1rem; }

.iris { position: absolute; inset: 0; z-index: 5; background: var(--ground); }
.iris img { position: absolute; left: 0; top: 0; max-width: none; object-fit: cover; }

/* Places as a list ------------------------------------------------------ */

.places { background: var(--deep); color: var(--cream); padding: 2.5rem var(--gutter) 4rem; }
.places summary { cursor: pointer; font: 700 1.15rem/1.2 var(--display); font-stretch: 95%; }
.places-note { color: var(--cream-soft); max-width: 40em; }
.places-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem 2.5rem; }
.places-groups h3 { font-size: 1.15rem; font-stretch: 90%; color: var(--amber-soft); margin-bottom: .5rem; }
.places-groups ul { list-style: none; margin: 0; padding: 0; }
.places-groups li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.places-groups li span { font-family: var(--display); font-stretch: 85%; color: var(--cream-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* The Cap, then the city: a reel of photos ---------------------------------- */
/* Every photo keeps its own shape (--ratio, set per figure): one row on a phone, captions under the photos; two
   staggered rows on a larger screen, captions over the bottom of each photo. The script sets the chapter's height. */

.city { --title-size: clamp(2.4rem, 5vw, 4.6rem); position: relative; height: 400vh; background: var(--deep); color: var(--cream); }
.city-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.city-title { position: absolute; left: var(--gutter); top: calc(var(--bar-h) + 2vh); font-size: var(--title-size); font-stretch: calc(125% - var(--squeeze, 0) * 1.3%); }
.city-track { display: flex; align-items: center; gap: 4vw; padding: 0 var(--gutter); margin-top: 7vh; will-change: transform; }
.city-row { display: contents; }
.city-row::after { content: ""; order: 999; flex: 0 0 1px; } /* end margin, counted in the reel's length */
.city-track figure { position: relative; flex: 0 0 auto; margin: 0; width: min(calc(36vh * var(--ratio)), 84vw); width: min(calc(36svh * var(--ratio)), 84vw); }
.city-track img { width: 100%; height: auto; aspect-ratio: var(--ratio); object-fit: cover; background: var(--ground-lift); }
.city-track figcaption { display: grid; gap: .3rem; margin-top: .8rem; }
.city-where { font: 600 .95rem/1 var(--display); font-stretch: 85%; color: var(--amber-soft); }
.city-cap { font: 700 clamp(1.15rem, 1.8vw, 1.5rem)/1.1 var(--display); font-stretch: 95%; text-wrap: balance; }
.city-credit { font-size: .8rem; line-height: 1.3; color: var(--cream-soft); }
.city-credit a { color: inherit; }

@media (min-width: 720px) and (min-height: 520px) {
  .js .city:not(.is-static) .city-track {
    --row-h: calc((100vh - var(--bar-h) - var(--title-size) - 11vh) / 2);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4vh;
    flex-direction: column;
    align-items: stretch;
    gap: 2vh;
    margin: 0;
    padding: 0;
  }
  @supports (height: 1svh) {
    .js .city:not(.is-static) .city-track { --row-h: calc((100svh - var(--bar-h) - var(--title-size) - 11svh) / 2); bottom: 4svh; gap: 2svh; }
  }
  .js .city:not(.is-static) .city-row { display: flex; gap: 1.6vw; padding-left: var(--gutter); will-change: transform; }
  .js .city:not(.is-static) .city-row + .city-row { padding-left: calc(var(--gutter) + 14vw); }
  .js .city:not(.is-static) .city-row::after { flex-basis: 2.4rem; } /* the reel ends clear of the chapter rail */
  .js .city:not(.is-static) .city-track figure { width: calc(var(--row-h) * var(--ratio)); height: var(--row-h); }
  .js .city:not(.is-static) .city-track img { height: 100%; }
  .js .city:not(.is-static) .city-track figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4rem 1rem .85rem; background: linear-gradient(to bottom, transparent, rgba(8, 6, 5, .6) 40%, rgba(8, 6, 5, .92)); }
  .js .city:not(.is-static) .city-credit { color: rgba(241, 232, 216, .8); }
}

.city.is-static, html:not(.js) .city { height: auto; }
:is(.city.is-static, html:not(.js) .city) .city-stage { position: static; height: auto; padding: calc(var(--bar-h) + 4rem) 0 4rem; }
:is(.city.is-static, html:not(.js) .city) .city-title { position: static; padding: 0 var(--gutter) 2rem; }
:is(.city.is-static, html:not(.js) .city) .city-track { overflow-x: auto; margin-top: 0; padding-bottom: 1rem; align-items: flex-start; }

/* Contact ----------------------------------------------------------------- */

.contact { position: relative; overflow: hidden; padding: 22vh var(--gutter) 18vh; }
.contact h2 { position: relative; font-size: clamp(3rem, 9.5vw, 9.5rem); font-stretch: calc(125% - var(--squeeze, 0) * 1.3%); max-width: 11ch; }
.contact > p { font-size: 1.3rem; max-width: 30em; margin: 1.6rem 0 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1.05rem 1.55rem;
  border: 2px solid var(--amber);
  border-radius: 99px;
  background: var(--amber);
  color: var(--on-amber);
  font: 700 1.1rem/1 var(--display);
  font-stretch: 95%;
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.share-status { min-height: 1.5em; margin: 1rem 0 0; color: var(--cream-soft); }

/* The visit request: a ticket with two notches, filled in one go, stamped once sent. It sits above the compass rose,
   which passes under it. */
.visit { --pad: clamp(1.25rem, 4vw, 2.4rem); position: relative; z-index: 3; max-width: 46rem; margin: 0 0 2rem; padding: var(--pad); border-radius: 1.1rem; background: var(--ground-lift); box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, .6); }
.visit.is-stamping { animation: visit-thump .3s .36s ease-out; }
.visit-tag { position: relative; display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.8rem; padding-bottom: 1.1rem; border-bottom: 1.5px dashed var(--line); font: 700 .85rem/1.2 var(--display); font-stretch: 88%; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-soft); transition: opacity .5s, filter .5s; }
.visit-tag::before, .visit-tag::after { content: ""; position: absolute; bottom: -.8rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ground); }
.visit-tag::before { left: calc(-1 * var(--pad) - .8rem); }
.visit-tag::after { right: calc(-1 * var(--pad) - .8rem); }
.visit-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem 2rem; transition: opacity .5s, filter .5s; }
.field { display: grid; align-content: start; gap: .3rem; }
.field label, .choices legend { padding: 0; font: 600 .95rem/1.25 var(--display); font-stretch: 90%; color: var(--cream-soft); }
:is(.field label, .choices legend) small { margin-left: .35rem; font-weight: 400; color: color-mix(in srgb, var(--cream-soft) 70%, transparent); }
.field input, .field textarea {
  width: 100%;
  padding: .4rem 0 .5rem;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  outline: none;
  /* The amber underline grows from the left on focus. */
  background: linear-gradient(var(--amber), var(--amber)) no-repeat left bottom / 0 2px;
  color: var(--cream);
  font: 400 1.3rem/1.35 var(--text);
  transition: background-size .35s ease-out, border-color .2s;
}
.field input:focus, .field textarea:focus { background-size: 100% 2px; }
.field textarea { min-height: 5.5rem; resize: vertical; }
.field ::placeholder { color: color-mix(in srgb, var(--cream-soft) 60%, transparent); }
.field [aria-invalid="true"] { border-bottom-color: var(--amber); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--cream); box-shadow: 0 0 0 4rem var(--ground-lift) inset; }
.field-error { margin: .15rem 0 0; color: var(--amber); font: 600 .92rem/1.3 var(--display); font-stretch: 92%; }
.field-error:empty { display: none; }
.choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; padding: .68rem 1.1rem; border: 1.5px solid var(--line); border-radius: 99px; font: 600 1.02rem/1 var(--display); font-stretch: 92%; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.chip:hover span { border-color: var(--amber-soft); }
.chip input:checked + span { border-color: var(--amber); background: var(--amber); color: var(--on-amber); }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }
.chip input:active + span { transform: scale(.95); }
.visit-send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.2rem; transition: opacity .5s, filter .5s; }
.visit-send .btn::after { content: "→"; margin-left: .7rem; transition: transform .25s; }
.visit-send .btn:hover::after { transform: translateX(4px); }
.visit.is-sending .btn { opacity: .7; cursor: progress; }
.visit-note { flex: 1 1 16rem; margin: 0; font-size: .95rem; line-height: 1.45; color: var(--cream-soft); }
.visit-status { margin: 1rem 0 0; color: var(--amber-soft); }
.visit-status:empty { display: none; }
.visit.is-sent :is(.visit-fields, .visit-send, .visit-tag) { opacity: .14; filter: blur(1.5px); }
.visit.is-instant :is(.visit-fields, .visit-send, .visit-tag) { transition: none; }
.visit-done { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; justify-items: center; gap: 1.3rem; padding: var(--pad); border-radius: inherit; text-align: center; background: radial-gradient(closest-side, var(--ground-lift) 40%, transparent); }
.visit-done[hidden] { display: none; }
.stamp { width: clamp(7.5rem, 22vw, 10rem); height: auto; overflow: visible; color: var(--amber); transform: rotate(-10deg); }
.stamp circle { fill: none; stroke: currentColor; }
.stamp text { fill: currentColor; font: 700 14px var(--display); font-stretch: 85%; text-transform: uppercase; }
.stamp-check { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.visit-thanks { max-width: 25em; margin: 0; font-size: 1.25rem; line-height: 1.45; }
.visit-thanks:focus { outline: none; }
.visit-thanks strong { display: block; margin-bottom: .5rem; font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); font-stretch: 78%; }
.visit-address { color: var(--amber-soft); overflow-wrap: anywhere; }
.visit.is-stamping .stamp { animation: stamp-down .6s cubic-bezier(.3, 1.45, .5, 1) both; }
.visit.is-stamping .stamp-check { animation: stamp-check .45s .45s ease-out both; }
.visit.is-stamping .visit-thanks { animation: thanks-rise .5s .6s ease-out both; }
@keyframes stamp-down { from { opacity: 0; transform: scale(2.3) rotate(-30deg); } 50% { opacity: 1; } to { opacity: 1; transform: scale(1) rotate(-10deg); } }
@keyframes stamp-check { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes thanks-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes visit-thump { 40% { transform: translateY(3px) scale(.994); } }
@media (min-width: 720px) {
  .visit-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .visit-fields > .wide { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .visit.is-stamping, .visit.is-stamping :is(.stamp, .stamp-check, .visit-thanks) { animation: none; }
}

.foot { background: var(--deep); color: var(--cream-soft); padding: 3rem var(--gutter) calc(var(--safe-b) + 3rem); font-size: .95rem; }
.foot p { max-width: 62em; margin: 0 0 .8rem; }
.foot a { color: var(--cream); }

/* Phone ------------------------------------------------------------------- */

@media (max-width: 719px) {
  .sound { padding: .42rem .7rem; }

  .rooms-intro { top: calc(var(--bar-h) + .5rem); right: var(--gutter); }
  .rooms-intro h1 { font-size: 3.1rem; }
  .lede { font-size: 1.05rem; margin: .6rem 0 .3rem; }
  .hint { font-size: .92rem; }
  .deck { left: 50%; top: 66%; }
  .room-view-figure { gap: .8rem; }
  .room-view-note { font-size: 1rem; }

  .offer { padding: 12vh var(--gutter) 14vh; }
  .offer-head, .cartouche, .steps { grid-column: 1 / -1; }
  .offer-head { position: static; }
  .cartouche { padding: .3rem 1.1rem; }
  .cartouche div { grid-template-columns: 1fr; gap: .15rem; }
  .steps { grid-template-columns: 1fr; }

  .radar-head { right: var(--gutter); top: calc(var(--bar-h) + .5rem); }
  .radar-title { font-size: 2.4rem; }
  .radar-story { right: var(--gutter); bottom: calc(var(--safe-b) + 4.6rem); font-size: 1.05rem; }
  .radar-legend { left: 0; right: 0; bottom: calc(var(--safe-b) + .9rem); flex-direction: row; align-items: center; overflow-x: auto; padding: 0 var(--gutter) .2rem; scrollbar-width: none; }
  .place-card { top: auto; bottom: calc(var(--safe-b) + .9rem); }

  .contact { padding: 14vh var(--gutter) 12vh; }
}

/* Preview mode (?view=): the body is the scroller. */
html.preview { overflow: hidden; }
html.preview body { height: 100vh; overflow-y: auto; }
html.preview .bar, html.preview .pin-label, html.preview .radar-legend, html.preview .origin-label,
html.preview .gate-actions, html.preview .radar-found, html.preview .rail, html.preview .rail-name { transition: none !important; }

/* Entry gate: a dial counts the loading, then a porthole opens -------------- */

.gate { display: none; }
.js .gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 4vh, 3rem) var(--gutter);
  /* A window too short for the door and its buttons (a phone on its side) scrolls inside the gate instead of
     hiding the way in. */
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--cream);
  background: radial-gradient(circle at 50% 45%, #2A2016 0%, var(--deep) 60%, #080605 100%);
  --hole: -2px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
html.gate-open, html.gate-open body { overflow: hidden; }
.gate-inner { position: relative; display: grid; justify-items: center; gap: 1.1rem; text-align: center; }
/* With a mouse, a warm light follows the pointer and lifts a watermark of the name out of the dark around it. */
.gate-light { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .6s; }
.gate-light.is-on { opacity: 1; }
.gate-light::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 26rem at var(--mx, 50%) var(--my, 50%), rgba(233, 150, 58, .12), transparent 70%); }
.gate-mark { position: absolute; inset: 0; -webkit-mask: radial-gradient(circle 12rem at var(--mx, 50%) var(--my, 50%), #000, transparent); mask: radial-gradient(circle 12rem at var(--mx, 50%) var(--my, 50%), #000, transparent); }
.gate-mark-text { position: absolute; inset: -30%; margin: 0; transform: rotate(-14deg); font: 800 1.05rem/2.7 var(--display); font-stretch: 90%; letter-spacing: .32em; word-spacing: .5em; color: rgba(232, 190, 130, .22); }
/* The dial takes the height left once the title, facts and buttons are placed (16rem of text on a wide screen, 21.5rem
   on a phone where the buttons stack), so the buttons stay on screen on a laptop or a small phone. */
.gate-dial { --gate-text: 16rem; position: relative; display: grid; place-items: center; width: min(64vmin, 30rem); width: min(64vmin, 30rem, max(7.5rem, 100svh - 2 * clamp(.75rem, 4vh, 3rem) - var(--gate-text))); aspect-ratio: 1; }
@media (max-width: 719px) { .gate-dial { --gate-text: 21.5rem; } }
.gate-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.gate-track { fill: none; stroke: rgba(232, 190, 130, .25); stroke-width: .8; }
.gate-ticks { fill: none; stroke: rgba(232, 190, 130, .55); stroke-width: 4; stroke-dasharray: .7 4.3; }
.gate-fill { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-dasharray: 100; stroke-dashoffset: 100; }
.gate-count { position: relative; margin: 0; font: 900 clamp(4.5rem, 17vmin, 10.5rem)/1 var(--display); font-stretch: 62%; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.gate.is-ready .gate-count { opacity: 0; transform: scale(1.35); }
/* Once the rooms are in, the dial turns into the door of apartment A: its brass letter, its plate, its lock. The key
   slides into the lock; the visit turns it a quarter, then the door opens as a porthole. */
.gate-door { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity 1s ease; }
.gate.is-ready .gate-door { opacity: 1; }
.door-ground { fill: #1C1611; }
.door-panel { fill: none; stroke: rgba(232, 190, 130, .17); stroke-width: .8; }
.door-number { font: 800 64px var(--display); font-stretch: 88%; fill: url(#brass); text-anchor: middle; }
.door-plate { font: 700 5.8px var(--display); letter-spacing: 1px; fill: var(--cream-soft); text-anchor: middle; }
.door-lock rect { fill: rgba(0, 0, 0, .3); stroke: url(#brass); stroke-width: 1.4; }
.door-lock path { fill: var(--deep); }
.door-key { opacity: 0; transform: translateX(26px); transition: opacity .4s .5s, transform .7s .5s cubic-bezier(.2, .8, .2, 1); }
.gate.is-ready .door-key { opacity: 1; transform: none; }
.door-key-turn { transform-box: view-box; transform-origin: 100px 132px; transition: transform .45s cubic-bezier(.5, 0, .3, 1.35); }
.gate.is-unlocking .door-key-turn { transform: rotate(90deg); }
.door-key path, .door-key rect { fill: url(#brass); }
.door-key circle { fill: none; stroke: url(#brass); stroke-width: 3; }
.gate-title { max-width: 24ch; margin: 0; font: 700 clamp(1.3rem, 2.3vw, 1.9rem)/1.1 var(--display); font-stretch: 100%; letter-spacing: -.015em; }
.nowrap { white-space: nowrap; }
.gate-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .7rem; margin: -.2rem 0 0; padding: 0; list-style: none; font: 700 .9rem/1.2 var(--display); font-stretch: 90%; letter-spacing: .07em; text-transform: uppercase; color: var(--amber-soft); }
.gate-facts li + li::before { content: "·"; margin-right: .7rem; color: var(--amber); }
.gate-status { margin: 0; min-height: 1.5em; color: var(--cream-soft); }
.gate.is-ready .gate-status { color: var(--cream); font-size: 1.3rem; font-style: italic; }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .4rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s, transform .5s, visibility 0s .5s; }
.gate.is-ready .gate-actions { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .5s; }
.gate .btn.ghost { color: var(--cream); border-color: rgba(241, 232, 216, .7); }

/* Chapter rail: a course line with six buoys ------------------------------ */

.rail { --rail-fg: var(--cream); --rail-bg: var(--ground); position: fixed; right: 1.1rem; top: 50%; z-index: 45; height: 46vh; transform: translateY(-50%); color: var(--rail-fg); font: 600 .85rem/1 var(--display); font-stretch: 85%; transition: color .4s, opacity .3s; }
body.on-dark .rail { --rail-fg: var(--cream); --rail-bg: var(--deep); }
.rail-track { position: absolute; right: 5px; top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, color-mix(in srgb, currentColor 50%, transparent) 0 4px, transparent 4px 9px); }
.rail-run { position: absolute; left: -1px; top: 0; width: 3px; height: calc(var(--rail-p, 0) * 100%); background: var(--amber); }
.rail ol { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.rail li { position: absolute; right: 0; top: var(--at, 0%); transform: translateY(-50%); }
.rail a { position: relative; display: flex; align-items: center; gap: .55rem; padding: .35rem 0; text-decoration: none; }
.rail a::after { content: ""; width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 50%; background: var(--rail-bg); }
.rail a.is-current::after { background: var(--amber); border-color: var(--amber); }
.rail-num { min-width: 1.7em; text-align: right; opacity: .75; }
.rail-name { position: absolute; right: 2.9rem; padding: .3rem .5rem; white-space: nowrap; background: var(--rail-bg); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.rail a.is-current .rail-name, .rail a:hover .rail-name, .rail a:focus-visible .rail-name { opacity: 1; transform: none; }

/* Radar: counter of places found, minutes on labels ----------------------- */

.radar-found { position: absolute; z-index: 4; right: var(--gutter); top: calc(var(--bar-h) + 2.5vh); display: grid; justify-items: end; margin: 0; opacity: 0; transition: opacity .5s; }
.radar-found.is-on { opacity: 1; }
.radar-found b { font: 900 clamp(3rem, 6vw, 5.2rem)/.9 var(--display); font-stretch: 62%; color: var(--amber); font-variant-numeric: tabular-nums; }
.radar-found span { font: 600 .95rem/1.2 var(--display); font-stretch: 85%; color: var(--cream-soft); }
.pin-label small { display: block; margin-top: .22rem; font-size: .8rem; font-weight: 500; color: var(--amber-soft); }

/* Contact: a compass rose that inverts what it crosses -------------------- */

.rose { position: absolute; left: var(--rx, 74%); top: var(--ry, 38%); z-index: 2; width: clamp(13rem, 34vmin, 26rem); height: auto; color: var(--cream); fill: var(--cream); mix-blend-mode: difference; pointer-events: none; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); will-change: transform, left, top; }

@media (min-width: 720px) {
  .radar-legend, .place-card, .radar-found { right: calc(var(--gutter) + 2.4rem); }
}
@media (max-width: 719px) {
  .rail { top: 0; right: 0; left: 0; height: 3px; transform: none; z-index: 51; }
  .rail ol { display: none; }
  .rail-track { inset: 0; width: auto; height: 3px; background: transparent; }
  .rail-run { left: 0; top: 0; width: calc(var(--rail-p, 0) * 100%); height: 3px; }
  .radar-found { right: auto; left: var(--gutter); top: calc(var(--bar-h) + 8.2rem); grid-auto-flow: column; align-items: baseline; justify-items: start; gap: .5rem; }
  .radar-found b { font-size: 2.2rem; }
  .rose { --rx: 82%; --ry: 24%; width: 12rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-actions, .rail-name { transition: none; }
  .door-key, .door-key-turn { transition: none; }
}

/* Seasons: the words, the night rising, then the season's video -------------- */
/* Nothing may sit in front of a YouTube player or crop it: the title sits above the frame, the bar and the rail
   step aside while the night is up, and the frame keeps the video's own 16:9 shape. */

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.seasons { position: relative; height: 820vh; }
.seasons-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; container-type: size; }
.tide { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at 50% 50%, #3A2A1B 0%, #1C1510 55%, var(--deep) 100%); transform: translateY(100%); will-change: transform; }
.season { position: absolute; inset: 0; pointer-events: none; }

.season-lead {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 50%;
  z-index: 1;
  margin: 0;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 900;
  font-size: 15vw;
  line-height: .84;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.season-lead span { display: inline-block; }
/* Summer opens out: the word widens until it holds the whole width. */
.season-summer .season-lead { color: var(--amber); font-stretch: calc(62% + var(--grow, 1) * 63%); }
/* Winter heats up: the lines thicken and turn from cream to amber. */
.season-winter .season-lead span { display: block; }
.season-winter .season-lead {
  color: var(--cream);
  color: color-mix(in oklab, var(--amber) calc(var(--grow, 1) * 100%), var(--cream));
  font-weight: calc(250 + var(--grow, 1) * 650);
  font-stretch: calc(72% + var(--grow, 1) * 38%);
}
@media (orientation: portrait) {
  .season-summer .season-lead span { display: block; }
}

.reel {
  --band: clamp(4.75rem, 10vh, 7.5rem);
  --reel-w: min(100cqw, calc((100cqh - var(--band)) * 16 / 9));
  position: absolute;
  inset: 0;
  z-index: 3;
  width: var(--reel-w);
  margin-inline: auto;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: var(--band) auto;
  grid-template-areas: "title sound" "frame frame";
  color: var(--cream);
}
.reel-title { grid-area: title; align-self: end; margin: 0; padding: 0 1rem .85rem var(--gutter); font-size: clamp(1.5rem, 3.1vw, 3rem); font-stretch: 82%; line-height: 1; text-wrap: balance; opacity: 0; transform-origin: 0 100%; }
.reel-sound {
  grid-area: sound;
  align-self: end;
  margin: 0 var(--gutter) .85rem 0;
  padding: .5rem .9rem;
  border: 1.5px solid var(--cream);
  border-radius: 99px;
  background: transparent;
  color: var(--cream);
  font: 600 1rem/1 var(--display);
  font-stretch: 85%;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  visibility: hidden;
}
.reel-sound[aria-pressed="true"] { background: var(--cream); color: var(--deep); }
.reel-frame { grid-area: frame; position: relative; aspect-ratio: 16 / 9; background: #000; clip-path: inset(50% 0); pointer-events: auto; visibility: hidden; }
.reel.is-on .reel-sound, .reel.is-on .reel-frame { visibility: visible; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; visibility: hidden; }
.reel-frame.is-live iframe { visibility: visible; }

body.in-cinema .bar, body.in-cinema .rail { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }

@media (max-width: 719px) {
  .reel { --reel-w: 100cqw; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "title" "frame" "sound"; }
  .reel-title { padding: 0 var(--gutter) 1.1rem; font-size: 2rem; }
  .reel-sound { justify-self: start; margin: 1.1rem 0 0 var(--gutter); }
}

/* Reduced motion: the seasons stand one under the other, each video behind its still and a play button. */
.seasons.is-static { height: auto; padding: 12vh 0 16vh; }
.is-static .seasons-stage { position: static; height: auto; overflow: visible; container-type: normal; }
.is-static .tide { display: none; }
.is-static .season { position: static; pointer-events: auto; }
.is-static .season + .season { margin-top: 14vh; }
.is-static .season-lead { position: static; transform: none; margin: 0 var(--gutter) 2.5rem; }
.is-static .reel { position: static; display: block; width: auto; max-width: 72rem; margin: 0 var(--gutter); color: var(--cream); }
.is-static .reel-title { padding: 0 0 1rem; opacity: 1; }
.is-static .reel-frame { clip-path: none; visibility: visible; background: var(--deep); }
.is-static .reel-frame iframe { visibility: visible; }
.reel-poster { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.reel-poster img { width: 100%; height: 100%; object-fit: cover; }
.reel-play { position: absolute; left: 50%; top: 50%; width: clamp(4rem, 7vw, 6rem); aspect-ratio: 1; border-radius: 50%; background: var(--amber); transform: translate(-50%, -50%); }
.reel-play::before { content: ""; position: absolute; left: 54%; top: 50%; width: 34%; height: 38%; background: var(--on-amber); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translate(-50%, -50%); }

/* Without JavaScript, or when a script failed before the entry gate was wired (index.html then drops the "js" class):
   the rooms stand in a grid of links to the large photos, the offer and the places read as they are, the reel scrolls
   sideways, and what needs a script steps aside. */
html:not(.js) :is(.sound, .rail, .hint, .share, .seasons, .radar) { display: none; }
html:not(.js) .rooms { height: auto; min-height: 0; overflow: visible; padding: calc(var(--bar-h) + 3rem) var(--gutter) 4rem; }
html:not(.js) .rooms-intro { position: static; }
html:not(.js) .deck { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem 1rem; width: auto; height: auto; margin-top: 2.5rem; }
html:not(.js) .room-card { position: static; width: auto; height: auto; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; text-decoration: none; }
html:not(.js) .room-card img { aspect-ratio: 4 / 3; height: auto; }
html:not(.js) .room-card-name { display: block; margin-top: .5rem; font: 700 1.1rem/1.1 var(--display); font-stretch: 92%; }
