:root {
    /* Bright, Nature & Modern Palette */
    --bg-ivory: #FAF9F6;
    --bg-champagne: #F5EFEB;
    --text-dark-green: #2B4232;
    --text-light-green: #4A6B53;
    --accent-pink: #E8A598;
    --accent-gold: #CBAA69;

    /* Contoh.html */
    --envelope-color: #f3e5d8;
    --envelope-dark: #e6d5c3;
    --text-color: #4a4a4a;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    overflow-x: hidden;
}

body {
    background: linear-gradient(-45deg, #ffffff, #FAF9F6, #F5EFEB, #faeadb);
    background-size: 300% 300%;
    animation: elegantGlow 15s ease infinite;
    color: var(--text-dark-green);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

body.locked-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

@keyframes elegantGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatSoft {

    0%,
    100% {
        transform: scale(1.15) translateY(0) rotate(0deg);
    }

    50% {
        transform: scale(1.15) translateY(-10px) rotate(1deg);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 10px 20px rgba(43, 66, 50, 0.2), 0 0 0 0 rgba(43, 66, 50, 0.3);
    }

    70% {
        box-shadow: 0 10px 20px rgba(43, 66, 50, 0.2), 0 0 0 8px rgba(43, 66, 50, 0);
    }

    100% {
        box-shadow: 0 10px 20px rgba(43, 66, 50, 0.2), 0 0 0 0 rgba(43, 66, 50, 0);
    }
}

@keyframes floatSpin1 {

    0%,
    100% {
        transform: rotate(-270deg) scale(1) translateY(0);
    }

    50% {
        transform: rotate(-267deg) scale(1.05) translateY(-15px);
    }
}

@keyframes flowerEnterLeft {
    from {
        opacity: 0;
        transform: rotate(-270deg) translateX(-130%);
    }

    to {
        opacity: 1;
        transform: rotate(-270deg) translateX(0);
    }
}

@keyframes flowerEnterRight {
    from {
        opacity: 0;
        transform: rotate(10deg) translateX(130%);
    }

    to {
        opacity: 1;
        transform: rotate(10deg) translateX(0);
    }
}

@keyframes floatSpin2 {

    0%,
    100% {
        transform: rotate(10deg) scale(1) translateY(0);
    }

    50% {
        transform: rotate(13deg) scale(1.05) translateY(-15px);
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-ivory);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light-green);
    border-radius: 4px;
}

/* Background Canvas */
#floral-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.anime-leaf {
    position: absolute;
    fill: var(--text-light-green);
    opacity: 0.15;
    width: 40px;
    height: 40px;
}

.anime-flower {
    position: absolute;
    fill: var(--accent-pink);
    opacity: 0.2;
    width: 50px;
    height: 50px;
}

/* 3D Container & Glass Cards */
.perspective-container {
    perspective: 1200px;
    width: 100%;
}

.section-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 1.5rem 1.2rem;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(43, 66, 50, 0.1), inset 0 2px 2px rgba(255, 255, 255, 0.9), inset 0 -2px 5px rgba(255, 255, 255, 0.3);
    padding: 2.5rem 1.5rem;
    width: 100%;
    max-width: 550px;
    text-align: center;
    transform-style: preserve-3d;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.28s ease-out, box-shadow 0.28s ease-out;
}

@media (min-width: 768px) {
    .section-container {
        padding: 3rem 1.5rem;
    }

    .glass-card {
        padding: 4rem 2.5rem;
    }
}

.z-float {
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Typography */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    color: var(--text-dark-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--accent-gold);
}

.guest-name {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 2rem;
    color: var(--text-dark-green);
}

.title-main {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 3.5rem);
    line-height: 1.1;
    color: var(--text-dark-green);
}

.title-amp {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.5rem);
    color: var(--accent-pink);
    font-style: italic;
    display: block;
    margin: 0.5rem 0;
}

/* Islamic Doa Text */
.arabic-text {
    font-family: 'Amiri', serif;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.8;
    color: var(--text-dark-green);
    margin-bottom: 1.5rem;
    direction: rtl;
}



.arabic-translation {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: var(--text-light-green);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.arabic-source {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

/* Profile Images - Editorial Minimalism */
.couple-layout {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .couple-layout {
        padding-left: clamp(2rem, 5vw, 5rem);
    }
}

.couple-image-wrap {
    width: 100%;
    /* margin: 1.5rem 0; */
}

.couple-main-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    transform: scale(1.15);
    animation: floatSoft 6s ease-in-out infinite;
    /* Helps integrate white background if any */
}

/* Base style for texts */
.couple-text {
    position: absolute;
    width: 50%;
    padding: clamp(0.5rem, 2vw, 1rem);
    z-index: 2;
}

.bride-text {
    top: 5%;
    left: 2%;
    text-align: left;
}

.groom-text {
    bottom: 5%;
    right: 2%;
    text-align: right;
}

.role-label {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    color: rgba(158, 18, 18, 1);
    margin-bottom: -5px;
}

.role-bride {
    transform: rotate(-5deg);
}

.role-groom {
    transform: rotate(5deg);
}

.profile-name {
    font-family: var(--font-display);
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    color: var(--text-dark-green);
    margin-bottom: 0.5rem;
    font-style: italic;
    line-height: 1.1;
}

.profile-parents {
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    color: var(--text-light-green);
    line-height: 1.4;
}

@media (max-width: 500px) {
    .couple-text {
        width: 60%;
    }

    .bride-text {
        top: 8%;
        left: 2%;
    }

    .groom-text {
        bottom: 8%;
        right: 2%;
    }
}

/* Buttons */
.btn-primary {
    background: var(--text-dark-green);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(43, 66, 50, 0.2);
    margin: 2rem auto 0;
    width: 100%;
    max-width: 250px;
    display: block;
    animation: pulseGlow 2.5s infinite;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(43, 66, 50, 0.3);
    background: var(--text-light-green);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-dark-green);
    border: 1px solid var(--text-dark-green);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--text-dark-green);
    color: #fff;
}

.mt-0 {
    margin-top: 0;
}

.mt-3 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

/* Events */
.event-details {
    margin: 1.5rem 0;
}

.event-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.event-date {
    font-weight: 500;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.event-time {
    color: var(--text-light-green);
}

.event-venue {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-dark-green);
}

.divider {
    width: 50px;
    height: 1px;
    background: var(--accent-pink);
    margin: 2rem auto;
}

/* Countdown */
.text-sm {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cd-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
    width: calc(25% - 0.6rem);
    min-width: 60px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
}

.cd-num {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 5vw, 2rem);
    color: var(--text-dark-green);
}

.cd-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light-green);
    margin-top: 0.4rem;
}

/* Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-light {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(43, 66, 50, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    color: var(--text-dark-green);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.input-light:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #fff;
    box-shadow: 0 5px 15px rgba(203, 170, 105, 0.15);
}

.gift-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1rem;
}

.gift-panel {
    margin-top: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(245, 239, 235, 0.72)),
        repeating-linear-gradient(115deg, rgba(203, 170, 105, 0.05) 0 16px, rgba(255, 255, 255, 0.14) 16px 32px);
    border: 3px solid rgba(74, 107, 83, 0.75);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.9), 0 18px 35px rgba(43, 66, 50, 0.08);
}

.gift-description {
    max-width: 420px;
    margin: 0 auto;
    color: var(--text-dark-green);
    font-size: 1rem;
    line-height: 1.8;
}

.gift-trigger {
    margin: 1.75rem auto 0;
    min-width: 180px;
    border: none;
    border-radius: 12px;
    background: #6f8195;
    color: #fff;
    padding: 0.95rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(111, 129, 149, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: pulseGlow 3s infinite;
}

.gift-trigger:hover {
    transform: translateY(-2px);
    background: #607387;
    box-shadow: 0 16px 28px rgba(96, 115, 135, 0.3);
}

.gift-trigger__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

.gift-trigger__icon svg {
    width: 100%;
    height: 100%;
}

.gift-bank {
    font-family: var(--font-display);
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.gift-number {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0.5rem 0;
    color: var(--text-dark-green);
}

.gift-name {
    color: var(--text-light-green);
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-ivory);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Elegant Loader (Rings) */
.elegant-loader {
    position: relative;
    width: 64px;
    height: 64px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    animation: spinRing 1.5s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.loader-ring:nth-child(2) {
    inset: 8px; /* Membuat cincin kedua lebih kecil */
    border-bottom-color: var(--text-dark-green);
    border-right-color: var(--text-dark-green);
    animation: spinRing 2s cubic-bezier(0.42, 0, 0.58, 1) infinite reverse;
}

@keyframes spinRing {
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Scroll Ornament (Classy Redesign) */
.scroll-ornament {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light-green);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.4s ease;
    animation: elegantBounce 2s infinite ease-in-out;
}

.scroll-ornament span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
    font-weight: 500;
}

.scroll-ornament svg {
    width: 20px;
    height: 20px;
}

@keyframes elegantBounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

@media(min-width: 768px) {
    .scroll-ornament {
        display: none;
    }
}

/* == ENVELOPE DARI CONTOH.HTML == */
.wrapper {
    position: relative;
    cursor: pointer;
    z-index: 10;
}

/* Container Amplop */
.envelope-wrapper {
    position: relative;
    width: 300px;
    height: 200px;
    background-color: var(--envelope-dark);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0.1) 4px);
    box-shadow: 0 25px 50px rgba(43, 66, 50, 0.15);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

/* Bagian Depan Amplop */
.envelope-wrapper::before {
    content: "";
    position: absolute;
    z-index: 2;
    border-top: 100px solid transparent;
    border-right: 150px solid var(--envelope-color);
    border-bottom: 100px solid var(--envelope-color);
    border-left: 150px solid var(--envelope-color);
    filter: drop-shadow(0 -5px 10px rgba(0, 0, 0, 0.05));
}

/* Label Nama Penerima di Luar Amplop */
.recipient-label {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    width: 80%;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.recipient-label span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #887a6d;
    display: block;
    margin-bottom: 2px;
}

.recipient-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    border-bottom: 1px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 2px;
}

/* Penutup Amplop (Flap) */
.flap {
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-top: 110px solid var(--envelope-dark);
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    transform-origin: top;
    transition: transform 0.4s 0.4s ease;
    z-index: 4;
}

/* Kertas Undangan */
.letter {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 280px;
    height: 180px;
    background: white;
    z-index: 1;
    transition: transform 0.5s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.letter h1 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin: 0 0 10px 0;
    font-style: italic;
    font-family: var(--font-display);
}

.letter p {
    color: var(--text-color);
    margin: 5px 0;
}

/* Efek Terbuka */
.wrapper.open .flap {
    transform: rotateX(180deg);
    transition: transform 0.4s ease;
    z-index: 0;
}

.wrapper.open .letter {
    transform: translateY(-120px);
    transition: transform 1.3s 0.4s ease;
    z-index: 2;
}

.wrapper.open .recipient-label {
    opacity: 0;
}

/* Dekorasi Segel */
.seal {
    position: absolute;
    top: 90px;
    left: 135px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #f9e2b1 0%, var(--accent-gold) 50%, #9c7f42 100%);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(203, 170, 105, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 12px;
    transition: opacity 0.3s 0.2s ease;
}

.wrapper.open .seal {
    opacity: 0;
}

.instruction {
    position: absolute;
    bottom: -60px;
    width: 100%;
    text-align: center;
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 520px) {
    .hero-floral-ornament {
        top: -5px;
        left: -18px;
        width: calc(100% + 36px);
        height: calc(100% + 36px);
    }
}

/* === NEW SECTIONS (LOVE STORY & GALLERY) === */
.story-timeline {
    position: relative;
    max-width: 500px;
    margin: 2rem auto 0;
    padding-left: 20px;
    border-left: 2px solid var(--accent-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-champagne);
    border: 2px solid var(--accent-gold);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-dark-green);
    margin: 0;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-light-green);
    line-height: 1.5;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* === GUESTBOOK === */
.guestbook-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--accent-gold);
}

.guestbook-header {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-dark-green);
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.guestbook-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar khusus untuk guestbook */
.guestbook-list::-webkit-scrollbar {
    width: 6px;
}

.guestbook-list::-webkit-scrollbar-track {
    background: transparent;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

/* Guestbook Loader */
.guestbook-loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.guestbook-loader {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(203, 170, 105, 0.3); /* Warna bingkai redup */
    border-top-color: var(--accent-gold); /* Warna garis gerak */
    border-radius: 50%;
    animation: spinRing 1s linear infinite;
}

/* Pagination UI */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.page-btn {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: var(--bg-champagne);
}

.page-btn.active {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.guest-msg-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(203, 170, 105, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.msg-author {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-dark-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.msg-badge {
    background: var(--bg-champagne);
    color: var(--text-dark-green);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid var(--accent-gold);
}

.msg-badge--absent {
    background: rgba(180, 140, 140, 0.15);
    border-color: rgba(180, 140, 140, 0.4);
    color: #8c6b6b;
}

.msg-text {
    font-size: 0.85rem;
    color: var(--text-light-green);
    margin: 0.5rem 0;
    line-height: 1.5;
}

.msg-time {
    font-size: 0.7rem;
    color: #888;
    text-align: right;
}

/* === COPY BUTTON & AUDIO === */
.copy-btn {
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--bg-champagne);
}

.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gift-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gift-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 66, 50, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gift-modal__dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 239, 235, 0.95));
    box-shadow: 0 25px 60px rgba(43, 66, 50, 0.22);
}

.gift-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: none;
    background: transparent;
    color: var(--text-light-green);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.gift-modal__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 2.6rem);
    color: var(--text-dark-green);
    text-align: center;
}

.gift-modal__intro {
    margin: 0.75rem auto 1.25rem;
    max-width: 360px;
    text-align: center;
    color: var(--text-light-green);
}

.gift-modal__list {
    display: grid;
    gap: 1rem;
}

.gift-modal .gift-box {
    margin-top: 0;
    border: 1px solid rgba(203, 170, 105, 0.25);
}

