/* ============ RZN By Faith ============ */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --panel: #151515;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ece8e1;
  --muted: #9a948a;
  --bone: #ebe5d8;
  --ink: #161616;
  --silver: #cfc9bf;
  --display: 'Cinzel', 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Subtle film grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: 0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow--dark { color: #6f685c; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn--outline:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--block { width: 100%; }

/* ---------- Announcement + Nav ---------- */
.announce {
  background: var(--bone);
  color: var(--ink);
  text-align: center;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px var(--gutter);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 var(--gutter);
  transition: background 0.4s, height 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  height: 60px;
}
.nav__logo { width: 84px; justify-self: start; }
.nav__links { display: flex; gap: 40px; }
.nav__links a, .footer__links a {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.nav__links a:hover, .footer__links a:hover { color: var(--text); }
.nav__cart {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 8px 0;
}
.nav__cart svg { width: 20px; height: 20px; }
.nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--bone);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.nav__count.is-visible { transform: scale(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 36px);
  margin-top: -68px;
  padding: 140px var(--gutter) 110px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(207, 201, 191, 0.10), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #0d0d0d, #070707 70%, var(--bg));
}
.hero__beam {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -10%;
  width: 1px;
  height: 120%;
  background: linear-gradient(180deg, transparent, rgba(236, 232, 225, 0.35) 30%, rgba(236, 232, 225, 0.08) 75%, transparent);
  animation: beam 2.4s var(--ease) both;
  /* Visible above and below the content, never through it */
  -webkit-mask-image: linear-gradient(180deg, #000 0 20%, transparent 26% 76%, #000 82%);
  mask-image: linear-gradient(180deg, #000 0 20%, transparent 26% 76%, #000 82%);
}
.hero__glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.06), transparent 40%);
  animation: breathe 7s ease-in-out infinite;
}
.hero__inner { max-width: 760px; }
.hero__logo {
  width: min(78vw, 540px);
  margin: 0 auto 40px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.7));
}
.hero__verse {
  font: italic 400 clamp(20px, 2.4vw, 26px)/1.4 var(--serif);
  color: #d7d1c6;
  margin-bottom: 44px;
}
.hero__verse .hero__ref {
  display: block;
  margin-top: 10px;
  font: 500 11px/1 var(--sans);
  font-style: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: var(--text);
  border-radius: 1px;
  animation: scrollDot 2s ease-in-out infinite;
}

.rise { animation: rise 1.2s var(--ease) both; }
/* Hold the hero animation until the page content has loaded */
[data-loading] .rise { animation-play-state: paused; }
[data-loading] [data-content]:empty { visibility: hidden; }
.hero__logo.rise { animation-delay: 0.15s; animation-duration: 1.6s; }
.hero__verse.rise { animation-delay: 0.45s; }
.hero__ctas.rise { animation-delay: 0.6s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@keyframes beam { from { opacity: 0; transform: scaleY(0.2); } }
@keyframes breathe { 50% { opacity: 0.55; } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 36px;
  animation: marquee 32s linear infinite;
  font: 500 15px/1 var(--display);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #bdb7ad;
}
.marquee__track i { font-style: normal; color: var(--muted); font-size: 12px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 18px)); } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head__sub { margin-top: 20px; color: var(--muted); }

/* ---------- Shop ---------- */
.shop { padding: clamp(80px, 11vw, 140px) var(--gutter); }
/* 3 across; a short last row is centered */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.card { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.card:hover { border-color: rgba(255, 255, 255, 0.2); }
.card__media {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #262626, #121212 72%);
}
.card__media.tone-bone { background: radial-gradient(circle at 50% 40%, #2d2b27, #121212 72%); }
.card__media svg, .card__media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
  transition: transform 0.8s var(--ease);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.card__media .art-placeholder { color: rgba(255, 255, 255, 0.14); filter: none; width: 56%; }
.card__thumbs { display: flex; gap: 8px; padding: 12px 24px 0; }
.thumb {
  flex: 0 0 auto;
  width: 52px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 0.85; }
.thumb.is-active { opacity: 1; border-color: var(--text); }
.card:hover .card__media svg, .card:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 7px 10px;
  background: var(--bone);
  color: var(--ink);
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 24px; flex: 1; }
.card__title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__title h3 { font-size: 20px; }
.card__price { font-weight: 500; color: var(--text); white-space: nowrap; }
.card__color { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card__desc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 16px 0 18px;
  margin-top: auto;
  padding-top: 16px;
}
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.size span:hover { border-color: rgba(255, 255, 255, 0.4); }
.size input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.size input:focus-visible + span { outline: 2px solid var(--silver); outline-offset: 2px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease), border-color 0.4s; }
.reveal.is-in { opacity: 1; transform: none; }
.grid .card:nth-child(2) { transition-delay: 0.08s; }
.grid .card:nth-child(3) { transition-delay: 0.16s; }
.grid .card:nth-child(5) { transition-delay: 0.08s; }
.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }

