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

:root {
  --bg-deep: #1c0408;
  --bg-maroon: #2b070d;
  --velvet: #57101b;
  --crimson: #8e1423;
  --red: #a91d2e;
  --red-soft: #c33a48;
  --gold: #c9a15f;
  --gold-hi: #e6cb92;
  --gold-dim: rgba(201,161,95,.32);
  --gold-faint: rgba(201,161,95,.14);
  --ivory: #f4ecdc;
  --paper: #efe4cf;
  --card: #faf5ea;
  --ink: #33201a;
  --ink-mid: #6f584a;
  --ink-dim: #9a8574;
  --f-script: 'Ephesis', cursive;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-caps: 'Cinzel', 'Cormorant Garamond', serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--f-serif);
  background: var(--bg-deep);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:not(.unlocked) { overflow: hidden; height: 100dvh; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap { width: min(960px, 90vw); margin-inline: auto; }
.wrap-narrow { width: min(620px, 88vw); margin-inline: auto; }
.wrap.center { text-align: center; }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ COVER ============ */
.cover {
  position: fixed; inset: 0; z-index: 100; display: none;
  width: 100%; height: 100dvh;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--velvet), transparent 60%),
    radial-gradient(120% 90% at 50% 110%, #160307, transparent 55%),
    var(--bg-maroon);
  color: var(--ivory);
  border: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.7,0,.3,1), visibility .9s;
}
.cover[open] { display: flex; }
.cover.dismiss { opacity: 0; transform: translateY(-100%); visibility: hidden; pointer-events: none; }
.cover::after {
  content: ""; position: absolute; inset: 18px; pointer-events: none;
  border: 1px solid var(--gold-dim);
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.18);
}

.cover-frame { position: absolute; top: 46px; left: 0; right: 0; display: flex; justify-content: center; }
.cover-frame svg { width: min(320px, 86vw); height: 40px; }

.cover-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.mini-caps {
  font-family: var(--f-caps); font-size: 11px; letter-spacing: .42em;
  text-transform: uppercase; color: var(--gold-hi);
}
.cover-lead { font-family: var(--f-serif); font-style: italic; font-size: clamp(15px,4.5vw,19px); color: rgba(244,236,220,.78); margin: 30px 0 6px; letter-spacing: .04em; }

.cover-names { font-family: var(--f-script); line-height: .92; color: var(--ivory); }
.cover-names { display: flex; align-items: baseline; gap: .12em; font-size: clamp(72px, 22vw, 132px); }
.cover-names em { font-style: italic; font-size: .42em; color: var(--gold); transform: translateY(-.18em); margin-inline: .04em; }

.rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 14px; }
.rule i { width: clamp(40px, 16vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.rule svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.rule svg circle { fill: var(--gold); stroke: none; }

.cover-date { font-family: var(--f-caps); font-size: clamp(12px,3.4vw,14px); letter-spacing: .3em; color: rgba(244,236,220,.85); text-transform: uppercase; }

.cover-guest {
  margin-top: 34px; padding: 16px 26px; min-width: min(340px, 80vw);
  border: 1px solid var(--gold-dim); background: rgba(0,0,0,.18);
  position: relative;
}
.cover-guest p { font-family: var(--f-serif); font-style: italic; font-size: 14px; color: rgba(244,236,220,.7); letter-spacing: .03em; }
.cover-guest strong { display: block; margin-top: 6px; font-family: var(--f-serif); font-size: 23px; color: var(--gold-hi); letter-spacing: .02em; }
.cover-guest::before, .cover-guest::after { content: ""; position: absolute; top: 6px; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.cover-guest::before { left: -3px; }
.cover-guest::after { right: -3px; }

.cover-foot { position: absolute; bottom: 40px; font-family: var(--f-caps); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-dim); z-index: 2; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-caps); font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  padding: 15px 34px; cursor: pointer; border: 1px solid transparent;
  position: relative; overflow: hidden; transition: color .4s ease, background .4s ease, border-color .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn span { position: relative; z-index: 2; }
.btn-solid { margin-top: 40px; color: var(--bg-deep); background: var(--gold); border-color: var(--gold); }
.btn-solid::before { content: ""; position: absolute; inset: 0; background: var(--ivory); transform: translateY(101%); transition: transform .45s cubic-bezier(.7,0,.3,1); z-index: 1; }
.btn-solid:hover { color: var(--bg-deep); }
.btn-solid:hover::before { transform: translateY(0); }
.btn-line {
  color: var(--crimson); border-color: var(--gold); background: transparent;
}
.btn-line:hover { background: var(--crimson); color: var(--ivory); border-color: var(--crimson); }
.btn-line.dark { color: var(--red); border-color: rgba(169,29,46,.4); }
.btn-line.dark:hover { background: var(--red); color: var(--ivory); border-color: var(--red); }

/* ============ HERO ============ */
#hero {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; color: var(--ivory); overflow: hidden;
  background: var(--bg-deep);
  padding-bottom: clamp(120px, 18vh, 160px);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  animation: kb 26s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.03);
}
@keyframes kb { from { transform: scale(1.08) translate(0,0); } to { transform: scale(1.18) translate(-2%, -2%); } }

.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28,4,8,.62) 0%, rgba(28,4,8,.18) 26%, rgba(28,4,8,.28) 58%, rgba(28,4,8,.92) 100%),
    radial-gradient(120% 70% at 50% 42%, transparent 40%, rgba(28,4,8,.55) 100%);
}
.hero-shade::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg fill='none' stroke='%23c9a15f' stroke-opacity='0.08'%3E%3Cpath d='M35 10 L60 35 L35 60 L10 35 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-frame { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hf { position: absolute; width: clamp(64px, 16vw, 104px); height: clamp(64px, 16vw, 104px); }
.hf-tl { top: 26px; left: 26px; }
.hf-tr { top: 26px; right: 26px; transform: scaleX(-1); }
.hf-bl { bottom: 26px; left: 26px; transform: scaleY(-1); }
.hf-br { bottom: 26px; right: 26px; transform: scale(-1,-1); }

.hero-in { position: relative; z-index: 3; padding: 0 26px; }
.hero-eyebrow { font-size: clamp(12px,3.6vw,15px); letter-spacing: .46em; padding-left: .46em; text-shadow: 0 2px 16px rgba(28,4,8,.9); }
.hero-names { font-family: var(--f-script); line-height: .9; margin: 10px 0 16px; font-weight: 400; }
.hero-names { display: flex; flex-direction: column; align-items: center; font-size: clamp(68px, 19vw, 140px); }
.hero-names .hn { color: var(--ivory); text-shadow: 0 6px 40px rgba(0,0,0,.55); }
.hn-amp { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 24px); margin: .04em 0; }
.hn-amp i { width: clamp(44px, 11vw, 96px); height: 1px; display: inline-block; background: linear-gradient(90deg, transparent, var(--gold)); }
.hn-amp i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hn-amp em { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 5.5vw, 40px); color: var(--gold); line-height: 1; text-shadow: 0 2px 16px rgba(28,4,8,.8); }