.gift-box--mandiri {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 46, 128, 0.92), rgba(0, 73, 153, 0.88)),
        linear-gradient(45deg, rgba(255, 198, 39, 0.16), transparent 60%);
    color: #fff;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gift-box--mandiri::before {
    content: "";
    position: absolute;
    inset: 0.6rem;
    /* background: url('assets/bank-mandiri-218x64.png') right/50% auto no-repeat; */
    opacity: 0.28;
    pointer-events: none;
}

.gift-box--mandiri .gift-bank,
.gift-box--mandiri .gift-number,
.gift-box--mandiri .gift-name {
    color: #fff;
}

.gift-box--mandiri>* {
    position: relative;
    z-index: 1;
}

.gift-box--mandiri .gift-bank {
    letter-spacing: 0.08em;
}

.gift-box--mandiri .copy-btn {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.gift-box--mandiri .copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.gift-box--bri {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 86, 167, 0.96), rgba(18, 120, 208, 0.9)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 42%);
    color: #fff;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gift-box--bri::before {
    content: "";
    position: absolute;
    inset: 0.6rem;
    /* background: url('assets/bank-rakyat-indonesia-(bri)-168x64.png') right/32% auto no-repeat; */
    opacity: 0.24;
    pointer-events: none;
}

.gift-box--bri .gift-bank,
.gift-box--bri .gift-number,
.gift-box--bri .gift-name {
    color: #fff;
}

.gift-box--bri>* {
    position: relative;
    z-index: 1;
}

.gift-box--bri .copy-btn {
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
}

.gift-box--bri .copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.gift-box--address {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #4A6B53 0%, #2B4232 100%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 42%);
    color: #fff;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gift-box--address .gift-bank,
.gift-box--address .gift-number,
.gift-box--address .gift-name {
    color: #fff;
}

.gift-box--address>* {
    position: relative;
    z-index: 1;
}

.gift-box--address .copy-btn {
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
}

.gift-box--address .copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.gift-modal .copy-btn {
    margin-top: 0.9rem;
    width: 100%;
}

/* Mini Music Player */
.music-player {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(203, 170, 105, 0.3);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 6px 14px 6px 6px;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.music-player:hover {
    transform: scale(1.03);
}

.music-cover {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-dark-green);
    border: 2px solid var(--accent-gold);
}

.vinyl-record {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(#2B4232 0,
            #2B4232 2px,
            #1A2A1F 3px,
            #1A2A1F 4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-center {
    width: 10px;
    height: 10px;
    background: var(--accent-pink);
    border-radius: 50%;
    border: 2px solid var(--bg-ivory);
}

.music-player.playing .music-cover {
    animation: spinRecord 4s linear infinite;
}

.music-info {
    display: flex;
    flex-direction: column;
    max-width: 120px;
}

.music-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.music-artist {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--text-light-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-control {
    color: var(--text-dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 5px;
}

.music-control svg {
    width: 18px;
    height: 18px;
}

.music-player.playing .icon-play {
    display: none;
}

.music-player:not(.playing) .icon-pause {
    display: none;
}

@keyframes spinRecord {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 520px) {
    .gift-panel {
        padding: 1.6rem 1rem;
    }

    .gift-description {
        font-size: 0.95rem;
    }

    .gift-trigger {
        width: 100%;
    }

    .gift-modal__dialog {
        padding: 1.75rem 1rem 1rem;
    }

    .gift-number {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* === MOBILE BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: calc(100% - 40px);
    max-width: 400px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.6rem 0.2rem;
    z-index: 1100;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 2px 2px rgba(255, 255, 255, 0.8);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Show nav only after envelope is opened */
body.is-open .bottom-nav {
    transform: translateX(-50%) translateY(0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light-green);
    font-family: var(--font-body);
    transition: all 0.3s ease;
    flex: 1;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    stroke: var(--text-light-green);
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--text-dark-green);
    transform: translateY(-3px);
}

.nav-item.active svg {
    stroke: var(--accent-gold);
    transform: scale(1.1);
}

.nav-item.active span {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Move music button in mobile so it doesn't overlap the bottom nav */
@media (max-width: 767px) {
    .music-player {
        bottom: 90px;
        right: 20px;
        left: auto;
    }
}

/* Hide bottom nav on larger screens */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

/* Add padding to the bottom of the layout on mobile so content isn't hidden behind the nav */
@media (max-width: 767px) {
    .perspective-container {
        padding-bottom: 75px;
    }
}

/* === LIGHTBOX GALLERY PREVIEW === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.is-open .lightbox__content {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.lightbox__close:hover {
    transform: scale(1.1);
}

.lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* === EDITORIAL MINIMALISM REDESIGN === */
:root {
    --paper: #f7f5f0;
    --paper-warm: #eeeae1;
    --ink: #121212;
    --ink-soft: #3b3b37;
    --line: rgba(18, 18, 18, 0.22);
    --line-strong: rgba(18, 18, 18, 0.82);
    --white: #fffdf8;
    --font-hand: 'Caveat', cursive;
    --envelope-color: #f2efe8;
    --envelope-dark: #d9d2c4;
    --text-color: var(--ink);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 16px 16px, rgba(18, 18, 18, 0.045) 1px, transparent 1.5px) 0 0 / 32px 32px,
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(18, 18, 18, 0.055) calc(50% - 1px), rgba(18, 18, 18, 0.055) calc(50% + 1px), transparent calc(50% + 1px)),
        var(--paper);
    animation: none;
    letter-spacing: 0;
}

/* === FLOWER CORNER DECORATIONS === */
.flower-corner {
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

/* Timing entry: preloader ~2.5s selesai, bunga masuk ~2.6s, float mulai setelahnya */
.flower-corner--left {
    width: clamp(150px, 23vw, 300px);
    aspect-ratio: 1;
    height: auto;
    top: clamp(3rem, 3vw, 2rem);
    left: clamp(-95px, -6vw, -36px);
    background: url("assets/flower.png") center / contain no-repeat;
    animation:
        flowerEnterLeft 1.4s 2.5s cubic-bezier(0.34, 1.4, 0.64, 1) both,
        floatSpin1 12s 3.9s ease-in-out infinite;
}

.flower-corner--right {
    width: clamp(150px, 24vw, 310px);
    aspect-ratio: 1;
    height: auto;
    right: clamp(-110px, -7vw, -42px);
    bottom: clamp(3rem, 11vh, 8rem);
    background: url("assets/flower-burgundy.png") center / contain no-repeat;
    animation:
        flowerEnterRight 1.4s 2.7s cubic-bezier(0.34, 1.4, 0.64, 1) both,
        floatSpin2 14s 4.1s ease-in-out infinite alternate;
}

::-webkit-scrollbar-track {
    background: var(--paper);
}

::-webkit-scrollbar-thumb {
    background: var(--ink);
    border-radius: 0;
}

#floral-canvas {
    mix-blend-mode: multiply;
    opacity: 0.42;
}

.anime-leaf,
.anime-flower {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.45;
    opacity: 0.18;
}

.perspective-container {
    perspective: none;
}

.section-container {
    position: relative;
    align-items: stretch;
    min-height: auto;
    padding: clamp(2.4rem, 7vw, 5rem) 1.1rem;
}

#hero-sec {
    min-height: 100svh !important;
    align-items: center;
    overflow: hidden;
}

#hero-sec::before {
    /* content: "Hanin & Aldi"; */
    position: absolute;
    top: clamp(1.2rem, 5vw, 3rem);
    left: 50%;
    width: min(92vw, 980px);
    transform: translateX(-50%);
    color: transparent;
    -webkit-text-stroke: 1px rgba(18, 18, 18, 0.16);
    font-family: var(--font-display);
    font-size: clamp(4.8rem, 17vw, 13rem);
    font-weight: 700;
    line-height: 0.85;
    text-align: center;
    pointer-events: none;
}

#hero-sec::after {
    /* content: ""; */
    position: absolute;
    left: max(1rem, calc(50% - 420px));
    bottom: clamp(4rem, 12vh, 8rem);
    width: 190px;
    height: 56px;
    border-bottom: 2px dashed var(--ink);
    border-radius: 0 0 50% 50%;
    transform: rotate(-8deg);
    opacity: 0.36;
}

.glass-card {
    position: relative;
    width: min(100%, 980px);
    max-width: 980px;
    padding: clamp(1.6rem, 4vw, 3rem);
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform-style: flat;
}

.glass-card::before {
    /* content: ""; */
    position: absolute;
    inset: 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    pointer-events: none;
}

.glass-card::after {
    /* content: ""; */
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
    border-top: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
    border-radius: 0 14px 0 0;
    opacity: 0.22;
    pointer-events: none;
}

#prologue .glass-card {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(220px, 0.28fr);
    gap: clamp(1.2rem, 4vw, 3rem);
    align-items: center;
}