/* ---------- Story ---------- */
.story { background: var(--bone); color: var(--ink); padding: clamp(80px, 11vw, 150px) var(--gutter); }
.story__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.story__mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 22, 22, 0.15);
  border-radius: 50%;
  padding: 18%;
  position: relative;
}
.story__mark::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 50%;
}
.story__text h2 { margin-bottom: 28px; }
.story__text p:not(.eyebrow) { color: #4a463f; font-size: 17px; margin-bottom: 18px; max-width: 520px; }
.story__text .story__sign { font: italic 500 22px/1 var(--serif); color: var(--ink); margin-top: 28px; }

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 130px) var(--gutter);
  gap: 0;
}
.value { padding: 8px clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.value:first-child { border-left: 0; padding-left: 0; }
.value__num { font: 400 13px/1 var(--display); color: var(--muted); letter-spacing: 0.2em; }
.value h3 { font-size: 22px; margin: 22px 0 14px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { padding: 0 var(--gutter) clamp(90px, 11vw, 140px); }
.faq__list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font: 500 17px/1.4 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 26px/1 var(--sans); color: var(--muted); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 80px var(--gutter) 40px;
  text-align: center;
}
.footer__logo { width: 160px; margin: 0 auto 22px; }
.footer__verse { font: italic 400 20px/1.4 var(--serif); color: #bdb7ad; margin-bottom: 36px; }
.footer__links { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-bottom: 56px; }
.footer__legal { font-size: 12px; color: #6d685f; letter-spacing: 0.06em; }

/* ---------- Cart drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.cart {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.cart-open .scrim { opacity: 1; }
.cart-open .cart { transform: none; }
.cart-open { overflow: hidden; }
.cart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.cart__head h2 { font-size: 20px; letter-spacing: 0.1em; }
.cart__close { background: none; border: 0; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cart__ship { padding: 18px 28px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cart__ship strong { color: var(--text); font-weight: 600; }
.bar { height: 3px; margin-top: 10px; background: rgba(255, 255, 255, 0.08); }
.bar span { display: block; height: 100%; background: var(--bone); transition: width 0.5s var(--ease); }
.cart__items { list-style: none; margin: 0; padding: 8px 28px; overflow-y: auto; flex: 1; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__media { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #262626, #141414 75%); }
.line__media svg { width: 84%; }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__media .art-placeholder { color: rgba(255, 255, 255, 0.2); width: 70%; }
.line__name { font-family: var(--display); font-size: 15px; }
.line__meta { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin: 2px 0 10px; }
.line__end { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 14px; }
.line__remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 15px; }
.qty span { min-width: 24px; text-align: center; font-size: 13px; }
.cart__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 24px; color: var(--muted); padding: 28px; }
.cart__foot { padding: 22px 28px 26px; border-top: 1px solid var(--line); background: var(--bg-2); }
.cart__row { display: flex; justify-content: space-between; font-size: 16px; }
.cart__row strong { font-weight: 600; }
.cart__fine { font-size: 12px; color: var(--muted); margin: 4px 0 18px; }
.cart__error { color: #e38b7c; font-size: 13px; margin-top: 10px; }
.cart__error:empty { display: none; }
.cart__secure { font-size: 11px; color: #6d685f; text-align: center; margin-top: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Success page ---------- */
.success { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.success__logo { width: 200px; margin: 0 auto 48px; }
.success h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 18px; }
.success p { color: var(--muted); max-width: 460px; margin: 0 auto 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card { flex-basis: calc((100% - 24px) / 2); }
  .story__inner { grid-template-columns: 1fr; }
  .story__mark { max-width: 340px; width: 100%; margin: 0 auto; }
  .values { grid-template-columns: 1fr; gap: 44px; }
  .value, .value:first-child { border-left: 0; padding: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__cart span:not(.nav__count) { display: none; }
  .card { flex-basis: 100%; }
  .hero__ctas .btn { width: 100%; }
  .line { grid-template-columns: 72px 1fr auto; }
  .cart__head, .cart__ship, .cart__items, .cart__foot { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