.hero-date {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  font-family: var(--f-caps); font-size: clamp(11px,3.2vw,14px); letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 2px 16px rgba(28,4,8,.9), 0 0 4px rgba(28,4,8,.6);
}
.hero-date b { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); display: inline-block; }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { font-family: var(--f-caps); font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: rgba(244,236,220,.6); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-hi); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ============ PETALS ============ */
.petals { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.petals i {
  position: absolute; top: -12%; left: var(--x);
  width: calc(16px * var(--sc)); height: calc(16px * var(--sc));
  opacity: var(--o); animation: fall var(--t) linear var(--dl) infinite;
}
.petals i u {
  display: block; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 C6 9 5 14 8.5 18 C11.5 21 15.5 20 17 16 C19 12 16.5 7 12 2 Z' fill='%23a91d2e'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: spin 7s linear infinite;
}
@keyframes fall {
  0% { transform: translate3d(0,0,0); }
  25% { transform: translate3d(3vw,28vh,0); }
  50% { transform: translate3d(-2vw,55vh,0); }
  75% { transform: translate3d(2.5vw,80vh,0); }
  100% { transform: translate3d(-1vw,112vh,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ SECTIONS GENERIC ============ */
section { position: relative; padding: clamp(72px, 12vw, 120px) 0; }
.eyebrow { font-family: var(--f-caps); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-dim); display: block; text-align: center; margin-bottom: 18px; }
.eyebrow.gold { color: var(--gold); }
.script-title { font-family: var(--f-script); font-weight: 400; font-size: clamp(52px, 12vw, 92px); line-height: 1; color: var(--crimson); text-align: center; }
.script-title.gold-ink { color: var(--gold-hi); }
.lede { font-family: var(--f-serif); font-size: clamp(16px, 2.6vw, 19px); line-height: 1.7; color: var(--ink-mid); text-align: center; max-width: 540px; margin: 18px auto 0; }
.lede.gold-soft { color: rgba(244,236,220,.72); }
.mini-caps.gold { color: var(--gold-hi); }

/* ============ AYAT ============ */
#ayat {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-maroon) 60%, var(--bg-deep));
  color: var(--ivory); text-align: center;
  padding-block: clamp(80px, 14vw, 140px);
}
.flourish { width: min(260px, 70vw); height: 34px; margin: 0 auto 28px; display: block; }
.flourish + .wrap-narrow { margin-top: 0; }
#ayat .quran { font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 4.4vw, 27px); line-height: 1.85; color: rgba(244,236,220,.92); }
#ayat .quran-src { font-family: var(--f-caps); font-size: 12px; letter-spacing: .3em; color: var(--gold); margin-top: 22px; }

/* ============ MEMPELAI ============ */
#mempelai { background: var(--paper); }
.medallion { position: relative; margin: 0 auto 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.medallion-letter { font-family: var(--f-script); font-size: 82px; color: var(--crimson); line-height: .85; }
.medallion-rule { display: block; width: 42px; height: 1px; background: var(--gold); opacity: .9; position: relative; }
.medallion-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; background: var(--gold); transform: translate(-50%,-50%) rotate(45deg); }
.person { text-align: center; }
.person-name { font-family: var(--f-caps); font-size: clamp(20px, 5vw, 26px); letter-spacing: .08em; color: var(--ink); margin-bottom: 8px; }
.person-parents { font-family: var(--f-serif); font-style: italic; font-size: 16px; line-height: 1.6; color: var(--ink-mid); }

.couple { display: grid; gap: 44px; margin-top: 56px; align-items: center; }
.amp { display: none; }
.amp svg { width: 60px; height: 60px; }
.amp .amp-line { stroke: var(--gold); stroke-width: 1.2; }
.amp .amp-glyph { font-family: var(--f-serif); font-style: italic; font-size: 34px; fill: var(--crimson); }

@media (min-width: 720px) {
  .couple { grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: center; }
  .amp { display: block; }
}

/* ============ COUNTDOWN ============ */
#countdown {
  background:
    radial-gradient(120% 90% at 50% 0%, var(--velvet), transparent 55%),
    var(--bg-maroon);
  color: var(--ivory); text-align: center; overflow: hidden;
}
#countdown::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23c9a15f' stroke-opacity='0.07'%3E%3Cpath d='M40 12 L68 40 L40 68 L12 40 Z'/%3E%3C/g%3E%3C/svg%3E");
}
#countdown .eyebrow { color: var(--gold); }
.cd-title { font-family: var(--f-caps); font-size: clamp(17px, 4.4vw, 24px); letter-spacing: .16em; color: var(--gold-hi); margin-bottom: 38px; }
.cd-grid { display: flex; justify-content: center; gap: 0; max-width: 420px; margin: 0 auto; }
.cd-cell { flex: 1; position: relative; padding: 0 6px; }
.cd-cell:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 12%; height: 76%; width: 1px; background: repeating-linear-gradient(var(--gold-dim), var(--gold-dim) 2px, transparent 2px, transparent 6px); }
.cd-cell strong { display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(46px, 13vw, 76px); line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.cd-cell span { display: block; margin-top: 10px; font-family: var(--f-caps); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,236,220,.6); }

