/**
 * NOIR — original Tunai theme for high-end salons & aesthetics studios.
 * The after-dark counterpart to Lumière: near-black room, champagne-gold
 * shimmer type, hairline double frames, candlelit portraits swept by a
 * champagne sheen on hover.
 * Scoped under .noir-theme.
 */

.noir-theme {
  --nr-bg: #0d0a08;
  --nr-panel: #151109;
  --nr-ink: #f2e9dc;
  --nr-muted: #9c8f7d;
  --nr-gold: #d4af6a;
  --nr-line: rgba(212, 175, 106, 0.22);
  --nr-shimmer: linear-gradient(100deg, #8a6a35 0%, #d4af6a 25%, #f4e3bc 50%, #d4af6a 75%, #8a6a35 100%);
  --fx-accent: var(--nr-gold);
  --fx-spot: rgba(212, 175, 106, 0.1);
  --nr-display: "Fraunces", serif;
  --nr-body: "Outfit", sans-serif;

  background: var(--nr-bg);
  color: var(--nr-ink);
  font-family: var(--nr-body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}

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

.noir-theme img {
  max-width: 100%;
  display: block;
}

.noir-theme a {
  color: inherit;
  text-decoration: none;
}

.nr-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Candlelight breathing at the page edges. */
.noir-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 30% at 88% 6%, rgba(212, 175, 106, 0.1), transparent),
    radial-gradient(ellipse 40% 30% at 6% 92%, rgba(212, 175, 106, 0.07), transparent),
    radial-gradient(ellipse 130% 100% at 50% 32%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}

.noir-theme > * {
  position: relative;
  z-index: 1;
}

/* Shimmering gold text — the theme's signature. */
.nr-shimmer {
  background: var(--nr-shimmer);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nr-shimmer 5.5s linear infinite;
}

@keyframes nr-shimmer {
  to {
    background-position: -220% 0;
  }
}

/* Gold-framed eyebrow. */
.nr-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--nr-gold);
}

.nr-eyebrow::after {
  content: "";
  width: 52px;
  height: 1px;
  background: var(--nr-gold);
}

/* ── Nav ── */
.nr-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 32px;
  background: rgba(13, 10, 8, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nr-line);
}

.nr-logo {
  font-family: var(--nr-display);
  font-style: italic;
  font-weight: 500;
  font-size: 23px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nr-nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nr-nav-links a {
  color: var(--nr-muted);
  transition: color 0.25s;
}

.nr-nav-links a:hover {
  color: var(--nr-gold);
}

/* Gold-line button that fills on hover. */
.nr-btn {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--nr-gold);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--nr-gold);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.nr-btn:hover {
  background: var(--nr-gold);
  color: #17120a;
  box-shadow: 0 12px 34px rgba(212, 175, 106, 0.3);
}

.nr-btn--solid {
  background: var(--nr-gold);
  color: #17120a;
}

.nr-btn--solid:hover {
  background: #f4e3bc;
  border-color: #f4e3bc;
}

/* ── Hero ── */
.nr-hero {
  padding: 100px 0 90px;
  text-align: center;
}

.nr-hero .nr-eyebrow {
  justify-content: center;
}

.nr-hero .nr-eyebrow::after {
  display: none;
}

.nr-hero h1 {
  margin: 22px auto 20px;
  font-family: var(--nr-display);
  font-weight: 400;
  font-size: calc(clamp(46px, 8vw, 104px) * var(--tx-scale, 1));
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 14ch;
  overflow-wrap: anywhere;
}

.nr-hero h1 em {
  font-style: italic;
}

.nr-hero-motto {
  margin: 0 auto 40px;
  color: var(--nr-muted);
  font-size: 17px;
  max-width: 52ch;
}

.nr-hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Full-bleed hero image inside a double gold frame. */
.nr-hero-img {
  position: relative;
  margin-top: 64px;
  height: min(68vh, 620px);
  overflow: hidden;
}

.nr-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08) saturate(1.08) contrast(1.02) brightness(0.95);
}

.nr-hero-img::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(212, 175, 106, 0.55);
  outline: 1px solid rgba(212, 175, 106, 0.25);
  outline-offset: 6px;
  pointer-events: none;
}