#prologue .glass-card::after {
    content: "Ar-Rum 21";
    top: auto;
    right: clamp(1rem, 4vw, 2.5rem);
    bottom: clamp(1rem, 4vw, 2.5rem);
    width: auto;
    height: auto;
    border: 0;
    color: rgba(18, 18, 18, 0.16);
    font-family: var(--font-hand);
    font-size: clamp(2.2rem, 9vw, 5rem);
    line-height: 1;
    transform: rotate(-8deg);
}

.section-title {
    position: relative;
    margin: 0 0 1.4rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0;
}

.section-title::before {
    content: "wedding note";
    display: block;
    margin-bottom: 0.65rem;
    color: var(--ink-soft);
    font-family: var(--font-hand);
    font-size: clamp(1.2rem, 4vw, 1.85rem);
    font-weight: 700;
    line-height: 1;
    transform: rotate(-2deg);
}

#couple .section-title::before {
    content: "two hearts";
}

#events .section-title::before {
    content: "the schedule";
}

#gallery .section-title::before {
    content: "little frames";
}

#rsvp .section-title::before {
    content: "reply card";
}

.arabic-translation {
    max-width: 690px;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.18rem, 3.8vw, 2.35rem);
    font-style: italic;
    line-height: 1.35;
}

.arabic-source {
    margin-top: 1.3rem;
    color: var(--ink);
    font-family: var(--font-hand);
    font-size: clamp(1.35rem, 5vw, 2.2rem);
    font-weight: 700;
}

.profile-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
    gap: clamp(4rem, 6vw, 6rem);
    align-items: start;
}

.profile-card .section-title {
    margin-top: 0.4rem;
}

.profiles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    /* border: 1px solid var(--line-strong); */
    /* background: var(--white); */
}

