/* Ondu by Miraii.ai — Silk & Saffron */
:root {
  --plum: #26060f;
  --maroon: #3a0a17;
  --maroon-deep: #2a0612;
  --gold: #f6c56a;
  --gold-soft: #ffdb94;
  --cream: #fff4e4;
  --blush: #e8cfc0;
  --muted: #d4b6a6;
  --line: rgba(246, 197, 106, 0.3);
  --line-soft: rgba(246, 197, 106, 0.18);
  --display: "Marcellus", Georgia, serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4.5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--maroon); color: var(--cream); font-family: var(--sans); line-height: 1.5; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-family: var(--script); font-style: italic; text-transform: none; color: var(--gold); }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--blush); font-weight: 300; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: filter .2s, background .2s; }
.btn--gold { background: linear-gradient(135deg, #ffdf9a, #e9a93c); color: #3a0a17; border: none; }
.btn--gold:hover { color: #3a0a17; filter: brightness(1.06); }
.btn--ghost { background: rgba(38, 6, 15, 0.35); border-color: rgba(255, 219, 148, 0.7); color: var(--gold-soft); }
.btn--ghost:hover { background: rgba(246, 197, 106, 0.14); }
.btn--dark { background: #2a0a16; color: var(--cream); }
.btn--dark:hover { color: var(--cream); background: #3d0f20; }
.btn--block { width: 100%; min-height: 60px; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--plum); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(0deg, var(--plum) 0%, rgba(38,6,15,.85) 38%, rgba(38,6,15,0) 100%); }
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--pad); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav__brand { font-family: var(--display); font-size: 22px; letter-spacing: 0.36em; color: var(--cream); }
.nav__links { display: flex; gap: 40px; }
.nav__links a { color: var(--cream); }
.nav__cta { min-height: 44px; font-size: 12px; }
.hero__content { position: relative; z-index: 1; margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding: 0 var(--pad) clamp(48px, 7vh, 88px); }
.hero__title { display: flex; flex-direction: column; gap: 22px; max-width: 780px; }
.hero h1 { font-family: var(--display); font-size: clamp(52px, 7vw, 100px); line-height: 1; text-transform: uppercase; color: var(--cream); }
.hero h1 em { font-size: 1.15em; }
.hero__side { max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.hero__side p { margin: 0; font-size: 17px; line-height: 1.7; font-weight: 300; color: #f3dfcf; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.silk-rule { height: 8px; background: linear-gradient(90deg, #d81b60, #ff7a1a, #f6c56a, #ff7a1a, #d81b60); }

/* ===== Lineup ===== */
.lineup { padding: clamp(80px, 10vw, 130px) var(--pad) clamp(80px, 9vw, 120px); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.lineup__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.lineup__head > div { display: flex; flex-direction: column; gap: 16px; }
.lineup__head h2 { font-family: var(--display); font-size: clamp(42px, 5vw, 70px); line-height: 1; text-transform: uppercase; }
.lineup__head h2 em { font-size: 1.2em; }
.lineup__head .lead { max-width: 400px; }
.lineup__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.ring-card { display: flex; flex-direction: column; gap: 20px; }
.arch { position: relative; aspect-ratio: 410 / 580; border-radius: 999px 999px 0 0; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #7a2440 0%, #4a0f24 55%, #2a0612 100%); box-shadow: inset 0 0 0 1px rgba(246,197,106,0.28); }
.arch__shadow { position: absolute; left: 50%; bottom: 17%; width: 58%; height: 6%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 70%); }
.arch .ring3d { position: absolute; inset: 0; width: 100%; height: 100%; cursor: zoom-in; touch-action: pan-y; }
.arch__chip { position: absolute; left: 50%; top: 7%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream); padding: 8px 14px; background: rgba(38,6,15,.35); border: 1px solid rgba(246,197,106,.55); cursor: pointer; }
.arch__film { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream); padding: 9px 14px; background: rgba(246,197,106,.14); border: 1px solid rgba(246,197,106,.55); }
.ring-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ring-card__meta .no { font-family: var(--script); font-style: italic; font-size: 22px; color: var(--gold); }
.ring-card__meta .tag { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); text-align: right; }
.ring-card h3 { font-family: var(--display); font-size: clamp(30px, 2.8vw, 38px); text-transform: uppercase; }
.ring-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--blush); }
.ring-card .features { font-size: 13px; line-height: 1.8; color: var(--cream); }
.ring-card .features span { color: var(--gold); }

/* ===== Films ===== */
.film { position: relative; height: min(820px, 100svh); min-height: 520px; overflow: hidden; background: #0f0a0c; }
.film--warm { background: #e2b99c; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(0deg, rgba(38,6,15,.92) 0%, rgba(38,6,15,0) 100%); }
.film__content { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(32px, 6vh, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.film__content > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.film h2 { font-family: var(--display); font-size: clamp(48px, 7vw, 96px); line-height: .95; text-transform: uppercase; color: var(--cream); }
.film__side { max-width: 420px; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; text-align: right; }
.film__side p { margin: 0; font-family: var(--script); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; color: var(--gold-soft); }

/* ===== Access form ===== */
.access { padding: clamp(80px, 10vw, 130px) var(--pad) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.access__intro { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 40px; }
.access h2 { font-family: var(--display); font-size: clamp(44px, 5vw, 68px); line-height: 1; text-transform: uppercase; }
.access h2 em { font-size: 1.18em; }
.perks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.perks li { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.perks li::before { content: "✦"; color: var(--gold); }
.access__card { padding: clamp(24px, 4vw, 48px); background: var(--maroon-deep); border: 1px solid rgba(246,197,106,.4); }
form { display: flex; flex-direction: column; gap: 26px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, legend { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.field b, legend b { font-weight: 400; letter-spacing: 0.1em; color: var(--gold); margin-left: 6px; }
.field i { font-style: normal; letter-spacing: 0.1em; color: #b89c8c; margin-left: 6px; }
input, textarea { width: 100%; min-height: 52px; padding: 0 16px; background: rgba(255,244,228,.05); border: 1px solid rgba(246,197,106,.4); color: var(--cream); font: 16px var(--sans); border-radius: 0; }
textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(232,207,192,.55); }
input[aria-invalid="true"] { border-color: #ff8a8a; }
.choices { margin: 0; padding: 0; border: none; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { padding: 0 0 10px; width: 100%; }
.choices[aria-invalid="true"] legend { color: #ffb4b4; }
.choices button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid rgba(246,197,106,.4); color: var(--cream); font-size: 14px; cursor: pointer; transition: background .15s; }
.choices button:hover { background: rgba(246,197,106,.1); }
.choices button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #3a0a17; font-weight: 500; }
.choices--rings button { padding: 4px 16px 4px 4px; }
.choices--rings img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.dot--gold { background: linear-gradient(135deg, #f6dc9c, #b8893a); }
.dot--rose { background: linear-gradient(135deg, #f5cdbf, #b87a67); }
.dot--midnight { background: linear-gradient(135deg, #55555c, #111114); }
.dot--silver { background: linear-gradient(135deg, #f1f1f1, #9a9ea4); }
.personal { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(246,197,106,.25); }
.engrave-input { font-family: var(--script); font-style: italic; font-size: 20px; letter-spacing: .04em; }
.engrave-preview { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 22px; border-radius: 999px; background: linear-gradient(180deg, #f8dd9e 0%, #d9a54c 55%, #b8863a 100%); box-shadow: inset 0 2px 3px rgba(255,255,255,.55), inset 0 -3px 6px rgba(90,50,10,.45); color: #5a3a12; }
.engrave-preview small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
#engrave-text { flex: 1; text-align: center; font-family: var(--script); font-style: italic; font-size: 24px; letter-spacing: .08em; color: #4a2c0c; text-shadow: 0 1px 0 rgba(255,236,190,.7); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.form-error { margin: 0; padding: 12px 16px; border: 1px solid rgba(255,138,138,.6); background: rgba(255,138,138,.08); color: #ffc9c9; font-size: 14px; }
.fine { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.thanks { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.thanks[hidden], form[hidden] { display: none; }
.thanks__kicker { margin: 0; font-family: var(--script); font-style: italic; font-size: 26px; color: var(--gold); }
.thanks__title { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; text-transform: uppercase; }
.thanks__body { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.7; color: var(--blush); }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 36px var(--pad); border-top: 1px solid var(--line-soft); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.footer__brand { font-family: var(--display); font-size: 16px; letter-spacing: .36em; color: var(--cream); }
.footer nav { display: flex; gap: 28px; }
.footer a { color: var(--muted); }

/* ===== Full-screen 360° viewer ===== */
.viewer { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: radial-gradient(ellipse at 50% 48%, #fbeee2 0%, #ecc9ae 50%, #b98468 100%); color: #2a0a16; }
.viewer[hidden] { display: none; }
.viewer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: max(24px, env(safe-area-inset-top)) var(--pad) 0; }
.viewer__no { margin: 0; font-family: var(--script); font-style: italic; font-size: 22px; color: #a3124a; }
.viewer__name { margin: 4px 0; font-family: var(--display); font-size: clamp(32px, 4vw, 52px); line-height: 1; text-transform: uppercase; }
.viewer__tag { margin: 0; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #6b4a52; }
.viewer__close { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: #2a0a16; border: none; color: var(--cream); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 24px rgba(42,10,22,.3); }
.viewer__stage { position: relative; flex: 1; min-height: 0; }
.viewer__shadow { position: absolute; left: 50%; bottom: 9%; width: min(420px, 60vw); height: 56px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(60,20,10,.32) 0%, rgba(60,20,10,0) 70%); }
.viewer .ring3d { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viewer .ring3d:active { cursor: grabbing; }
.viewer__arrow { position: absolute; top: 50%; z-index: 2; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; background: rgba(255,250,243,.8); border: 1px solid rgba(42,10,22,.3); color: #2a0a16; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.viewer__arrow:hover { background: #fff; }
.viewer__arrow--prev { left: var(--pad); }
.viewer__arrow--next { right: var(--pad); }
.viewer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 var(--pad) max(28px, env(safe-area-inset-bottom)); }
.viewer__hint { width: 240px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.viewer__tabs { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,250,243,.6); border: 1px solid rgba(42,10,22,.18); }
.viewer__tabs button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 6px; border-radius: 999px; background: transparent; border: none; color: #2a0a16; font-size: 13px; cursor: pointer; white-space: nowrap; }
.viewer__tabs button[aria-selected="true"] { background: #2a0a16; color: var(--cream); }
.viewer__tabs img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.viewer__film { width: 240px; min-height: 48px; font-size: 12px; letter-spacing: .22em; }
body.viewer-open { overflow: hidden; }

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .hero__content, .film__content, .lineup__head { flex-direction: column; align-items: flex-start; }
  .film__side { align-items: flex-start; text-align: left; }
  .lineup__grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; width: 100%; }
  .access { grid-template-columns: minmax(0, 1fr); }
  .access__intro { position: static; }
  .viewer__bottom { flex-wrap: wrap; justify-content: center; }
  .viewer__hint { display: none; }
  .viewer__tabs { order: -1; width: 100%; justify-content: center; }
  .viewer__film { width: auto; }
}
/* ===== Phone ===== */
@media (max-width: 600px) {
  .nav__cta { padding: 0 14px; letter-spacing: .1em; }
  .nav__brand { font-size: 18px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .ring-card__meta { flex-direction: column; gap: 4px; }
  .ring-card__meta .tag { text-align: left; }
  .viewer__arrow { width: 48px; height: 48px; margin-top: -24px; }
  .viewer__tabs { gap: 4px; padding: 4px; }
  .viewer__tabs button { padding: 0 10px 0 4px; font-size: 12px; gap: 6px; }
  .viewer__tabs img { width: 30px; height: 30px; }
  .viewer__close span { display: none; }
  .viewer__close { padding: 0 16px; }
  .engrave-preview { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Hero layout: keep the gold logo clear of the text ===== */
@media (min-width: 1025px) {
  .hero__content { flex-direction: column; align-items: flex-start; gap: 28px; width: min(460px, 31vw); margin-left: auto; }
  .hero__title { max-width: none; }
  .hero h1 { font-size: clamp(44px, 4.3vw, 70px); }
  .hero__fade { height: 22%; background: linear-gradient(0deg, var(--plum) 0%, rgba(38,6,15,0) 100%); }
  .hero__content::before { content: ""; position: absolute; inset: -60px -40px -40px -60px; z-index: -1; background: radial-gradient(ellipse at 60% 60%, rgba(38,6,15,.72) 0%, rgba(38,6,15,0) 70%); }
  .hero__content { position: relative; }
}
@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero__bg { position: relative; inset: auto; height: 62svh; min-height: 380px; max-height: 720px; object-position: 50% 45%; }
  .hero__fade { top: auto; bottom: auto; height: 120px; top: calc(max(380px, min(62svh, 720px)) - 120px); }
  .nav { position: absolute; top: 0; left: 0; right: 0; }
  .hero__content { margin-top: 0; padding-top: 12px; gap: 28px; }
}
@media (max-width: 420px) {
  .viewer__tabs img { display: none; }
  .viewer__tabs button { padding: 0 12px; }
}
