/* ============================================
   House of Ratnara
   Palette: obsidian black + heirloom gold
   ============================================ */

:root {
  --black: #0a0807;
  --ink: #141110;
  --charcoal: #1c1816;
  --line: rgba(201, 162, 89, 0.18);
  --line-strong: rgba(201, 162, 89, 0.35);

  --gold: #c9a259;
  --gold-bright: #e7c888;
  --gold-deep: #8a6d2e;
  --cream: #f4ecd8;
  --off: #cfc6b6;

  --ff-display: 'Italiana', serif;
  --ff-serif: 'Cormorant Garamond', serif;
  --ff-sans: 'Jost', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--ff-serif);
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-glow { display: none; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--black); }

/* ----- Cursor glow ----- */
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(231, 200, 136, 0.12) 0%, rgba(201, 162, 89, 0.04) 40%, transparent 70%);
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* ----- Grain ----- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* ----- Loader ----- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: grid;
  place-items: center;
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.loader-mark {
  font-family: var(--ff-display);
  font-size: 88px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.05em;
  animation: breathe 2.2s var(--ease) infinite;
}
.loader-line {
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: sweep 2s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes sweep {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* ----- Nav ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 8, 7, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-mark {
  font-family: var(--ff-display);
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 40px;
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.4s var(--ease);
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  padding: 12px 22px;
  transition: all 0.4s var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 24px; }
}

/* ----- Shared ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) { .container { padding: 0 24px; } }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow.center { display: flex; justify-content: center; }
.dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 5.5vw, 78px);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: 0.01em;
  font-weight: 400;
}
.section-title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-bright);
}
.section-title.center { text-align: center; }

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--off);
  max-width: 52ch;
  margin-top: 28px;
}
.lede.center { margin-left: auto; margin-right: auto; text-align: center; }

.body {
  font-size: 16px;
  color: var(--off);
  margin-top: 18px;
  max-width: 52ch;
}

.link-gold {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line-strong);
  padding: 6px 2px;
  transition: all 0.4s var(--ease);
}
.link-gold:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  letter-spacing: 0.36em;
}

/* Shimmer */
.shimmer, .shimmer-inline {
  background: linear-gradient(
    100deg,
    var(--gold-deep) 0%,
    var(--gold) 30%,
    var(--gold-bright) 50%,
    var(--gold) 70%,
    var(--gold-deep) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
.shimmer-inline { display: inline-block; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 18px 34px;
  transition: all 0.5s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn--gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}
.btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  letter-spacing: 0.36em;
}
.btn--gold:hover::before { transform: translateX(100%); }
.btn--ghost {
  color: var(--cream);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  letter-spacing: 0.36em;
}
.btn--wide { width: 100%; padding: 20px 34px; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 140px 40px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201, 162, 89, 0.12), transparent 60%),
    radial-gradient(ellipse at 20% 30%, rgba(138, 109, 46, 0.1), transparent 50%),
    var(--black);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  mix-blend-mode: screen;
}
.hero-orb:nth-child(1) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 89, 0.5), transparent 70%);
  top: -100px; left: -100px;
  animation: float 18s var(--ease) infinite;
}
.hero-orb--2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(231, 200, 136, 0.25), transparent 70%);
  bottom: -200px; right: -150px;
  animation: float 22s var(--ease) infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
}

.display-title {
  font-family: var(--ff-display);
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--cream);
  font-weight: 400;
  margin: 30px 0;
}
.display-title .line {
  display: block;
  overflow: hidden;
  padding: 4px 0;
}
.display-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn 1.4s var(--ease-out) forwards;
}
.display-title .line:nth-child(1) .word { animation-delay: 0.4s; }
.display-title .line:nth-child(2) .word { animation-delay: 0.55s; }
.display-title .line:nth-child(3) .word { animation-delay: 0.7s; }
.display-title .italic {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-bright);
  padding: 0 0.2em;
}
@keyframes riseIn {
  to { transform: translateY(0); }
}

.tagline {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--off);
  letter-spacing: 0.02em;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.scroll-hint {
  margin-top: 80px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ----- Marquee ----- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  background: var(--ink);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 50px;
  white-space: nowrap;
  font-family: var(--ff-display);
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 0.08em;
  animation: scroll-x 38s linear infinite;
  width: max-content;
}
.marquee-track span { padding: 0 30px; }
.marquee-track .diamond {
  color: var(--gold-deep);
  font-size: 12px;
  padding: 0;
}
@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- Split (story / craft) ----- */
.story, .craft {
  padding: 160px 0;
  position: relative;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.split.reverse .split-visual { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 60px; }
  .split.reverse .split-visual { order: 0; }
  .story, .craft { padding: 100px 0; }
}