.profile-item {
    position: relative;
    min-height: 420px;
    padding: clamp(1rem, 3vw, 1.6rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.profile-item+.profile-item {
    border-left: 1px solid var(--line-strong);
}

.profile-item::before {
    content: "";
    position: absolute;
    inset: 0.75rem;
    border: 1px dashed rgba(18, 18, 18, 0.26);
    pointer-events: none;
}

.profile-img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 68%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #ded9ce;
    box-shadow: none;
    filter: grayscale(1) contrast(1.08);
    transform: none;
    animation: none;
}

.profile-img {
    border-radius: 0;
    background-color: var(--paper-warm);
}

.profile-name,
.profile-parents {
    position: relative;
    z-index: 1;
    /* background: var(--white); */
}

.profile-name {
    width: fit-content;
    margin: 0 0 0.65rem;
    padding: 0.2rem 0.35rem;
    color: var(--ink);
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1;
}

.profile-parents {
    max-width: 240px;
    padding: 0.4rem 0.5rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.events-card {
    display: grid;
    grid-template-columns: minmax(200px, 0.38fr) 1px minmax(0, 0.31fr) minmax(0, 0.31fr);
    gap: clamp(6rem, 3vw, 2rem);
    align-items: stretch;
}

.events-card .section-title {
    margin: 0;
}

.events-card .divider {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 1px;
    height: auto;
    margin: 0;
    margin-left: 5rem;
    background: repeating-linear-gradient(to bottom, var(--ink) 0 5px, transparent 5px 11px);
}

.event-details {
    position: relative;
    margin: 0;
    padding: 1rem 0 3rem;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-details::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.9rem;
    width: 72px;
    height: 20px;
    border-bottom: 1.5px solid var(--ink);
    border-radius: 0 0 50% 50%;
    transform: rotate(-6deg);
    opacity: 0.35;
}

.event-title {
    color: var(--ink);
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 0.96;
}

.event-date,
.event-time,
.event-venue {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.events-card .btn-outline {
    grid-column: 3 / 5;
    justify-self: start;
    align-self: end;
    margin-top: 0;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    margin-top: 1rem;
    border: 1px solid var(--line-strong);
    background: var(--white);
}

.cd-item {
    width: auto;
    min-width: 0;
    padding: clamp(1rem, 5vw, 2rem) 0.5rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.cd-item+.cd-item {
    border-left: 1px dashed var(--line-strong);
}

.cd-num {
    color: var(--ink);
    font-size: clamp(2.2rem, 9vw, 5rem);
    line-height: 0.9;
}

.cd-label {
    margin-top: 0.7rem;
    color: var(--ink-soft);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}

#gallery .glass-card {
    width: min(100%, 1100px);
}

.masonry-grid {
    grid-template-columns: 1.1fr 0.85fr 1fr;
    grid-auto-rows: 145px;
    gap: clamp(0.55rem, 2vw, 1rem);
    margin-top: 0.5rem;
}

.gallery-img {
    height: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    box-shadow: none;
    filter: grayscale(1);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-img:nth-child(1) {
    grid-row: span 2;
}

.gallery-img:nth-child(4) {
    grid-column: span 2;
}

.gallery-img:hover {
    filter: grayscale(0);
    transform: translateY(-4px) rotate(-1deg);
}

.rsvp-card {
    display: grid;
    /* grid-template-columns: minmax(0, 0.9fr) minmax(290px, 1.1fr); */
    gap: clamp(1.3rem, 4vw, 3rem);
}

.rsvp-card>.section-title {
    grid-column: 1 / -1;
    max-width: 680px;
}

.modern-form,
.guestbook-container,
.gift-panel {
    margin: 0;
}

.modern-form {
    gap: 0;
    border: 1px solid var(--line-strong);
    background: var(--white);
}

.input-light {
    min-height: 54px;
    padding: 1rem;
    color: var(--ink);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font-size: 0.95rem;
}

.input-light:focus {
    border-color: var(--ink);
    background: #fff;
    box-shadow: inset 4px 0 0 var(--ink);
}

.btn-primary,
.btn-outline,
.gift-trigger {
    border-radius: 0;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.btn-primary {
    max-width: none;
    margin: 0;
    background: var(--ink);
    color: var(--white);
}

.btn-primary:hover,
.gift-trigger:hover {
    transform: translateY(-2px);
    background: var(--ink-soft);
    box-shadow: none;
}

.btn-outline {
    color: var(--ink);
    border-color: var(--ink);
    background:
        linear-gradient(90deg, transparent 50%, var(--ink) 50%) 0 0 / 205% 100%;
}

.btn-outline:hover {
    background-position: 100% 0;
    color: var(--white);
}

.guestbook-container {
    padding-top: 0;
    border-top: 0;
}

.guestbook-header {
    margin-bottom: 0.8rem;
    color: var(--ink);
    font-family: var(--font-hand);
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    text-align: left;
    transform: rotate(-1deg);
}

.guest-msg-card {
    margin-bottom: 0.65rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--white);
}

.msg-author,
.msg-text,
.msg-time,
.gift-description,
.gift-name {
    color: var(--ink-soft);
}

.msg-badge {
    color: var(--white);
    background: var(--ink);
    border: 0;
    border-radius: 0;
}

.rsvp-card>.divider {
    display: none;
}

.gift-panel {
    grid-column: 1 / -1;
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px dashed var(--line-strong);
    border-radius: 0;
    background: rgba(255, 253, 248, 0.55);
    box-shadow: none;
    text-align: center;
}

.gift-panel .section-title {
    margin-top: 0;
    font-size: clamp(2rem, 6vw, 3.6rem);
    text-align: center;
}

.gift-trigger {
    background: var(--ink);
    color: var(--white);
}

.gift-box,
.gift-modal__dialog {
    border-radius: 0;
}

.gift-modal__backdrop {
    background: rgba(18, 18, 18, 0.7);
}

.gift-modal__dialog {
    background: var(--paper);
    border: 1px solid var(--ink);
}

.gift-modal__title,
.gift-bank,
.gift-number {
    color: var(--ink);
}

.gift-modal__intro {
    color: var(--ink-soft);
}

.gift-modal .gift-box {
    border: 1px solid var(--ink);
}

.gift-box--mandiri,
.gift-box--bri {
    min-height: 152px;
    color: var(--ink);
    background:
        repeating-linear-gradient(-12deg, rgba(18, 18, 18, 0.035) 0 8px, transparent 8px 16px),
        var(--white);
}

.gift-box--mandiri::before,
.gift-box--bri::before {
    opacity: 0.08;
    filter: grayscale(1) contrast(1.4);
}

.gift-box--mandiri .gift-bank,
.gift-box--mandiri .gift-number,
.gift-box--mandiri .gift-name,
.gift-box--bri .gift-bank,
.gift-box--bri .gift-number,
.gift-box--bri .gift-name {
    color: var(--ink);
}

.gift-box--mandiri .copy-btn,
.gift-box--bri .copy-btn {
    color: var(--ink);
    border-color: var(--ink);
}

.gift-box--mandiri .copy-btn:hover,
.gift-box--bri .copy-btn:hover {
    color: var(--white);
    background: var(--ink);
}



.bottom-nav {
    max-width: 430px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: rgba(255, 253, 248, 0.88);
    box-shadow: 8px 8px 0 rgba(18, 18, 18, 0.9);
    margin-left: -4px;
    /* Offset the 8px visual shadow shift to perfect optical center */
}

.nav-item,
.nav-item svg,
.nav-item span,
.nav-item.active,
.nav-item.active span {
    color: var(--ink);
    stroke: var(--ink);
}

.nav-item.active {
    background: var(--ink);
    color: var(--white);
    transform: none;
}

.nav-item.active svg {
    stroke: var(--white);
    transform: none;
}

.nav-item.active span {
    color: var(--white);
}

.wrapper::before,
.wrapper::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.wrapper::before {
    width: 116px;
    height: 58px;
    top: -55px;
    left: -40px;
    /* border: 1.5px solid var(--ink); */
    border-right: 0;
    border-radius: 999px 0 0 999px;
    transform: rotate(-24deg);
    /* opacity: 0.38; */
}

.wrapper::after {
    width: 130px;
    height: 20px;
    right: -45px;
    bottom: -28px;
    /* border-bottom: 2px dashed var(--ink); */
    transform: rotate(8deg);
    opacity: 0.34;
}

.envelope-wrapper {
    width: min(84vw, 360px);
    height: 240px;
    background-color: var(--envelope-dark);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0 25%, transparent 25% 50%, rgba(255, 255, 255, 0.18) 50% 75%, transparent 75%);
    background-size: 18px 18px;
    border: 1.5px solid var(--ink);
    box-shadow: 12px 12px 0 rgba(18, 18, 18, 0.92);
}

.envelope-wrapper::before {
    border-top-width: 120px;
    border-right-width: min(42vw, 180px);
    border-bottom-width: 120px;
    border-left-width: min(42vw, 180px);
    border-right-color: var(--envelope-color);
    border-bottom-color: var(--envelope-color);
    border-left-color: var(--envelope-color);
    filter: none;
}

.flap {
    border-top-width: 132px;
    border-left-width: min(42vw, 180px);
    border-right-width: min(42vw, 180px);
    border-top-color: var(--envelope-dark);
}

.letter {
    left: 20px;
    width: calc(100% - 40px);
    height: 210px;
    border: 1px solid var(--ink);
    box-shadow: none;
}

.letter h1 {
    color: var(--ink);
    font-size: 1.25rem;
}

.letter-couple {
    margin: 0.15rem 0 0;
    color: var(--ink);
    font-family: var(--font-hand);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    line-height: 0.9;
}

.letter-date {
    margin: 0.75rem 0 0;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.08em;
}

.letter h1::after {
    content: "";
    display: block;
    width: 86px;
    /* height: 18px; */
    margin: 0.4rem auto 0;
    border-bottom: 1px dashed var(--ink);
    /* border-radius: 50%; */
}

.letter [class*="text-[#c5a059]"] {
    color: var(--ink) !important;
}

.recipient-label span,
.instruction {
    color: var(--ink-soft);
}

.recipient-name {
    color: var(--ink);
    border-bottom-color: var(--ink);
    font-family: var(--font-hand);
    font-size: 1.35rem;
    line-height: 1;
}

.seal {
    top: 83px;
    left: calc(50% - 19px);
    width: 38px;
    height: 38px;
    color: var(--white);
    background: rgba(81, 5, 29);
    border: 1px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(18, 18, 18, 0.22);
    font-size: 15px;
}

.instruction {
    bottom: -72px;
    font-family: var(--font-hand);
    font-size: 1.35rem;
    letter-spacing: 0;
}

footer {
    padding: 2rem 1rem 7rem;
    color: var(--ink);
    font-family: var(--font-hand);
    font-size: 1.4rem;
    text-align: center;
}

.lightbox__image {
    border-radius: 0;
}

@media (min-width: 900px) {
    .section-container:nth-of-type(even) .glass-card {
        margin-left: 6vw;
    }

    .section-container:nth-of-type(odd) .glass-card {
        margin-right: 6vw;
    }
}

@media (max-width: 760px) {
    body {
        background:
            radial-gradient(circle at 12px 12px, rgba(18, 18, 18, 0.05) 1px, transparent 1.5px) 0 0 / 24px 24px,
            var(--paper);
    }

    .section-container {
        padding: 2.6rem 1rem;
    }

    #hero-sec {
        min-height: 92svh !important;
    }

    .glass-card,
    #prologue .glass-card,
    .profile-card,
    .events-card,
    .rsvp-card {
        display: block;
    }

    .glass-card {
        padding: 1.4rem 0;
        margin-top: 5rem;
    }

    .glass-card::after {
        display: none;
    }

    .section-title {
        margin-bottom: 1.1rem;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .profile-item {
        min-height: 380px;
    }

    .profile-item+.profile-item {
        border-left: 0;
        border-top: 1px solid var(--line-strong);
    }

    .events-card .divider {
        width: 100%;
        height: 1px;
        margin: 1.4rem 0;
        background: repeating-linear-gradient(to right, var(--ink) 0 5px, transparent 5px 11px);
    }

    .event-details {
        padding: 0 0 2rem;
    }

    .events-card .btn-outline {
        margin-top: 0.5rem;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-item:nth-child(3) {
        border-left: 0;
        border-top: 1px dashed var(--line-strong);
    }

    .cd-item:nth-child(4) {
        border-top: 1px dashed var(--line-strong);
    }

    .masonry-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 130px;
    }

    .gallery-img:nth-child(4) {
        grid-column: auto;
    }

    .modern-form,
    .guestbook-container {
        margin-bottom: 1.4rem;
    }

    .bottom-nav {
        bottom: 14px;
        width: calc(100% - 28px);
    }
}

@media (max-width: 420px) {
    .envelope-wrapper {
        height: 206px;
    }

    .envelope-wrapper::before {
        border-top-width: 103px;
        border-bottom-width: 103px;
    }

    .flap {
        border-top-width: 114px;
    }

    .letter {
        height: 178px;
        padding: 16px;
    }

    .wrapper.open .letter {
        transform: translateY(-106px);
    }

    .profile-item {
        min-height: 340px;
    }

    .nav-item span {
        font-size: 0.55rem;
    }
}

/* === OVAL COUPLE PORTRAITS === */
.profile-item {
    align-items: center;
    justify-content: flex-start;
    min-height: 470px;
    padding-top: clamp(1.4rem, 4vw, 2rem);
    text-align: center;
}

.profile-img-wrap {
    position: relative;
    inset: auto;
    width: min(72%, 230px);
    height: clamp(270px, 38vw, 330px);
    margin: 0 auto 1.3rem;
    padding: 0.55rem;
    border-radius: 50% / 42%;
    background: var(--white);
    filter: none;
    overflow: visible;
}

.profile-img-wrap::before,
.profile-img-wrap::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1.5px solid var(--ink);
    border-radius: 50% / 42%;
}

.profile-img-wrap::before {
    inset: 0;
    transform: rotate(-1.2deg);
}

.profile-img-wrap::after {
    inset: 0.42rem;
    border-style: dashed;
    border-color: rgba(18, 18, 18, 0.38);
    transform: rotate(1.1deg);
}

.profile-img {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(18, 18, 18, 0.72);
    border-radius: 50% / 42%;
    background-position: center top;
}

.profile-name,
.profile-parents {
    width: fit-content;
    max-width: min(100%, 290px);
    margin-left: auto;
    margin-right: auto;
}

.profile-name::after {
    left: 50%;
    right: auto;
    bottom: -0.72rem;
    transform: translateX(-50%) rotate(-4deg);
}

@media (max-width: 760px) {
    .profile-item {
        min-height: 440px;
    }

    .profile-img-wrap {
        width: min(76%, 220px);
        height: 300px;
    }
}

@media (max-width: 420px) {
    .profile-item {
        min-height: 405px;
    }

    .profile-img-wrap {
        width: min(78%, 190px);
        height: 260px;
    }
}

/* === STACKED POLAROID GALLERY === */
#gallery .glass-card {
    overflow: visible;
}

/* -- Collage container -- */
.polaroid-collage {
    position: relative;
    display: block;
    overflow: visible;
    min-height: clamp(500px, 55vw, 660px);
    margin: 1.4rem auto 0;
    width: min(100%, 900px);
}

/* -- Setiap item = wrapper polaroid + optional callout -- */
.gallery-item {
    position: absolute;
    overflow: visible;
    width: clamp(185px, 27vw, 300px);
    height: clamp(240px, 35vw, 380px);
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), z-index 0s;
    cursor: pointer;
}

