/* joycollective.art — Ritual design (dusk lighting) preview. Matches joycollective.studio/assets/ritual.css. */
:root {
  --ink: #f3ead9;
  --ink-soft: #cbb9a0;
  --clay: #d97a4d;
  --line: rgba(243, 234, 217, 0.16);
  --focus: #f3ead9;
  --panel: rgba(255, 246, 232, 0.05);
  --grad-a: #241a2c;
  --grad-b: #150f10;
  --glow: #d97a4d;
  --nav-h: 3.6rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); background: #150f10; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(ellipse 80% 55% at 50% 0%, var(--grad-a), var(--grad-b) 70%);
  background-attachment: fixed; background-color: var(--grad-b);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
button { font-family: inherit; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }
.wide { max-width: 64rem; }

/* ---------- Top nav (sticky) ---------- */
nav.wayfind {
  position: sticky; top: 0; z-index: 20; min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.5rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(12, 10, 12, 0.55); border-bottom: 1px solid var(--line);
}
nav.wayfind .brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
nav.wayfind .brand img { width: 26px; filter: invert(1) brightness(1.6); opacity: 0.92; }
nav.wayfind .brand span { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
nav.wayfind .links { display: flex; gap: 1.4rem; font-size: 0.82rem; letter-spacing: 0.04em; }
nav.wayfind .links a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; white-space: nowrap; }
nav.wayfind .links a:hover { border-color: var(--clay); }
.menu-toggle { display: none; }
@media (max-width: 46rem) {
  .menu-toggle {
    display: inline-block; background: none; color: var(--ink); cursor: pointer;
    border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1rem;
    font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  }
  nav.wayfind .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #140f11; border-bottom: 1px solid var(--line); padding: 0.4rem 0; box-shadow: 0 18px 30px rgba(0,0,0,.45);
  }
  nav.wayfind .links.open { display: flex; }
  nav.wayfind .links a { padding: 0.85rem 1.5rem; border-bottom: none; font-size: 0.95rem; }
}

/* ---------- Gate / hero ---------- */
.gate { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(3.5rem, 9vh, 6rem) 1.5rem 1rem; }
.mark-glow { position: relative; width: clamp(110px, 24vw, 180px); margin-bottom: 2.4rem; display: block; }
.mark-glow::before {
  content: ""; position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0.45; filter: blur(18px); animation: pulse 4.5s ease-in-out infinite;
}
.mark-glow img { position: relative; width: 100%; display: block; filter: invert(1) brightness(1.7); }
@keyframes pulse { 0%, 100% { opacity: 0.32; transform: scale(0.94); } 50% { opacity: 0.55; transform: scale(1.06); } }
.gate h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); letter-spacing: 0.08em; line-height: 1.08; }
.gate h1 .word-gap { display: inline-block; width: 0.35em; }
.gate .tagline { max-width: 30rem; margin: 1.1rem auto 0; color: var(--ink-soft); font-size: 1.1rem; }
.hero-sep { display: block; width: 3.5rem; height: 1px; margin: 1.6rem auto; background: var(--clay); box-shadow: 0 0 8px 1px rgba(217, 122, 77, 0.5); }
.gate .hero-note { max-width: 36rem; margin: 0 auto; text-align: center; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; }
.gate .hero-note + .hero-note { margin-top: 1rem; }

/* ---------- Shared text ---------- */
.eyebrow { display: block; font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--clay); margin: 0 0 0.9rem; }
.center { text-align: center; }
section { padding: 4rem 0; position: relative; }
section h2 { text-align: center; font-size: clamp(2rem, 5vw, 2.7rem); margin-bottom: 0.6rem; }
.lead { color: var(--ink); max-width: 38rem; margin: 0 auto 1.2rem; font-size: 1.05rem; line-height: 1.8; text-align: center; }

