/* ==========================================================================
   Village 59 — Bar & Nightclub, Bordeaux
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

ul[role="list"] { list-style: none; padding: 0; }

/* height: auto keeps the drawn shape of the file. Without it, the height
   attribute wins over a CSS width, and the image is stretched. */
img, svg { display: block; max-width: 100%; height: auto; }

/* <picture> only chooses the file. The <img> inside is what the layout sizes,
   as if the wrapper were not there. */
picture { display: contents; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

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

/* --- Tokens --------------------------------------------------------------- */

:root {
  --bg: #000;
  --fg: #fff;
  --fg-dim: rgba(255, 255, 255, .62);
  --rule: rgba(255, 255, 255, .16);

  --font: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Helvetica, Arial, sans-serif;

  /* Horizontal page gutter — 51px at the 1440 reference width. */
  --gutter: clamp(1.25rem, 3.55vw, 3.2rem);
  --gutter-wide: clamp(1.25rem, 15.35vw, 13.85rem);

  --shell: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Base ----------------------------------------------------------------- */

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--fg); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 100;
  padding: .7em 1.1em;
  background: var(--fg);
  color: var(--bg);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

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

/* --- Type ----------------------------------------------------------------- */

.display {
  font-size: clamp(2.75rem, 8.4vw, 7.6rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.display--tight { line-height: .78; }

.eyebrow {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.0625rem, 1.65vw, 1.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede strong { font-weight: 500; }
.lede em { font-style: italic; }

.section-title {
  display: block;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  padding: 1.25rem var(--gutter);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent);
  pointer-events: none;
  z-index: -1;
}

.site-nav {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.site-nav a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .25s var(--ease);
}

.site-nav a:hover { opacity: .55; }

.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }

.site-nav .sep {
  flex: 1;
  height: 5px;
  background:
    radial-gradient(circle, var(--fg) 2.5px, transparent 2.6px) center / 100% 100% no-repeat;
  opacity: .8;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 35%,
                    rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .9) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  padding-inline: var(--gutter);
  text-align: center;
}

.hero__wordmark { margin-inline: auto; width: min(40rem, 72vw); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 2;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(to bottom, var(--fg), transparent);
  animation: drop 2.2s var(--ease) infinite;
}

@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Page head (interior pages) ------------------------------------------- */

.page-head {
  padding: clamp(3.5rem, 9vw, 7.5rem) var(--gutter-wide) clamp(2rem, 4vw, 3.5rem);
  max-width: var(--shell);
  margin-inline: auto;
}

.page-head--center { text-align: center; }

/* A page with no hero: clear the header that floats over the top. */
.page-head--top { padding-top: calc(clamp(3.5rem, 9vw, 7.5rem) + 5.5rem); }

/* --- Prose ---------------------------------------------------------------- */

.prose {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter-wide) clamp(3.5rem, 8vw, 7rem);
}

.prose > * + * { margin-top: 1.2em; }

.prose ul {
  list-style: none;
  padding: 0;
  margin-top: 1.2em;
}

.prose li {
  font-weight: 300;
}

.prose ul:not(.contact-list) li {
  position: relative;
  padding-left: 1.9rem;
}

.prose ul:not(.contact-list) li + li { margin-top: .25em; }

.prose ul:not(.contact-list) li::before {
  content: "";
  position: absolute;
  left: .45rem;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
}

.prose li strong { font-weight: 500; }

.note {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--rule);
  color: var(--fg-dim);
}

.note strong { color: var(--fg); font-weight: 500; }

.lede--center { text-align: center; }

/* --- FAQ (booking page) ---------------------------------------------------- */

.faq {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter-wide) clamp(3.5rem, 8vw, 7rem);
}

.faq .eyebrow { color: var(--fg-dim); margin-bottom: 1.1rem; }

.faq__list { margin: 0; border-bottom: 1px solid var(--rule); }

.faq__list > div {
  padding-block: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--rule);
}