.gallery-item:hover {
    z-index: 10 !important;
}

/* -- Bingkai polaroid -- */
.polaroid {
    width: 100%;
    height: 100%;
    padding: 0.6rem 0.6rem 2.8rem;
    background: var(--white);
    border: 1.5px solid rgba(18, 18, 18, 0.72);
    border-radius: 2px;
    box-shadow:
        0 12px 30px rgba(18, 18, 18, 0.18),
        5px 5px 0 rgba(18, 18, 18, 0.08);
    overflow: hidden;
    transition: box-shadow 0.28s ease;
}

.gallery-item:hover .polaroid {
    box-shadow:
        0 22px 48px rgba(18, 18, 18, 0.26),
        7px 8px 0 rgba(18, 18, 18, 0.12);
}

/* kalau mau foto gray ini enablekan */
.polaroid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1px;
    filter: grayscale(1);
    transition: filter 0.4s ease;
}

.gallery-item:hover .polaroid img {
    filter: grayscale(0);
}

/* -- Photo callouts di dalam gallery-item -- */
.gallery-item .photo-callout {
    position: absolute;
    z-index: 4;
}

.gallery-item .photo-callout--pin {
    top: -3px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    white-space: nowrap;
}

.gallery-item .photo-callout3--pin {
    top: 3px;
    left: 20%;
    transform: translateX(-50%) rotate(-2deg);
    white-space: nowrap;
}

.gallery-item .photo-callout4--pin {
    top: 3px;
    left: 75%;
    transform: translateX(-50%) rotate(-2deg);
    white-space: nowrap;
}

.gallery-item .photo-callout5--pin {
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    white-space: nowrap;
}

.gallery-item .photo-callout--tape {
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    white-space: nowrap;
}

.gallery-item .photo-callout--corner {
    bottom: -10px;
    right: -10px;
    transform: rotate(3deg);
}

/* -- Posisi & rotasi tiap foto (desktop) -- */
.gallery-item:nth-child(1) {
    top: 1rem;
    left: 8%;
    z-index: 2;
    transform: rotate(-7deg);
}

.gallery-item:nth-child(1):hover {
    transform: translateY(-10px) rotate(-4deg);
}

.gallery-item:nth-child(2) {
    top: 2rem;
    right: 7%;
    z-index: 3;
    transform: rotate(5deg);
}

.gallery-item:nth-child(2):hover {
    transform: translateY(-10px) rotate(2deg);
}

.gallery-item:nth-child(3) {
    top: clamp(200px, 24vw, 310px);
    left: 20%;
    z-index: 4;
    transform: rotate(-4deg);
}