/* ── Sections ── */
.nr-section {
  padding: 116px 0;
}

.nr-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.nr-sec-head h2 {
  margin: 14px 0 0;
  font-family: var(--nr-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
}

.nr-sec-head h2 em {
  font-style: italic;
}

.nr-sec-roman {
  font-family: var(--nr-display);
  font-style: italic;
  font-size: 19px;
  color: var(--nr-gold);
  white-space: nowrap;
}

/* ── Services: gilded menu ── */
.nr-menu {
  border-top: 1px solid var(--nr-line);
}

.nr-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 27px 8px;
  border-bottom: 1px solid var(--nr-line);
  transition: background 0.3s, padding 0.3s;
}

.nr-row:hover {
  background: rgba(212, 175, 106, 0.06);
  padding-left: 20px;
}

.nr-row-name {
  font-family: var(--nr-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.nr-row-meta {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--nr-muted);
}

.nr-row-dots {
  flex: 1;
  min-width: 36px;
  border-bottom: 1px dotted rgba(212, 175, 106, 0.4);
  transform: translateY(-6px);
}

.nr-row-price {
  font-family: var(--nr-display);
  font-style: italic;
  font-size: 20px;
  color: var(--nr-gold);
  white-space: nowrap;
}

.nr-row-book {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nr-muted);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
}

.nr-row:hover .nr-row-book {
  opacity: 1;
  transform: translateX(0);
  color: var(--nr-gold);
}

/* ── Gallery: gilded frames ── */
.nr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.nr-gallery figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--nr-panel);
  padding: 10px;
  border: 1px solid var(--nr-line);
}

.nr-gallery figure::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  pointer-events: none;
}

.nr-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08) saturate(1.08);
  transition: filter 0.5s, transform 0.5s;
}

/* Curtain wipe owns ::before and the gold frame owns ::after, so the
   hover candle-glow rides the img filter instead of a sheen sweep. */
.nr-gallery figure:hover img {
  filter: sepia(0.08) saturate(1.18) brightness(1.06);
  transform: scale(1.05);
}

.nr-gallery figure:nth-child(even) {
  margin-top: 30px;
}

/* ── Team ── */
/* Centered flex rather than auto-fill grid so an incomplete last row of
   portraits sits centred instead of leaving a ragged left-aligned tail. */
.nr-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 26px;
}

.nr-member {
  flex: 0 1 248px;
  min-width: 0;
  text-align: center;
}

.nr-member-frame {
  position: relative;
  aspect-ratio: 3 / 3.7;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--nr-panel);
}

.nr-member-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08) saturate(1.08);
  transition: transform 0.5s;
}

.nr-member:hover .nr-member-frame img {
  transform: scale(1.05);
}

.nr-member-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 175, 106, 0.45);
  pointer-events: none;
}

.nr-member h3 {
  margin: 0 0 4px;
  font-family: var(--nr-display);
  font-weight: 500;
  font-size: 21px;
}

.nr-member p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--nr-muted);
}

/* ── Classes ── */
.nr-classes {
  border-top: 1px solid var(--nr-line);
}

.nr-class {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 8px;
  border-bottom: 1px solid var(--nr-line);
  transition: background 0.3s, padding 0.3s;
}

.nr-class:hover {
  background: rgba(212, 175, 106, 0.06);
  padding-left: 20px;
}

.nr-class b {
  font-family: var(--nr-display);
  font-weight: 500;
  font-size: 20px;
}

.nr-class-when {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nr-muted);
}

.nr-class-seats {
  font-family: var(--nr-display);
  font-style: italic;
  font-size: 16px;
  color: var(--nr-gold);
  white-space: nowrap;
}

.nr-class-seats.is-full {
  color: var(--nr-muted);
}

/* ── Visit ── */
.nr-visit {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--nr-line);
  background: radial-gradient(ellipse 64% 60% at 50% 115%, rgba(212, 175, 106, 0.15), transparent 70%);
}

.nr-visit .nr-eyebrow {
  justify-content: center;
}

.nr-visit .nr-eyebrow::after {
  display: none;
}

.nr-visit h2 {
  margin: 20px auto 18px;
  font-family: var(--nr-display);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 62px);
  max-width: 16ch;
  line-height: 1.06;
}