/* ============ ACARA / TICKET ============ */
#acara { background: var(--ivory); }
.ticket {
  position: relative; display: flex; margin: 48px auto 0; max-width: 720px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 30px 70px -40px rgba(43,7,13,.6);
  border: 1px solid var(--gold-dim);
}
.ticket-stub {
  flex: 0 0 64px; background: var(--crimson); color: var(--ivory);
  display: grid; place-items: center; position: relative;
  border-right: 1px dashed var(--gold);
}
.ticket-stub span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-caps); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-hi);
}
.ticket-stub::after, .ticket-stub::before {
  content: ""; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--gold-dim); z-index: 2;
}
.ticket-stub::before { top: -8px; }
.ticket-stub::after { bottom: -8px; }

.ticket-main { flex: 1; padding: clamp(28px, 5vw, 44px) clamp(24px, 5vw, 44px); }
.ticket-events { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ticket-events > div { flex: 1; }
.ticket-events > div:last-child { text-align: right; }
.t-label { display: block; font-family: var(--f-caps); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.ticket-events strong { font-family: var(--f-serif); font-size: clamp(22px, 5vw, 30px); font-weight: 500; color: var(--ink); line-height: 1.1; }
.t-diamond { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: var(--gold); stroke-width: 1.2; }

.ticket-date { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 26px 0; padding: 22px 0; border-top: 1px solid var(--gold-faint); border-bottom: 1px solid var(--gold-faint); }
.td-day { font-family: var(--f-caps); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-mid); }
.td-num { font-family: var(--f-serif); font-weight: 300; font-size: clamp(56px, 14vw, 84px); line-height: .9; color: var(--crimson); }
.td-month { font-family: var(--f-caps); font-size: clamp(13px, 3.4vw, 16px); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.td-month b { color: var(--gold); }

.ticket-meta { display: grid; gap: 16px; }
.tm-row { display: flex; gap: 14px; align-items: flex-start; }
.tm-row svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--red); margin-top: 3px; }
.tm-row p { font-family: var(--f-serif); font-size: 16px; line-height: 1.55; color: var(--ink-mid); }
.tm-row p strong { font-weight: 600; color: var(--ink); }

@media (max-width: 520px) {
  .ticket { flex-direction: column; }
  .ticket-stub { flex: none; height: 48px; border-right: none; border-bottom: 1px dashed var(--gold); }
  .ticket-stub span { writing-mode: horizontal-tb; transform: none; letter-spacing: .3em; }
  .ticket-stub::after, .ticket-stub::before { right: auto; bottom: auto; top: 50%; }
  .ticket-stub::before { left: -8px; }
  .ticket-stub::after { right: -8px; }
}