.gallery-item:nth-child(3):hover {
    transform: translateY(-10px) rotate(-1deg);
}

.gallery-item:nth-child(4) {
    top: clamp(210px, 26vw, 330px);
    right: 18%;
    z-index: 5;
    transform: rotate(3deg);
}

.gallery-item:nth-child(4):hover {
    transform: translateY(-10px) rotate(1deg);
}

.gallery-item:nth-child(5) {
    top: clamp(330px, 38vw, 470px);
    left: 33%;
    z-index: 6;
    transform: rotate(-2deg);
}

.gallery-item:nth-child(5):hover {
    transform: translateY(-10px) rotate(0deg);
}

/* -- Mobile: zig-zag kiri-kanan -- */
@media (max-width: 760px) {
    .polaroid-collage {
        min-height: 660px;
        width: min(100%, 380px);
        margin-top: 2rem;
    }

    .gallery-item {
        width: 185px;
        height: 245px;
    }

    .gallery-item:nth-child(1) {
        top: 0.5rem;
        left: 0.3rem;
        right: auto;
        transform: rotate(-5deg);
    }

    .gallery-item:nth-child(2) {
        top: 7rem;
        left: auto;
        right: 0.3rem;
        transform: rotate(4deg);
    }

    .gallery-item:nth-child(3) {
        top: 14rem;
        left: 1rem;
        right: auto;
        transform: rotate(-3deg);
    }

    .gallery-item:nth-child(4) {
        top: 21rem;
        left: auto;
        right: 1rem;
        transform: rotate(2deg);
    }

    .gallery-item:nth-child(5) {
        top: 28rem;
        left: 0.8rem;
        right: auto;
        transform: rotate(-2deg);
    }

    .gallery-item:nth-child(n):hover {
        transform: translateY(-8px) rotate(0deg);
    }
}

/* -- Tiny phones -- */
@media (max-width: 420px) {
    .polaroid-collage {
        min-height: 590px;
    }

    .gallery-item {
        width: 165px;
        height: 218px;
    }

    .gallery-item:nth-child(2) {
        top: 6.5rem;
    }

    .gallery-item:nth-child(3) {
        top: 13rem;
    }

    .gallery-item:nth-child(4) {
        top: 19.5rem;
    }

    .gallery-item:nth-child(5) {
        top: 26rem;
    }
}

/* === BURGUNDY LOVE MOTION === */
:root {
    --burgundy: #7b1e2b;
    --burgundy-soft: rgba(123, 30, 43, 0.34);
}

#floral-canvas {
    opacity: 1;
    mix-blend-mode: multiply;
}

.anime-heart {
    position: absolute;
    width: clamp(18px, 4vw, 42px);
    height: clamp(18px, 4vw, 42px);
    fill: var(--burgundy);
    stroke: rgba(123, 30, 43, 0.76);
    stroke-width: 0.7;
    opacity: 0;
    filter: drop-shadow(0 8px 14px rgba(123, 30, 43, 0.12));
}

.anime-heart:nth-child(3n) {
    fill: transparent;
    stroke: var(--burgundy);
    stroke-width: 1.4;
}

.anime-heart:nth-child(4n) {
    fill: var(--burgundy-soft);
    stroke: var(--burgundy);
}

/* === ADMIN GUEST MANAGEMENT === */
.admin-card {
    width: min(100%, 1180px);
    text-align: left;
}

.admin-heading {
    margin-bottom: 1.5rem;
}

.admin-intro,
.admin-help,
.admin-summary,
.admin-guest-item__index,
.admin-guest-item__slug {
    color: var(--ink-soft);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
    gap: 1.25rem;
}

.admin-panel {
    padding: 1.2rem;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.72);
}