.faq__list dt {
  font-size: clamp(1.0625rem, 1.65vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
}

.faq__list dd {
  margin: .5rem 0 0;
  font-weight: 300;
  line-height: 1.45;
  color: var(--fg-dim);
}

/* --- Legal notice ---------------------------------------------------------- */

.legal .eyebrow { color: var(--fg-dim); }
.legal .eyebrow:not(:first-child) { margin-top: 2.5rem; }
.legal p { font-weight: 300; line-height: 1.55; }
.legal p + p { margin-top: .6em; }
.legal a { text-underline-offset: .25em; }

/* --- Statement (home) ------------------------------------------------------ */

.statement {
  padding: clamp(4rem, 11vw, 10rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.statement__inner {
  max-width: var(--shell);
  margin-inline: auto;
  text-align: right;
}

.statement__line { display: block; }

.statement__line--lead {
  /* Drifts in from the left as the block scrolls through the viewport.
     Leftward only: this line is short, so it has slack on that side. The
     trailing line fills the full measure and therefore never moves — a
     rightward drift there would push copy past the page edge. */
  --drift: 0;
  transform: translate3d(calc(var(--drift) * -9%), 0, 0);
  will-change: transform;
}

/* --- Card grid (home) ------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  text-decoration: none;
  background: #0a0a0a;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease);
  filter: brightness(.9);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
  pointer-events: none;
}

.card:hover img,
.card:focus-visible img { transform: scale(1.045); filter: brightness(1); }

.card__label {
  position: absolute;
  inset: auto 0 clamp(1.5rem, 3.5vw, 2.9rem);
  z-index: 2;
  text-align: center;
  padding-inline: 1rem;
}

.card__label .eyebrow { color: var(--fg-dim); }

.card__label .section-title { margin-top: .3rem; }

/* --- Carousel ------------------------------------------------------------- */

.carousel { position: relative; padding-bottom: clamp(3rem, 7vw, 6rem); }

.carousel__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track figure {
  flex: 0 0 auto;
  width: min(46rem, 78vw);
  scroll-snap-align: center;
}

.carousel__track figure.is-portrait { width: min(21rem, 58vw); }

.carousel__track img {
  width: 100%;
  height: clamp(20rem, 46vw, 41.5rem);
  object-fit: cover;
}

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: .9rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.carousel__btn {
  width: 3.9rem;
  height: 3.9rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.carousel__btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--fg); }
.carousel__btn svg { width: 1.5rem; height: 1.5rem; }

/* --- Feature (cocktails) --------------------------------------------------- */

.feature {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter-wide) clamp(3.5rem, 8vw, 7rem);
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 4vw, 3.25rem);
}

.feature img { width: min(47rem, 100%); }

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 1.15rem 2.4rem;
  border: 1px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}

.btn:hover { background: var(--fg); color: var(--bg); }
.btn__lead { font-size: .8125rem; font-weight: 500; letter-spacing: .06em; }
.btn__main { font-size: 1.375rem; font-weight: 400; letter-spacing: -.02em; }

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: clamp(2.25rem, 5vw, 3.75rem) 0 0;
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  text-align: center;
}

.contact-list a {
  display: inline-block;
  padding-block: .2rem;
  font-size: clamp(1.0625rem, 1.65vw, 1.5rem);
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .25s var(--ease);
}

.contact-list a:hover { opacity: .55; }

.press {
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 5.25rem) var(--gutter) clamp(3.5rem, 8vw, 6.5rem);
}

.press__grid {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.4vw, 1.25rem);
  justify-items: center;
}

.press__item { display: block; text-decoration: none; max-width: 15rem; }

.press__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) brightness(.8);
  transition: filter .5s var(--ease);
}

.press__item:hover img,
.press__item:focus-visible img { filter: grayscale(0) brightness(1); }

.press__item .eyebrow { margin-top: 1.1rem; color: var(--fg-dim); }
.press__item .section-title { margin-top: .35rem; }

/* --- Intro (home) ---------------------------------------------------------- */

.intro {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter-wide) clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.intro .lede { color: var(--fg-dim); }
.intro .lede strong { color: var(--fg); font-weight: 500; }
.intro a { text-underline-offset: .25em; }

/* --- Address line (contact) ------------------------------------------------ */

.address-block {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  text-transform: uppercase;
}

.address-block a { text-decoration: none; transition: opacity .25s var(--ease); }
.address-block a:hover { opacity: .55; }

.address-block__access {
  display: block;
  margin-top: .7rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--fg-dim);
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}

.site-footer__inner {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.site-footer__col .eyebrow {
  color: var(--fg-dim);
  margin-bottom: 1.1rem;
}

.site-footer address {
  font-style: normal;
  font-weight: 300;
  line-height: 1.65;
}

.site-footer address strong { font-weight: 600; }

.site-footer__map {
  display: inline-block;
  padding-block: .3rem;
  margin-top: .6rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-underline-offset: .35em;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .15rem;
  font-weight: 300;
}

.site-footer__list a {
  display: inline-block;
  /* Keeps the tap target at or above the 24px minimum without opening up the
     visual rhythm of the list. */
  padding-block: .3rem;
  text-decoration: none;
  transition: opacity .25s var(--ease);
}

.site-footer__list a:hover { opacity: .55; }
.site-footer__list span { color: var(--fg-dim); }

.site-footer__base {
  max-width: var(--shell);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 2rem;
  font-size: .8125rem;
  font-weight: 300;
  color: var(--fg-dim);
}

.site-footer__base a { text-underline-offset: .25em; }

/* --- Reveal on scroll ------------------------------------------------------ */

/* Content is visible by default. The hidden state is only applied when JS is
   running, and main.js clears it unconditionally after 2s as a failsafe. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Breakpoints ----------------------------------------------------------- */

@media (max-width: 900px) {
  .site-nav .sep { display: none; }
  .site-nav { gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: .8125rem; }
  .press__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .statement__inner { text-align: center; }
  .statement__line--lead { transform: none; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3; }
  .carousel__track figure,
  .carousel__track figure.is-portrait { width: 82vw; }
  .carousel__track img { height: 62vw; min-height: 17rem; }
  .hero__wordmark { width: 82vw; }
}