.map-wrap { margin: 48px auto 0; max-width: 720px; aspect-ratio: 16/7; border: 1px solid var(--gold-dim); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.18) sepia(.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* ============ GALERI ============ */
#galeri {
  background:
    radial-gradient(120% 80% at 50% 0%, var(--velvet), transparent 55%),
    var(--bg-deep);
  color: var(--ivory);
}
#galeri .script-title { color: var(--gold-hi); }
.g-grid { display: grid; gap: 30px; margin-top: 54px; }
.g-item { margin: 0; }
.g-imgwrap { position: relative; overflow: hidden; border: 1px solid var(--gold-dim); padding: 8px; background: rgba(201,161,95,.04); transition: clip-path 1.1s cubic-bezier(.22,.61,.21,1), opacity 1.1s ease; clip-path: inset(11% 9% 11% 9%); opacity: 0; }
.g-imgwrap::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201,161,95,.25); pointer-events: none; }
.g-img { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.g-img img { width: 100%; height: 130%; object-fit: cover; will-change: transform; transform: scale(1.06); }
.g-credit { text-align: center; margin-top: 56px; font-family: var(--f-serif); font-style: italic; font-size: 14px; color: var(--gold-dim); }
.g-credit span { color: var(--gold-hi); font-style: normal; letter-spacing: .04em; }

@media (min-width: 760px) {
  .g-grid { grid-template-columns: repeat(12, 1fr); gap: 26px; align-items: start; }
  .g-item:nth-child(1) { grid-column: 1 / 6; }
  .g-item:nth-child(1) .g-img { aspect-ratio: 3/4; }
  .g-item:nth-child(2) { grid-column: 6 / 13; margin-top: 70px; }
  .g-item:nth-child(2) .g-img { aspect-ratio: 16/11; }
  .g-item:nth-child(3) { grid-column: 1 / 7; margin-top: 18px; }
  .g-item:nth-child(3) .g-img { aspect-ratio: 4/5; }
  .g-item:nth-child(4) { grid-column: 7 / 13; margin-top: 92px; }
  .g-item:nth-child(4) .g-img { aspect-ratio: 3/4; }
  .g-item:nth-child(4) .g-img img { object-position: center 55%; }
  .g-img img { height: 126%; }
}

/* ============ AMPLOP ============ */
#amplop { background: var(--paper); }
.envelope {
  position: relative; margin: 46px auto 0; max-width: 440px; padding: 48px 32px 40px;
  background: var(--card); border: 1px solid var(--gold-dim); text-align: center;
  box-shadow: 0 24px 60px -44px rgba(43,7,13,.5);
}
.envelope::before { content: ""; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border: 1px solid var(--gold-faint); pointer-events: none; }
.seal {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--red-soft), var(--crimson) 60%, #6f0f1a);
  display: grid; place-items: center; color: var(--gold-hi);
  font-family: var(--f-script); font-size: 22px; box-shadow: 0 8px 22px -8px rgba(110,15,26,.7), inset 0 0 0 2px rgba(201,161,95,.4);
}
.env-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; }
.env-brand img { border-radius: 6px; }
.env-brand strong { font-family: var(--f-caps); font-size: 18px; letter-spacing: .12em; color: var(--ink); display: block; }
.env-brand span { font-family: var(--f-serif); font-size: 15px; color: var(--ink-mid); letter-spacing: .04em; }
.env-name { font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--ink-mid); margin: 4px 0 22px; }
.env-note { font-family: var(--f-serif); font-style: italic; font-size: 15px; color: var(--ink-dim); margin-top: 22px; line-height: 1.6; }

/* ============ PENUTUP ============ */
#penutup {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-maroon) 55%, #160307);
  color: var(--ivory); text-align: center;
  padding-bottom: clamp(80px, 14vw, 130px);
}
#penutup .closing { font-family: var(--f-serif); font-style: italic; font-size: clamp(17px, 4.2vw, 23px); line-height: 1.9; color: rgba(244,236,220,.9); max-width: 600px; margin: 0 auto; }
.foot-kami { font-family: var(--f-serif); font-size: 16px; color: rgba(244,236,220,.7); margin-top: 36px; letter-spacing: .04em; }
.foot-names { font-family: var(--f-script); font-size: clamp(56px, 14vw, 96px); line-height: 1; color: var(--gold-hi); margin: 8px 0; }
.foot-hashtag { font-family: var(--f-caps); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); opacity: .8; }
.foot-meta { font-family: var(--f-serif); font-style: italic; font-size: 15px; color: var(--gold-dim); margin-top: 28px; }