/* Frame visual */
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  padding: 24px;
  background: linear-gradient(135deg, rgba(201, 162, 89, 0.04), transparent);
}
.frame--tall { aspect-ratio: 3 / 4; }
.frame::before, .frame::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
}
.frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.frame-inner {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(201, 162, 89, 0.08), var(--ink) 70%);
}
.frame-shape {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      var(--gold-deep),
      var(--gold-bright),
      var(--gold),
      var(--gold-deep),
      var(--gold-bright),
      var(--gold-deep)
    );
  filter: blur(2px);
  animation: rotate 30s linear infinite;
  opacity: 0.8;
}
.frame-shape--alt {
  inset: 20%;
  border-radius: 0;
  transform: rotate(45deg);
  animation: rotate 40s linear infinite;
}
.frame-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 35%, var(--ink) 75%);
  mix-blend-mode: multiply;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ----- Collection ----- */
.collection {
  padding: 160px 0;
  background: linear-gradient(180deg, var(--black), var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  text-align: center;
  margin-bottom: 100px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: all 0.6s var(--ease);
  cursor: pointer;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}
.card-media {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center top, rgba(201, 162, 89, 0.1), var(--black));
}
.card-shape {
  position: absolute;
  inset: 20% 25%;
  transition: transform 0.9s var(--ease);
}
.card:hover .card-shape { transform: scale(1.08) rotate(6deg); }
.shape-1 {
  background: radial-gradient(ellipse at center, var(--gold-bright), var(--gold) 40%, var(--gold-deep) 75%, transparent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: blur(0.5px);
}
.shape-2 {
  background: conic-gradient(from 45deg, var(--gold-deep), var(--gold-bright), var(--gold), var(--gold-deep));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.shape-3 {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-bright), var(--gold));
  border-radius: 4px;
  transform: rotate(45deg);
}
.shape-4 {
  background: radial-gradient(circle, var(--gold-bright), var(--gold-deep) 80%);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(231, 200, 136, 0.4);
}

.card-meta {
  padding: 28px 26px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-num {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.7;
}
.card-meta h3 {
  font-family: var(--ff-display);
  font-size: 26px;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.card-meta p {
  font-size: 14px;
  color: var(--off);
  opacity: 0.75;
  line-height: 1.5;
}

/* ----- Craft list ----- */
.craft-list {
  list-style: none;
  margin-top: 40px;
}
.craft-list li {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.craft-list li:last-child { border-bottom: 1px solid var(--line); }
.craft-list .num {
  font-family: var(--ff-display);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  min-width: 40px;
}
.craft-list h4 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.craft-list p {
  font-size: 15px;
  color: var(--off);
  opacity: 0.8;
}

/* ----- Manifesto ----- */
.manifesto {
  padding: 180px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 89, 0.06), transparent 60%),
    var(--black);
  position: relative;
}
.quote {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: 0.01em;
  max-width: 1000px;
  margin: 30px auto 0;
  position: relative;
}
.quote em {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 300;
}
.q-open, .q-close {
  color: var(--gold);
  font-size: 1.3em;
  line-height: 0;
  vertical-align: -0.2em;
  opacity: 0.6;
}
.sign {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 60px;
  opacity: 0.8;
}

/* ----- Contact ----- */
.contact {
  padding: 160px 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.contact .section-head { margin-bottom: 60px; }
.form {
  max-width: 680px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form label span {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.form input, .form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--ff-serif);
  font-size: 18px;
  padding: 12px 0;
  transition: border-color 0.4s;
  resize: vertical;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form input::placeholder, .form textarea::placeholder {
  color: var(--off);
  opacity: 0.4;
}
.form-note {
  text-align: center;
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--gold-bright);
  margin-top: 14px;
  opacity: 0;
  transition: opacity 0.6s;
}
.form-note.show { opacity: 1; }

/* ----- Footer ----- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 100px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 80px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; gap: 50px; } }
.footer-mark {
  font-family: var(--ff-display);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 20px;
}
.footer-name {
  font-family: var(--ff-display);
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 8px;
}
.footer-tag {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--off);
  opacity: 0.7;
  font-size: 15px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols h5 {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-cols p {
  font-size: 15px;
  color: var(--off);
  opacity: 0.8;
  line-height: 1.7;
}
.footer-cols a {
  transition: color 0.3s;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.footer-cols a:hover { color: var(--gold-bright); border-color: var(--gold); }

.footer-base {
  border-top: 1px solid var(--line);
  padding: 26px 40px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--off);
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----- Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .display-title .word { transform: none; }
}