/* ---------- Cards ---------- */
.cards { padding-top: 2.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 52rem) { .card-grid { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: center; padding-bottom: 1.4rem; }
.card .frame { display: block; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 568 / 317; object-fit: cover; filter: saturate(0.85) brightness(0.92); transition: filter .4s ease; }
.card .frame:hover img { filter: saturate(1) brightness(1); }
.card h2 { font-size: 1.7rem; margin: 1.1rem 0 0.3rem; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--clay); }
.card p { margin: 0 1.2rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Feature sections ---------- */
.feature { border-top: 1px solid var(--line); }
.feature-photo { max-width: 40rem; margin: 0 auto 2.2rem; }
.feature-photo img { display: block; width: 100%; height: auto; aspect-ratio: 568 / 317; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); filter: saturate(0.85) brightness(0.92); }
.feature h2 { letter-spacing: 0.12em; }
.feature .intro { text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(1.25rem, 3.4vw, 1.55rem); color: var(--ink-soft); margin: 0 0 2.4rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 46rem) { .two-col { grid-template-columns: 1fr; } }
.two-col > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.4rem, 4vw, 2rem); }
.two-col p { margin: 0 0 1rem; line-height: 1.75; }
.two-col p:last-child { margin-bottom: 0; }
.highlights { list-style: none; margin: 0; padding: 0; }
.highlights li { position: relative; padding-left: 1.4rem; margin-bottom: 1rem; }
.highlights li:last-child { margin-bottom: 0; }
.highlights li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem; width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay); box-shadow: 0 0 10px 2px var(--glow);
}
.highlights strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.25rem; }
.highlights span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.cta { text-align: center; margin-top: 2.4rem; }
.cta p { color: var(--ink-soft); margin: 0 auto 1.2rem; max-width: 30rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); padding: 0.8rem 1.9rem; border-radius: 999px; font-size: 0.9rem; letter-spacing: 0.05em;
  color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: #14100f; }

/* ---------- About: six ways in, glowing line ---------- */
#about { border-top: 1px solid var(--line); }
.ways { list-style: none; margin: 2.6rem auto 0; padding: 0; max-width: 58rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 2.2rem; }
.ways li { position: relative; text-align: center; white-space: nowrap; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.2; padding: 1.9rem 0.4rem 0; }
.ways li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; z-index: 1;
  background: var(--clay); box-shadow: 0 0 12px 2px var(--glow);
}
.ways li::after { content: ""; position: absolute; top: 4.5px; left: 0; right: 0; height: 1px; background: var(--line); }
.ways li:first-child::after { left: 50%; }
.ways li:last-child::after { right: 50%; }
@media (max-width: 40rem) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 26rem; }
  .ways li { font-size: clamp(1rem, 4.6vw, 1.2rem); padding-inline: 0.15rem; }
  .ways li:nth-child(3n+1)::after { left: 50%; }
  .ways li:nth-child(3n)::after { right: 50%; }
}

/* ---------- Contact ---------- */
#contact { border-top: 1px solid var(--line); text-align: center; }
.breath-circle { width: 64px; height: 64px; margin: 0 auto 1.4rem; border-radius: 50%; border: 1px solid var(--clay); position: relative; }
.breath-circle::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--glow); opacity: 0.5; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.6); opacity: 0.25; } 50% { transform: scale(1); opacity: 0.6; } }
.contact-line { margin: 0.6rem 0 0; font-size: 1.15rem; }
.contact-line a { color: var(--clay); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-line a:hover { border-color: var(--clay); }

/* ---------- Footer ---------- */
footer { padding: 2.6rem 1.5rem 3.4rem; text-align: center; font-size: 0.82rem; color: var(--ink-soft); border-top: 1px solid var(--line); line-height: 1.9; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin-bottom: 0.6rem; letter-spacing: 0.04em; }
footer nav a { text-decoration: none; color: var(--ink); }
footer nav a:hover { color: var(--clay); }
footer a { color: var(--clay); text-underline-offset: 0.2em; }

/* ---------- Come into focus (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); filter: blur(5px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1), filter .55s ease; transition-delay: var(--delay, 0ms); will-change: opacity, transform, filter; }
.js .reveal.photo { transform: scale(1.02); filter: blur(6px) brightness(.9); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .gate > * { opacity: 0; filter: blur(6px); transition: opacity .9s ease, filter .9s ease; }
.js .gate > :nth-child(2) { transition-delay: .15s; }
.js .gate > :nth-child(3) { transition-delay: .3s; }
.js .gate > :nth-child(n+4) { transition-delay: .45s; }
.js .gate.loaded > * { opacity: 1; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .js .reveal, .js .reveal.photo, .js .gate > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