.admin-panel__title {
    margin-bottom: 1rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.admin-label {
    display: block;
    margin: 0.9rem 0 0.45rem;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-textarea {
    min-height: 180px;
    resize: vertical;
}

.admin-file {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.admin-help {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.admin-actions,
.admin-result-actions,
.admin-item-actions,
.admin-result-head {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-actions,
.admin-result-actions {
    margin-top: 1rem;
}

.admin-result-head {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line-strong);
    background: var(--white);
    color: var(--ink);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-summary {
    padding: 0.95rem 1rem;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 253, 248, 0.65);
    font-size: 0.92rem;
    line-height: 1.6;
}

.admin-guest-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-guest-item {
    padding: 1rem;
    border: 1px solid var(--line-strong);
    background: var(--white);
}

.admin-guest-item__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.admin-guest-item__index {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-guest-item__name {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.15;
}

.admin-guest-item__slug {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.2rem 0.7rem;
    border: 1px dashed var(--line-strong);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-output {
    cursor: text;
}

.admin-output--message {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.admin-page {
    min-height: 100vh;
}

.admin-page-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.admin-page-section {
    min-height: 100vh;
    align-items: flex-start;
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.admin-page-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

@media (max-width: 860px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* === DECORATIVE DESIGN ELEMENTS === */

/* ── 1. Dotted Line Arrow ────────────────────────────── */
.dotted-arrow {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 40px;
    pointer-events: none;
    flex-shrink: 0;
}

/* Dotted line shaft */
.dotted-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: calc(100% - 14px);
    /* leave room for arrowhead */
    height: 2px;
    background: repeating-linear-gradient(to right,
            var(--ink) 0,
            var(--ink) 4px,
            transparent 4px,
            transparent 9px);
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Arrowhead */
.dotted-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid var(--ink);
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Curved variant — arc + separate arrowhead via data element */
.dotted-arrow--curved {
    width: 150px;
    height: 56px;
    overflow: visible;
}

.dotted-arrow--curved::before {
    top: auto;
    bottom: 0;
    left: 6%;
    width: 82%;
    height: 0;
    background: none;
    border: none;
    border-bottom: 2px dashed rgba(18, 18, 18, 0.48);
    border-radius: 0 0 50% 50%;
    transform: none;
    opacity: 1;
}

.dotted-arrow--curved::after {
    bottom: -2px;
    top: auto;
    right: 6%;
    border-top: 7px solid transparent;
    border-bottom: none;
    border-left: 7px solid transparent;
    border-right: none;
    border-top-color: transparent;
    /* small downward triangle as arrowhead */
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid rgba(18, 18, 18, 0.5);
    transform: translateY(50%);
    opacity: 1;
}

/* Reverse direction */
.dotted-arrow--reverse::before {
    background: repeating-linear-gradient(to left,
            var(--ink) 0,
            var(--ink) 4px,
            transparent 4px,
            transparent 9px);
    left: 14px;
    right: 0;
    width: auto;
}

.dotted-arrow--reverse::after {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 11px solid var(--ink);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

/* ── 2. Photo Callout Minimal ──────────────────────── */
.photo-callout {
    /* For absolute-positioned callouts inside gallery wrappers */
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background: var(--white);
    border: 1.5px solid rgba(18, 18, 18, 0.72);
    border-radius: 3px;
    font-family: var(--font-hand);
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    color: var(--ink);
    line-height: 1.2;
    box-shadow: 2px 2px 0 rgba(18, 18, 18, 0.18),
        0 4px 10px rgba(18, 18, 18, 0.08);
    /* default slight tilt */
    transform: rotate(-2deg);
    /* CRITICAL: must not be clipped by parents */
    pointer-events: none;
    white-space: nowrap;
}

/* Pin head dot */
.photo-callout::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 13px;
    background: var(--accent-gold);
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    box-shadow: 1px 1px 0 rgba(18, 18, 18, 0.2);
}

/* Pin variant */
.photo-callout--pin::before {
    width: 11px;
    height: 11px;
    background: var(--burgundy);
    border-color: rgba(18, 18, 18, 0.6);
    box-shadow: 0 2px 5px rgba(123, 30, 43, 0.35);
}

.photo-callout3--pin::before {
    width: 11px;
    height: 11px;
    background: var(--burgundy);
    border-color: rgba(18, 18, 18, 0.6);
    box-shadow: 0 2px 5px rgba(123, 30, 43, 0.35);
}

.photo-callout4--pin::before {
    width: 11px;
    height: 11px;
    background: var(--burgundy);
    border-color: rgba(18, 18, 18, 0.6);
    box-shadow: 0 2px 5px rgba(123, 30, 43, 0.35);
}

.photo-callout5--pin::before {
    width: 11px;
    height: 11px;
    background: var(--burgundy);
    border-color: rgba(18, 18, 18, 0.6);
    box-shadow: 0 2px 5px rgba(123, 30, 43, 0.35);
}

/* Tape variant — washi tape strip instead of pin */
.photo-callout--tape::before {
    content: "";
    top: -10px;
    width: 44px;
    height: 14px;
    background: rgba(203, 170, 105, 0.42);
    border-radius: 3px;
    border: none;
    transform: translateX(-50%) rotate(-2deg);
    box-shadow: none;
}

/* Corner variant — sticks to bottom-right corner of parent */
.photo-callout--corner {
    position: absolute;
    bottom: -10px;
    right: -10px;
    padding: 0.35rem 0.7rem;
    font-size: clamp(0.78rem, 2.2vw, 0.95rem);
    transform: rotate(3deg);
    box-shadow: -2px -2px 0 rgba(18, 18, 18, 0.1),
        2px 2px 0 rgba(18, 18, 18, 0.12);
}

.photo-callout--corner::before {
    display: none;
}

/* ── 3. Technical Drawing Overlay / Blueprint ───────── */
.blueprint-overlay {
    position: relative;
    /* Keep overflow visible so callouts outside the image are not clipped */
    overflow: visible;
}

/* Fine grid */
.blueprint-overlay>.blueprint-grid-bg {
    display: none;
    /* handled by pseudo elements below */
}

/* Use a dedicated inner wrapper for the grid so it doesn't interfere with
   other ::before / ::after on .couple-image-wrap */
.blueprint-overlay[data-bp]::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(18, 18, 18, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 18, 18, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.blueprint-overlay[data-bp]::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(18, 18, 18, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 18, 18, 0.07) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

/* Dimension annotation bar */
.blueprint-dimension {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    color: var(--ink-soft);
    opacity: 0.55;
    pointer-events: none;
    z-index: 4;
    letter-spacing: 0.04em;
}

.blueprint-dimension::before,
.blueprint-dimension::after {
    content: "";
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(to right,
            var(--ink) 0,
            var(--ink) 3px,
            transparent 3px,
            transparent 7px);
    opacity: 0.5;
}

.blueprint-dimension--top {
    top: 6px;
    left: 8%;
    right: 8%;
}

.blueprint-dimension--bottom {
    bottom: 6px;
    left: 8%;
    right: 8%;
}

.blueprint-dimension--side {
    top: 12%;
    bottom: 12%;
    left: 6px;
    flex-direction: column;
}

.blueprint-dimension--side::before,
.blueprint-dimension--side::after {
    background: repeating-linear-gradient(to bottom,
            var(--ink) 0,
            var(--ink) 3px,
            transparent 3px,
            transparent 7px);
    width: 1px;
    height: auto;
    flex: 1;
}

/* Corner crosshair markers */
.blueprint-crosshair {
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 4;
    opacity: 0.4;
}

.blueprint-crosshair::before,
.blueprint-crosshair::after {
    content: "";
    position: absolute;
    background: var(--ink);
}

.blueprint-crosshair::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
}

.blueprint-crosshair::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
}

.blueprint-crosshair--tl {
    top: 10px;
    left: 10px;
}

.blueprint-crosshair--tr {
    top: 10px;
    right: 10px;
}

.blueprint-crosshair--bl {
    bottom: 10px;
    left: 10px;
}

.blueprint-crosshair--br {
    bottom: 10px;
    right: 10px;
}

/* ── 4. Outline Sticker Effect ──────────────────────── */
.outline-sticker {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 8px;
    /* Double-ring outline: white gap + ink ring */
    box-shadow:
        0 0 0 3px var(--white),
        0 0 0 5px var(--ink),
        4px 4px 0 rgba(18, 18, 18, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.outline-sticker:hover {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow:
        0 0 0 3px var(--white),
        0 0 0 5px var(--ink),
        6px 6px 0 rgba(18, 18, 18, 0.2);
}

/* Pill / rounded shape */
.outline-sticker--rounded {
    border-radius: 999px;
    box-shadow:
        0 0 0 3px var(--white),
        0 0 0 5px var(--ink),
        3px 3px 0 rgba(18, 18, 18, 0.12);
}

/* Small circular badge attached to corner of another element */
.outline-sticker--badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    padding: 0;
    background: var(--burgundy);
    color: var(--white);
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow:
        0 0 0 2px var(--white),
        0 0 0 3px var(--ink),
        2px 2px 0 rgba(18, 18, 18, 0.18);
}

/* Image / Polaroid wrapper variant */
.outline-sticker--image {
    display: block;
    padding: 0.65rem 0.65rem 2.8rem;
    /* extra bottom for polaroid label strip */
    border-radius: 4px;
    /* Override the outline-sticker ring for images — keep it lighter */
    box-shadow:
        0 0 0 2px var(--white),
        0 0 0 4px rgba(18, 18, 18, 0.6),
        4px 6px 0 rgba(18, 18, 18, 0.1);
    /* IMPORTANT: allow child photo-callouts to overflow */
    overflow: visible;
}

.outline-sticker--image:hover {
    box-shadow:
        0 0 0 2px var(--white),
        0 0 0 4px rgba(18, 18, 18, 0.75),
        6px 8px 0 rgba(18, 18, 18, 0.14);
}

.outline-sticker--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* ── Responsive tweaks ──────────────────────────────── */
@media (max-width: 760px) {
    .dotted-arrow {
        width: 88px;
        height: 28px;
    }

    .dotted-arrow--curved {
        width: 108px;
        height: 44px;
    }

    .photo-callout {
        padding: 0.4rem 0.75rem;
        font-size: clamp(0.78rem, 2.6vw, 1rem);
    }

    .outline-sticker {
        padding: 0.4rem 1rem;
        box-shadow:
            0 0 0 2px var(--white),
            0 0 0 3px var(--ink),
            3px 3px 0 rgba(18, 18, 18, 0.1);
    }
}