/* intoclients — night street closing block + dark footer. All classes prefixed .in- */

.in-night {
  --in-page: #F3ECE1;        /* page colour above (the wave comes out of it) */
  --in-sky: #0D1631;         /* top of the painted sky */
  --in-road: #2E3042;        /* bottom of the painting = footer colour */
  --in-cream: #F8F1E4;
  --in-cream-dim: rgba(248, 241, 228, .72);
  --in-font-display: var(--font-bricolage), var(--font-geist-sans), sans-serif;
  --in-font-ui: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;
  position: relative;
  z-index: 1;                /* above body::before paper grain */
  isolation: isolate;
  overflow: hidden;
  background: var(--in-sky);   /* same colour as the top of the painted sky, so the sky extends seamlessly */
  color: var(--in-cream);
  font-family: var(--in-font-ui);
}

/* the painting sits below the text; its own sky slides up under the text */
.in-night__img {
  position: relative;
  z-index: -2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5504 / 3072;
  margin-top: -18vw;           /* overlap: text sits over the upper part of the painted sky */
  user-select: none;
}

/* inverted wave: cream page flowing down into the night sky */
.in-night__wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  z-index: 3;
  display: block;
  width: 100%;
  height: 34px;
}

/* twinkling stars, placed in the sky area only */
.in-night__stars { position: absolute; left: 0; right: 0; top: 0; height: 50%; z-index: -1; pointer-events: none; }
.in-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FFF6DE;
  box-shadow: 0 0 6px 1px rgba(255, 240, 200, .7);
  opacity: .25;
  animation: in-twinkle 5s ease-in-out infinite;
}
@keyframes in-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* text in the sky */
.in-night__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(96px, 9vw, 128px) 24px 0;
  text-align: center;
}
.in-night__title {
  margin: 0;
  font-family: var(--in-font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--in-cream);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(5, 10, 30, .5);
}
.in-night__title em { font-style: italic; color: #F2C66D; }
.in-night__sub {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--in-cream-dim);
  text-wrap: balance;
}
.in-night__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.in-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.in-btn:hover { transform: translateY(-1px); opacity: 1; }
.in-btn:focus-visible { outline: 2px solid #F2C66D; outline-offset: 3px; }
.in-btn--primary { background: var(--in-cream); color: #1D1A16; }
.in-btn--primary:hover { background: #FFFFFF; }
.in-btn--ghost { background: rgba(248, 241, 228, .08); color: var(--in-cream); box-shadow: inset 0 0 0 1px rgba(248, 241, 228, .35); backdrop-filter: blur(6px); }
.in-btn--ghost:hover { background: rgba(248, 241, 228, .16); }

/* dark footer that continues the road colour */
.in-footer {
  position: relative;
  z-index: 1;                /* above body::before paper grain */
  background: var(--in-road, #2E3042);
  color: rgba(248, 241, 228, .72);
  font-family: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}
.in-footer a { color: rgba(248, 241, 228, .82); text-decoration: none; }
.in-footer a:hover { color: #F8F1E4; opacity: 1; }
.in-footer a[aria-current="page"] { color: #1D1A16; }
.in-footer a[aria-current="page"]:hover { color: #1D1A16; opacity: 1; }
.in-footer__inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 28px; }
.in-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.in-footer__brand { max-width: 300px; }
.in-footer__brand p { margin: 12px 0 0; }
.in-footer__logo { font-family: var(--font-geist-mono), ui-monospace, monospace; font-weight: 500; font-size: 18px; color: #F8F1E4; }
.in-footer__logo span { color: #C9A27A; }
.in-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.in-footer__col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #F8F1E4; }
.in-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.in-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(248, 241, 228, .12); font-size: 13px; }

@media (max-width: 640px) {
  /* show a wider slice on phones: the painting is 2× the screen width, centred on the shops */
  .in-night__img { width: 210%; max-width: none; margin-left: -48%; margin-top: -30vw; }
  .in-night__sub { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .in-star { animation: none; opacity: .7; }
  .in-btn { transition: none; }
}
