:root { color-scheme: dark; background: #070912; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition { background: #070912; }
  ::view-transition-old(root) { animation: night-exit .18s ease-in both; }
  ::view-transition-new(root) { animation: night-enter .22s .16s ease-out both; }
  @keyframes night-exit { to { opacity: 0; } }
  @keyframes night-enter { from { opacity: 0; } }
}
.night-tour {
  --bg: #070912;
  --ink: #edf1ff;
  --ink-2: #c4cbe1;
  --muted-2: #a1abc5;
  --moon: #b9c6ff;
  --line: rgb(150 170 255 / 14%);
  --line-2: rgb(150 170 255 / 28%);
  --hw-orange: var(--moon);
  --hw-orange-2: #c3cfff;
  --hw-line: var(--line);
  --hw-line-2: var(--line-2);
  --hw-ink-dark: #0b1020;
  --hw-r: 18px;
  --hw-r2: 12px;
  background: var(--bg);
  color: var(--ink);
}
.night-tour::before, .night-tour::after { content: none; background: none; }
.night-tour .nav { background: rgb(7 9 18 / 86%); border-bottom: 1px solid var(--line); }
.night-tour .nav.scrolled { background: rgb(7 9 18 / 96%); }
@media (min-width: 981px) and (max-width: 1350px) {
  .night-tour #nav .nav-links, .night-tour #nav .nav-cta { display: none; }
  .night-tour #nav .knav-toggle { display: flex; }
}
.night-tour [hidden] { display: none !important; }
.night-tour :focus-visible { outline: 2px solid var(--moon); outline-offset: 4px; }
.night-skip { position: fixed; top: 8px; left: 8px; z-index: 500; padding: 14px; background: var(--ink); color: var(--bg); transform: translateY(-160%); }
.night-skip:focus { transform: none; }
.noct-rail, .night-tour #programs > .wrap {
  width: min(1200px, 89%);
  padding-inline: 0;
  margin-inline: auto;
}
.noct-hero { position: relative; isolation: isolate; overflow: hidden; background: #0d1120; }
.noct-backdrop, .noct-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.noct-backdrop { z-index: -3; object-fit: cover; object-position: 50% 66%; }
.noct-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgb(6 8 17 / 94%), rgb(6 8 17 / 74%) 28%, rgb(6 8 17 / 16%) 63%, transparent 85%),
              linear-gradient(0deg, #070912 0%, rgb(7 9 19 / 34%) 24%, transparent 46%, rgb(7 9 19 / 15%));
}
.noct-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(130deg, rgb(91 105 162 / 46%), rgb(117 140 201 / 12%) 58%, transparent);
  opacity: 0; animation: noct-dusk 1.05s ease-out both;
}
@keyframes noct-dusk { from { opacity: 1; } to { opacity: 0; } }
.noct-hero > .noct-rail { position: relative; z-index: 2; padding-top: 104px; }
.noct-crumb { display: flex; align-items: center; gap: 12px; font: 400 12px/1.5 var(--font-b); color: #dfe5ff; }
.noct-crumb a { color: #b9c6ff; }
.noct-crumb a:hover, .noct-secondary:hover { color: var(--moon); }
.noct-crumb span { opacity: .55; }
.noct-intro { padding: clamp(52px, 8vh, 98px) 0 clamp(62px, 10vh, 116px); }
.noct-time.hero-pill {
  display: inline-flex; width: fit-content; margin: 0; gap: 9px; padding: 8px 14px;
  border: 1px solid rgba(150,170,255,.45); color: #dfe5ff; background: rgba(90,110,200,.14);
  font: 600 11px/1.4 var(--font-d); letter-spacing: .08em; text-transform: uppercase;
}
.noct-moon { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 5px -3px 0 var(--moon); transform: rotate(-20deg); }
.night-tour .noct-hero h1, .night-tour main h2 {
  font-family: var(--font-d); font-weight: 800; letter-spacing: -.024em; text-transform: uppercase;
}
.night-tour .noct-hero h1 { margin: 21px 0 19px; font-size: clamp(37px, 4.4vw, 72px); line-height: 1.05; max-width: 18ch; text-wrap: balance; }
.night-tour .noct-hero h1 > span { display: block; color: #b9c6ff; }
.noct-lead { max-width: 555px; color: #e2e7f8; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.58; text-wrap: pretty; }
.noct-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 27px; margin-top: 27px; }
.noct-primary, .night-tour .hwp-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 23px;
  min-height: 48px; border-radius: 100px; border: 1px solid transparent; background: #a9b8ff;
  color: var(--hw-ink-dark); font: 700 13px/1.35 var(--font-d); text-decoration: none; text-transform: uppercase;
  letter-spacing: 0; transition: background .18s ease, transform .18s ease;
}
.noct-primary:hover, .night-tour .hwp-go:hover { background: #c3cfff; color: var(--hw-ink-dark); transform: translateY(-1px); box-shadow: none; }
.noct-primary > span { font-size: 21px; line-height: .7; }
.night-tour .noct-secondary { border-color: rgba(150,170,255,.45); background: rgb(10 16 40 / 74%); color: #dfe5ff; }
.night-tour .noct-secondary:hover { border-color: #b9c6ff; color: white; background: #1a2544; }
.noct-quick { margin-top: 20px; color: #c5cfe8; font-size: 13px; line-height: 1.7; }
.noct-quick span { margin-inline: 5px; color: #9cafff; }
.noct-spider-scene, .noct-gallery-spider { position: absolute; pointer-events: none; }
.noct-spider-scene { z-index: 1; top: 22%; right: 5%; width: 16%; height: 55%; }
.noct-spider-scene .night-spider { top: 12%; right: 20%; --spider-size: clamp(69px, 7.4vw, 115px); --spider-angle: -24deg; }
.noct-gallery-spider { bottom: 0; left: 6%; width: 120px; height: 60px; }
.noct-gallery-spider .night-spider { right: 30%; top: 0; --spider-size: 62px; --spider-angle: 48deg; }
.noct-gallery { position: relative; padding-block: clamp(52px, 7vw, 98px) 90px; scroll-margin-top: 65px; }
.night-tour main h2 { font-size: clamp(23px, 2.8vw, 42px); line-height: 1.14; margin: 0; color: var(--ink); text-wrap: balance; }
.night-tour main h2 em { color: #c3cfff; font-weight: inherit; font-style: normal; }
.noct-heading { display: grid; grid-template-columns: 1.08fr .92fr; align-items: end; gap: 7%; }
.noct-heading p, .noct-book-lead, .noct-visit p { font: 400 16px/1.55 var(--font-b); color: var(--ink-2); }
.noct-heading p { max-width: 490px; }
.noct-frames { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 22px; margin-top: 33px; }
.noct-frame {
  position: relative; grid-column: span 5; isolation: isolate; overflow: hidden; margin: 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(260px, 26vw, 360px);
  border: 1px solid rgb(150 170 255 / 26%); border-radius: 18px; background: #090c17;
}
.noct-frame:nth-child(1), .noct-frame:nth-child(4) { grid-column: span 7; }
.noct-frame img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.noct-frame:first-child img { object-position: 58% center; }
.noct-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(5 8 19 / 97%), rgb(5 8 19 / 70%) 26%, transparent 65%); }
.noct-frame figcaption { padding: clamp(16px, 1.8vw, 25px); }
.noct-frame figcaption strong { display: block; font: 700 clamp(16px, 1.5vw, 22px)/1.2 var(--font-d); color: #f0f3ff; }
.noct-frame figcaption p { margin-top: 7px; max-width: 56ch; color: #dbe2f5; font-size: 14px; line-height: 1.45; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .noct-frame:hover img { transform: scale(1.025); } }
.noct-album { margin-top: clamp(30px, 4vw, 54px); }
.noct-album h3 { margin: 0 0 16px; color: var(--ink); font: 700 clamp(17px, 1.6vw, 24px)/1.3 var(--font-d); }
.noct-shots { display: grid; grid-template-columns: 2fr 4.5fr 2fr 2fr; gap: clamp(9px, 1.1vw, 16px); }
.noct-shot { min-width: 0; margin: 0; }
.noct-shot a { display: block; border-radius: 14px; cursor: zoom-in; }
.noct-shot img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: inherit; }
.noct-shot:nth-child(2) img { aspect-ratio: 3 / 2; }
.noct-shot figcaption { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
@media (max-width: 640px) {
  .noct-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .noct-shot img, .noct-shot:nth-child(2) img { aspect-ratio: 4 / 5; }
  .noct-shot figcaption { font-size: 13px; }
}
.night-tour #programs { background: #0b1020; border-block: 1px solid var(--line); padding: clamp(46px, 6.5vw, 88px) 0; }
.night-tour #programs .sec-head { margin-bottom: 30px; }
.noct-book-lead { margin: 12px 0 0; }
.night-tour .hwp-step { color: #dfe5ff; font: 500 17px/1.4 var(--font-b); letter-spacing: 0; text-transform: none; }
.night-tour .hwp-step span { background: transparent; border: 1px solid var(--line-2); color: var(--moon); font: 500 13px/1 var(--font-b); }
.night-tour .hwp-side, .night-tour .hwp-prog { background: #101526; }
.night-tour .hwp-side { position: static; }
.night-tour .hwp-prog.on { box-shadow: none; border-color: var(--moon); background: #192341; }
.night-tour .hwp-total, .night-tour .hwp-day.on { background: rgb(150 170 255 / 7%); }
.night-tour .hwp-guests, .night-tour .hwp-sched { background: #0d1120; }
.night-tour .hwp-progs, .night-tour .hwp-mode { gap: 9px; }
.night-tour .hwp-name, .night-tour .hwp-pr, .night-tour .hwp-sum b { font-family: var(--font-d); }
.night-tour .hwp-go { display: flex; }
.night-tour .hwp-prog {
  --card-photo: url("media/night-short-card.webp");
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; border-color: rgb(150 170 255 / 32%);
  background: #0e1424; transition: border-color .2s, box-shadow .2s;
}
.night-tour .hwp-prog[data-p="night"] { --card-photo: url("media/night-long-card.webp"); }
.night-tour .hwp-prog::before {
  content: ""; position: absolute; z-index: -1; right: 0; top: 0; width: 100%; height: 170px;
  background: linear-gradient(90deg,#0d1220 14%,rgb(13 18 32 / 94%) 33%,rgb(13 18 32 / 68%) 58%,rgb(13 18 32 / 10%)),
              linear-gradient(0deg,#0e1424,transparent 32%),var(--card-photo) right 48% / 72% auto no-repeat;
}
.night-tour .hwp-prog.on { border-color: #a9b8ff; box-shadow: 0 0 0 1px #a9b8ff inset, 0 12px 30px -23px #728afc; }
.night-tour .hwp-prog:hover { border-color: #b9c6ff; }
.night-tour .hwp-pick { min-height: 140px; grid-template-columns: 22px minmax(0,1fr); gap: 6px 11px; padding: 17px 18px 6px; }
.night-tour .hwp-dot { width: 19px; height: 19px; border-color: #97a6d0; }
.night-tour .hwp-prog.on .hwp-dot { background: #a9b8ff; border-color: #a9b8ff; }
.night-tour .hwp-prog.on .hwp-dot::after { content: ""; display: block; width: 8px; height: 4px; border: solid #0b1020; border-width: 0 0 2px 2px; transform: translate(3px,4px) rotate(-45deg); }
.night-tour .hwp-name { font-size: clamp(20px, 2vw, 28px); font-weight: 800; }
.night-tour .hwp-meta, .night-tour .hwp-when:empty { display: none; }
.night-tour .hwp-line { max-width: 29ch; color: #dbe3ff; font-size: 14px; line-height: 1.45; }
.night-tour .hwp-pr { grid-column: 2; text-align: left; }
.night-tour .hwp-pr i { display: inline; margin-left: 5px; color: #c8d2eb; }
.night-tour .hwp-more { margin: 1px 16px 14px 50px; color: #b9c6ff; }
.night-tour .hwp-detail { margin-left: 18px; }
.night-tour .hwp-go { text-transform: none; font-family: var(--font-b); font-size: 15px; }
.night-tour .hwp-guests { background: transparent; }
.night-tour .noct-faq .noct-under { margin-top: 0; }
@media (max-width: 400px) {
  .night-tour .hwp-prog::before { background-size: auto,auto,90% auto; }
  .night-tour .hwp-line { max-width: 22ch; }
}
.night-tour .hwp-pr { color: var(--moon); }
.noct-visit { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding-block: clamp(52px, 7vw, 95px); }
.noct-visit .noct-address { margin: 22px 0 4px; color: var(--ink); font-size: 18px; }
.noct-under { display: inline-block; margin-top: 14px; color: var(--moon); text-decoration: underline; text-underline-offset: 5px; }
.noct-faq details { border-bottom: 1px solid var(--line-2); padding: 0; }
.noct-faq details:first-child { border-top: 1px solid var(--line-2); }
.noct-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 0; cursor: pointer; color: var(--ink); font-size: 17px; list-style: none; }
.noct-faq summary::-webkit-details-marker { display: none; }
.noct-faq summary::after { content: "+"; font-size: 23px; color: var(--moon); line-height: 1; }
.noct-faq details[open] summary::after { content: "−"; }
.noct-faq details p { padding: 0 22px 18px 0; }
.noct-fallback { padding: 26px 5.5%; border-top: 1px solid var(--line); color: var(--muted-2); }
.night-tour :is(#why,#faq,#price,#rules,#how) { scroll-margin-top: 84px; }
@media (max-width: 760px) {
  .noct-hero > .noct-rail { padding-top: 86px; }
  .noct-intro { padding: 70px 0 45px; }
  .noct-rail, .night-tour #programs > .wrap { width: min(90%, 630px); }
  .noct-hero .noct-backdrop { object-position: 58% 60%; }
  .noct-shade { background: linear-gradient(90deg, rgb(6 8 17 / 76%), rgb(8 10 22 / 28%) 76%), linear-gradient(0deg, #070912 0%, rgb(8 10 22 / 63%) 24%, transparent 88%); }
  .night-tour .noct-hero h1 { font-size: clamp(28px, 6.4vw, 46px); line-height: 1.1; }
  .noct-lead { max-width: 380px; }
  .noct-spider-scene { top: 19%; right: 3%; }
  .noct-spider-scene .night-spider { --spider-size: 58px; }
    .noct-heading, .noct-visit { grid-template-columns: 1fr; gap: 18px; }
  .noct-visit { gap: 32px; }
  .noct-frames { gap: 18px 12px; margin-top: 24px; }
  .noct-frame, .noct-frame:nth-child(1), .noct-frame:nth-child(4) { grid-column: span 6; }
  .noct-frame { min-height: 240px; }
  .noct-frame figcaption { padding: 15px; }
  .noct-gallery { padding-bottom: 70px; }
  .noct-gallery-spider { height: 42px; }
  .noct-gallery-spider .night-spider { --spider-size: 45px; }
}
/* On a phone show the width of the room, including the display island and the right terrarium. */
@media (max-width: 540px) {
  .noct-hero { background: #070912; }
  .noct-hero .noct-backdrop, .noct-hero .noct-shade {
    top: 64px; bottom: auto; height: auto; aspect-ratio: 3 / 2;
  }
  .noct-hero .noct-backdrop { object-fit: contain; }
  .noct-hero .noct-shade {
    background: linear-gradient(0deg, #070912, rgb(7 9 18 / 88%) 8%, rgb(7 9 18 / 12%) 44%, transparent 82%),
                linear-gradient(125deg, rgb(7 9 18 / 60%), transparent 52%);
  }
  .noct-hero .noct-intro { padding-top: clamp(108px, 31vw, 166px); }
}
@media (max-width: 450px) {
  .noct-intro { padding: 60px 0 33px; }
  .noct-time { font-size: 10px; }
  .noct-lead { max-width: 360px; font-size: 16px; }
  .noct-actions { gap: 8px 19px; margin-top: 20px; }
  .noct-primary, .night-tour .noct-secondary { padding: 13px 14px; font-size: 11px; }
  .noct-actions { gap: 9px; }
  .noct-quick { font-size: 12px; }
  .noct-frames { grid-template-columns: 1fr; gap: 17px; }
  .noct-frame, .noct-frame:nth-child(1), .noct-frame:nth-child(4) { grid-column: auto; min-height: 0; }
  .noct-frame img { position: static; z-index: auto; aspect-ratio: 1.85; height: auto; }
  .noct-frame::before { content: none; }
  .noct-frame figcaption { background: #0d1221; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .night-tour *, .night-tour *::before, .night-tour *::after { scroll-behavior: auto !important; }
  .noct-hero::after { animation: none; }
  .noct-primary, .night-tour .hwp-go, .noct-frame img { transition: none; }
}
