/* nebo.music — single-page landing
 * Tone: literary, unhurried, restrained.
 * Spec reference: nebo_music_visual_direction.md
 */

:root {
  --ink:       #1B1714;
  --ink-soft:  rgba(27, 23, 20, 0.72);
  --ink-faint: rgba(27, 23, 20, 0.48);
  --paper:     #F5EFE6;
  --paper-deep:#EAE2D4;
  --hairline:  rgba(27, 23, 20, 0.12);

  --ember:     #C97B3F;
  --lotus:     #C99A9A;
  --jungle:    #3F4F3D;
  --midnight:  #1F3147;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --max:    1240px;
  --narrow: 760px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--ember); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Layout ---- */

.container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.narrow    { max-width: var(--narrow); margin: 0 auto; }

section { padding: 120px 0; position: relative; }
section.bg-deep { background: var(--paper-deep); }

.divider { padding: 56px 0; text-align: center; }
.divider::before {
  content: ""; display: inline-block;
  width: 60px; height: 1px; background: var(--hairline);
}

/* ---- Navigation ---- */

nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em;
}
nav.top .wordmark {
  font-family: var(--serif); font-weight: 300; font-size: 22px;
  letter-spacing: 0.02em; color: var(--ink); text-decoration: none;
}
nav.top .wordmark .dot { color: var(--ember); }
nav.top .links { display: flex; gap: 28px; }
nav.top .links a {
  color: var(--ink-soft); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color 0.18s ease;
}
nav.top .links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ember);
  transition: right 0.22s ease;
}
nav.top .links a:hover { color: var(--ink); }
nav.top .links a:hover::after { right: 0; }
nav.top .menu-btn { display: none; background: none; border: 0; cursor: pointer; font-size: 22px; color: var(--ink); }

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

.hero {
  min-height: 88vh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 48px 140px;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/kirtan/hero-kirtan.jpg');
  background-size: cover; background-position: center top;
  filter: saturate(0.95) brightness(0.65);
  z-index: 0;
  transform-origin: top center;
  animation: drift 60s ease-in-out infinite alternate;
}
.hero .hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(27,23,20,0.15) 0%, rgba(27,23,20,0.45) 70%, rgba(27,23,20,0.65) 100%);
}
.hero .hero-inner { position: relative; z-index: 2; max-width: 920px; }
.hero .label {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em;
  color: rgba(245, 239, 230, 0.72); text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 9vw, 128px); line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 0 0 32px; color: var(--paper);
}
.hero h1 em { font-style: italic; color: var(--ember); }
.hero .sub {
  max-width: 560px; font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5; color: rgba(245, 239, 230, 0.85); margin-bottom: 48px;
}
.hero .ctas { display: flex; gap: 16px; flex-wrap: wrap; }

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.10) translate3d(-1.5%, 1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg { animation: none; transform: scale(1.04); }
}

/* ---- Buttons ---- */

.btn {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 0;
  padding: 14px 28px;
  text-decoration: none; display: inline-block;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn.on-dark {
  color: var(--paper); border-color: rgba(245, 239, 230, 0.85);
}
.btn.on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn.ghost {
  border-color: var(--hairline); color: var(--ink-soft);
  padding: 11px 22px; font-size: 12px;
}
.btn.ghost:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--ink); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 3px;
}

/* ---- Section heading ---- */

.sec-label {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em;
  color: var(--ink-faint); text-transform: uppercase;
  margin-bottom: 18px; font-weight: 500;
}
h2.sec-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 48px; color: var(--ink);
}
h2.sec-title em { font-style: italic; }

p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }

/* ---- Pull quote ---- */

.pullquote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3;
  color: var(--ink);
  border-left: 2px solid var(--ember);
  padding: 12px 0 12px 32px;
  margin: 56px 0;
  max-width: 800px;
}
.pullquote .by {
  display: block; font-family: var(--sans); font-size: 13px;
  font-style: normal; color: var(--ink-faint);
  letter-spacing: 0.06em; margin-top: 20px;
}

/* ---- Listen / Albums ---- */