.nr-visit h2 em {
  font-style: italic;
}

.nr-visit-info {
  margin: 0 auto 40px;
  max-width: 58ch;
  color: var(--nr-muted);
}

.nr-visit-info p {
  margin: 0 0 6px;
}

.nr-visit-info a {
  color: var(--nr-gold);
}

/* Quiet caption so the outlet links below read as locations, not mystery
   links. */
.nr-outlets-label {
  margin: 44px 0 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: rgba(156, 143, 125, 0.75);
}

.nr-outlets {
  list-style: none;
  margin: 12px auto 0;
  padding: 0;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--nr-muted);
}

.nr-outlets li {
  margin-bottom: 6px;
}

.nr-outlets a:hover {
  color: var(--nr-gold);
}

/* ── Footer ── */
.nr-footer {
  border-top: 1px solid var(--nr-line);
  padding: 28px 0 40px;
  color: var(--nr-muted);
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

.nr-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nr-footer a:hover {
  color: var(--nr-gold);
}

.nr-footer-social {
  display: flex;
  gap: 22px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ── Motion ── */
.tfx .noir-theme [data-reveal] {
  opacity: 0;
  translate: 0 32px;
  filter: blur(4px);
  transition: opacity 0.85s ease, translate 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease;
}

.tfx .noir-theme [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

.noir-theme .nr-hero > .nr-wrap > * {
  animation: nr-rise 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.noir-theme .nr-hero > .nr-wrap > *:nth-child(2) { animation-delay: 0.12s; }
.noir-theme .nr-hero > .nr-wrap > *:nth-child(3) { animation-delay: 0.24s; }
.noir-theme .nr-hero > .nr-wrap > *:nth-child(4) { animation-delay: 0.36s; }
.noir-theme .nr-hero > .nr-wrap > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes nr-rise {
  from {
    opacity: 0;
    translate: 0 34px;
    filter: blur(5px);
  }
}

.noir-theme ::selection {
  background: var(--nr-gold);
  color: #17120a;
}

/* ── Mobile ── */
.nr-mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  .nr-nav-links,
  .nr-nav > .nr-btn {
    display: none;
  }

  .nr-hero {
    padding: 64px 0 70px;
  }

  .nr-section,
  .nr-visit {
    padding: 78px 0;
  }

  .nr-row-book {
    display: none;
  }

  /* Looser tracking orphaned "MIN" onto its own line in the narrow name
     column — tighten the meta so it fits on one line. */
  .nr-row-meta {
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }

  /* Two gilded frames per row on phones — full-width 4/5 frames made the
     gallery and team a very long single-column scroll. */
  .nr-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .nr-gallery figure {
    padding: 7px;
  }

  .nr-gallery figure::after {
    inset: 11px;
  }

  .nr-gallery figure:nth-child(even) {
    margin-top: 0;
  }

  .nr-team {
    gap: 32px 16px;
  }

  .nr-member {
    flex: 0 1 calc(50% - 8px);
  }

  .nr-member-frame {
    margin-bottom: 13px;
  }

  .nr-member-frame::after {
    inset: 9px;
  }

  .nr-member h3 {
    font-size: 18px;
  }

  .nr-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(13, 10, 8, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--nr-line);
    justify-content: center;
  }

  .nr-mobile-bar .nr-btn {
    width: 100%;
    text-align: center;
  }

  .nr-footer {
    padding-bottom: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nr-shimmer,
  .noir-theme .nr-hero > .nr-wrap > * {
    animation: none;
  }
  .tfx .noir-theme [data-reveal] {
    opacity: 1;
    translate: 0 0;
    filter: none;
    transition: none;
  }
}

/* Specificity guard: `.noir-theme a` outranks `.nr-btn`; re-state colours. */
.noir-theme .nr-btn {
  color: var(--nr-gold);
}

.noir-theme .nr-btn:hover {
  color: #17120a;
}

.noir-theme .nr-btn--solid {
  color: #17120a;
}

/* Gold ticker under the hero. */
.nr-marquee {
  border-block: 1px solid var(--nr-line);
  padding: 13px 0;
  --fx-mq: 34s;
}

.nr-marquee em {
  font-family: var(--nr-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--nr-gold);
  padding: 0 34px;
  white-space: nowrap;
}

.nr-marquee em::after {
  content: "✦";
  margin-left: 66px;
  opacity: 0.5;
}

/* ── Enhancement pass: champagne sheen sweeps, richer double frames,
   deeper candlelit vignette. ── */

html:has(.noir-theme) {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 106, 0.55) #0d0a08;
}

/* A faint gold beam falling over the hero headline. */
.nr-hero {
  position: relative;
}

.nr-hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto;
  height: 480px;
  pointer-events: none;
  background: radial-gradient(ellipse 44% 60% at 50% 0%, rgba(212, 175, 106, 0.12), transparent 70%);
}

/* The eyebrow rule fades out like a gilt thread. */
.nr-eyebrow::after {
  width: 68px;
  background: linear-gradient(90deg, var(--nr-gold) 30%, transparent);
}

/* Shimmer type now casts its own candle glow. */
.nr-shimmer {
  filter: drop-shadow(0 0 22px rgba(212, 175, 106, 0.4));
}

.nr-sec-head h2,
.nr-visit h2 {
  text-wrap: balance;
}

/* Buttons: a champagne sheen sweeps across on hover; layered gold shadow. */
.nr-btn {
  position: relative;
  overflow: hidden;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s ease;
}

.nr-btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -75%;
  width: 46%;
  background: linear-gradient(105deg, transparent, rgba(255, 243, 214, 0.4), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nr-btn:hover::after {
  left: 130%;
}

.nr-btn:hover {
  box-shadow:
    0 14px 38px -10px rgba(212, 175, 106, 0.45),
    0 3px 12px rgba(0, 0, 0, 0.4);
}

.noir-theme a:focus-visible,
.noir-theme button:focus-visible {
  outline: 1.5px solid var(--nr-gold);
  outline-offset: 3px;
}

/* Menu & class rows: a gold thread draws in from the left edge. */
.nr-row,
.nr-class {
  position: relative;
}

.nr-row::before,
.nr-class::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  translate: 0 -50%;
  background: linear-gradient(180deg, transparent, var(--nr-gold), transparent);
  transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nr-row:hover::before,
.nr-class:hover::before {
  height: 66%;
}

.nr-row-price {
  transition: color 0.3s ease;
}

.nr-row:hover .nr-row-price {
  color: #f4e3bc;
}

/* Richer double frames: gallery and portraits gain the hero's second gold
   line, and the inner line brightens on hover. */
.nr-gallery figure::after {
  outline: 1px solid rgba(212, 175, 106, 0.16);
  outline-offset: 5px;
  transition: border-color 0.5s ease, outline-color 0.5s ease;
}

.nr-gallery figure:hover::after {
  border-color: rgba(212, 175, 106, 0.6);
  outline-color: rgba(212, 175, 106, 0.32);
}

/* Curtain settle + hover glow on the same img: restate the full transition
   over fx.css's curtain rule so the hover glow stays smooth. */
.noir-theme .nr-gallery img {
  transition:
    filter 0.5s ease,
    transform 0.5s ease,
    scale 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.nr-member-frame::after {
  outline: 1px solid rgba(212, 175, 106, 0.18);
  outline-offset: 5px;
  transition: border-color 0.5s ease, outline-color 0.5s ease;
}

.nr-member:hover .nr-member-frame::after {
  border-color: rgba(212, 175, 106, 0.75);
  outline-color: rgba(212, 175, 106, 0.4);
}

/* Champagne sheen glides over a portrait on hover. */
.nr-member-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 240, 205, 0.2) 50%, transparent 58%);
  background-size: 260% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  transition: background-position 0.9s ease;
}

.nr-member:hover .nr-member-frame::before {
  background-position: 0% 0;
}

/* Ticker glow. */
.nr-marquee em {
  text-shadow: 0 0 24px rgba(212, 175, 106, 0.35);
}

.nr-visit-info a {
  border-bottom: 1px solid rgba(212, 175, 106, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nr-visit-info a:hover {
  color: #f4e3bc;
  border-color: #f4e3bc;
}

@media (max-width: 900px) {
  .nr-mobile-bar {
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.55);
  }
}