/* ============ MUSIC BUTTON ============ */
#music-btn {
  position: fixed; bottom: 26px; right: 22px; z-index: 60;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--gold-dim);
  background: rgba(43,7,13,.82); color: var(--gold-hi); cursor: pointer;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px -10px rgba(0,0,0,.7); transition: transform .3s ease, background .3s ease;
}
#music-btn.show { display: flex; }
#music-btn:hover { transform: scale(1.07); background: var(--crimson); }
#music-btn svg { width: 22px; height: 22px; }
#music-btn .ic-pause { display: none; }
#music-btn.playing .ic-play { display: none; }
#music-btn.playing .ic-pause { display: block; }
#music-btn.playing { animation: none; }

/* ============ TOAST ============ */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 18px);
  background: var(--crimson); color: var(--ivory); font-family: var(--f-caps);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 26px; border: 1px solid var(--gold-dim);
  opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ REVEAL / DRAW ============ */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.21,1); transition-delay: var(--d, 0ms); }
.rv-l { opacity: 0; transform: translateX(-44px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.21,1); transition-delay: var(--d, 0ms); }
.rv-r { opacity: 0; transform: translateX(44px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.21,1); transition-delay: var(--d, 0ms); }
.rv.on, .rv-l.on, .rv-r.on { opacity: 1; transform: none; }

.g-imgwrap.on { clip-path: inset(0 0 0 0); opacity: 1; }

.draw path, .draw circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s ease var(--dd, .1s), opacity .6s ease; }
.draw .s1 { stroke: var(--gold); stroke-width: 1; fill: none; }
.draw .s2 { stroke: var(--gold); stroke-width: 1; fill: none; }
.draw .f1 { fill: var(--gold); stroke: none; opacity: 0; transition: opacity .8s ease .9s; }
.draw.on path, .draw.on circle { stroke-dashoffset: 0; }
.draw.on .f1 { opacity: 1; }

@media (max-width: 600px) {
  .cover { justify-content: center; padding: 14px 12px; overflow: hidden; }
  .cover::after { inset: 10px; }
  .cover-frame { top: 16px; }
  .cover-body { margin-top: 0; width: 100%; transform: scale(.92); transform-origin: center center; }
  .cover-names { flex-direction: column; align-items: center; gap: 0; font-size: clamp(58px, 19vw, 96px); }
  .cover-names em { transform: none; margin: .04em 0; font-size: .42em; }
  .cover-body > .mini-caps { font-size: 9px; letter-spacing: .3em; padding-left: .3em; }
  .cover-guest { margin-top: 16px; padding: 12px 16px; }
  .btn-solid { margin-top: 18px; }
  .cover-foot { position: absolute; bottom: 14px; margin-top: 0; padding-bottom: 0; font-size:9px }
  .cd-cell strong { font-size: clamp(40px, 12vw, 56px); }
}

@media (max-width: 480px) {
  #hero { padding-bottom: 100px; }
  .hero-names { font-size: clamp(52px, 17vw, 76px); line-height: .88; }
  .hn-amp { margin: .02em 0; }
  .hn-amp em { font-size: clamp(18px, 5vw, 24px); }
  .hn-amp i { width: clamp(36px, 10vw, 64px); }
  .hero-eyebrow { font-size: 11px; letter-spacing: .38em; padding-left: .38em; }
  .hero-date { font-size: 10px; letter-spacing: .22em; gap: 10px; }
  .scroll-cue { bottom: 22px; }
  .scroll-cue span { display: none; }
  .scroll-cue i { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .petals { display: none; }
  .rv, .rv-l, .rv-r, .g-imgwrap { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .draw path, .draw circle { stroke-dashoffset: 0 !important; }
  .draw .f1 { opacity: 1 !important; }
  .hero-media img { animation: none; }
}