.videos {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 16px; margin: 32px 0 64px;
}
.video {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper);
  border: 1px solid var(--hairline);
  transition: border-color 0.2s ease;
}
.video:hover { border-color: var(--ink); }
.v-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-deep);
}
.v-frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.video:hover .v-frame img { transform: scale(1.03); }
.v-play {
  position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 20, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease;
}
.video:hover .v-play { background: rgba(20, 20, 20, 0.75); }
.v-play::after {
  content: ''; display: block;
  width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

.kirtan-portrait {
  margin: 56px auto 0;
  max-width: 480px;
}
.kirtan-portrait img { width: 100%; height: auto; display: block; }

.albums {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin: 32px 0 48px;
}
.album {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.4s ease;
}
.album:hover { border-color: var(--ink); }
.album .cover {
  aspect-ratio: 1/1; background: var(--paper-deep);
  margin-bottom: 16px; overflow: hidden;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.album:hover .cover { transform: scale(1.02); }
.album .a-title { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.2; }
.album .a-meta  { font-family: var(--sans); font-size: 11px; color: var(--ink-faint); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---- Stats row ---- */

.stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; margin: 64px 0 32px;
}
.stats > div {
  padding: 28px 16px;
  border-left: 1px solid var(--hairline);
  text-align: center;
}
.stats > div:first-child { border-left: none; }
.stats .num {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 4vw, 56px); line-height: 1;
  color: var(--ink); margin-bottom: 12px;
}
.stats .lbl {
  font-family: var(--sans); font-size: 12px; line-height: 1.4;
  color: var(--ink-soft); letter-spacing: 0.02em;
}

/* ---- Sub-cards (Constellations offerings, etc.) ---- */

.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 32px; margin-top: 56px;
}
.card {
  border: 1px solid var(--hairline);
  padding: 28px 32px;
  background: var(--paper);
}
.card h3 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 24px; margin: 0 0 12px;
}
.card .num-tag {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em;
  color: var(--ember); text-transform: uppercase;
  margin-bottom: 8px; display: block;
}
.card p { font-size: 17px; }
.card a.card-cta {
  display: inline-block; margin-top: 8px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
}
.card a.card-cta:hover { color: var(--ember); }

/* ---- Homestead ---- */

.homestead-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
.homestead-grid .photo {
  aspect-ratio: 4/3;
  background: var(--paper);
  background-size: cover; background-position: center;
  background-image: url('https://telegra.ph/file/3da661a8f19be1b6ae3a6.png');
}

/* ---- Gallery ---- */

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; margin-top: 32px;
}
.painting { display: flex; flex-direction: column; cursor: zoom-in; }
.painting .frame {
  background: var(--paper);
  border: 1px solid var(--hairline);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 14px;
  transition: border-color 0.2s ease;
}
.painting:hover .frame { border-color: var(--ink); }
.painting .frame img {
  max-width: 100%; max-height: 100%;
  transition: transform 0.6s ease;
}
.painting:hover .frame img { transform: scale(1.03); }
.painting .p-title {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  margin-top: 14px; line-height: 1.25;
}
.painting .p-meta {
  font-family: var(--sans); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.04em; margin-top: 4px; text-transform: uppercase;
}

/* ---- Books strip ---- */

.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.book {
  padding: 20px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  display: flex;
  align-items: stretch;
  gap: 18px;
}
.book .b-body { flex: 1; min-width: 0; }
.book .b-cover {
  flex: 0 0 96px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.book .b-cover img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
}
.book h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; margin: 0 0 4px; }
.book .b-meta { font-family: var(--sans); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.book p { font-size: 16px; }
.book a.buy {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--ember); padding-bottom: 2px;
}

/* ---- Lightbox ---- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(27, 23, 20, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 48px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 86vh;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox .lb-caption {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; color: var(--paper); font-family: var(--serif);
  font-style: italic; font-size: 18px;
}
.lightbox .lb-caption .lb-meta {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: 0.08em; color: rgba(245,239,230,0.7);
  margin-top: 6px; text-transform: uppercase;
}
.lightbox .lb-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: 1px solid rgba(245,239,230,0.6);
  color: var(--paper); padding: 8px 14px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  cursor: pointer; border-radius: 0;
}
.lightbox .lb-close:hover { background: var(--paper); color: var(--ink); }

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

footer {
  border-top: 1px solid var(--hairline);
  padding: 80px 48px 56px;
  background: var(--paper);
}
footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max); margin: 0 auto;
}
footer h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint);
  font-weight: 500; margin: 0 0 18px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { font-family: var(--sans); font-size: 14px; line-height: 2; color: var(--ink-soft); }
footer li a { color: var(--ink); text-decoration: none; }
footer li a:hover { text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
footer .signoff {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--ink-soft); max-width: 320px; line-height: 1.5;
}
footer .colophon {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--ink-faint); text-align: center;
  max-width: var(--max); margin-left: auto; margin-right: auto;
}

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

.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .container { padding: 0 32px; }
  section { padding: 96px 0; }
  nav.top { padding: 16px 24px; }
  nav.top .links { display: none; }
  nav.top .menu-btn { display: block; }
  nav.top.menu-open .links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 24px; gap: 18px;
  }

  .hero { padding: 100px 24px 120px; min-height: 78vh; }

  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > div:nth-child(4) { border-left: none; }

  .albums { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards   { grid-template-columns: 1fr; }
  .books   { grid-template-columns: 1fr; }
  .homestead-grid { grid-template-columns: 1fr; gap: 32px; }
  footer .cols { grid-template-columns: 1fr 1fr; gap: 36px; }
  footer .signoff { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 80px 20px 100px; }
  section { padding: 72px 0; }
  .gallery { grid-template-columns: 1fr; }
  .albums  { grid-template-columns: 1fr; }
  .videos  { grid-template-columns: 1fr; }
  .video:nth-child(3),
  .video:nth-child(5),
  .video:nth-child(6) { display: none; }
  footer { padding: 56px 24px; }
  footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .pullquote { padding-left: 20px; margin: 40px 0; }
}
