/* Hujan (Tema Fase 4, 3 Dec 2026): rain on the window. Base layout from cine-seri.css; this file gives the palette
 * (grey green, glass, white), the type (Cormorant Garamond for display, Mulish for reading), a cool damp grade with
 * fine rain falling over the photos, and the rain's pieces: the rain-streaked cover, the names reflected in a puddle,
 * the handwritten note, umbrella arches, drops along a wire, "rain or shine" cards, ripples round the countdown,
 * puddle-ring colours, a window of panes, paper boats for the wishes and the light after the rain. */
@font-face { font-family: "Cormorant Garamond"; src: url("/frontend/assets/fonts/cormorant-garamond-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/frontend/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/frontend/assets/fonts/mulish-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
    --c-night: #2b3532; --c-ink: #f4f6f5; --c-muted: rgba(228, 236, 233, .84); --c-accent: #cfd9d5; /* 9:1 on grey green */ --c-accent-ink: #2b3532;
    --c-line: rgba(207, 217, 213, .42); --c-glass: rgba(34, 44, 41, .62); --c-field: rgba(244, 246, 245, .08);
    --c-veil: rgba(32, 41, 38, .55); --c-shade-top: rgba(32, 41, 38, .82); --c-shade-foot: rgba(32, 41, 38, .92); --c-photo-foot: rgba(32, 41, 38, .95);
    --f-display: "Cormorant Garamond", Garamond, Georgia, serif; --f-script: "Cormorant Garamond", Garamond, Georgia, serif; --f-body: "Mulish", system-ui, sans-serif;
    --ct-shine: #ffffff;
    --streak: rgba(230, 240, 236, .2); --bead: rgba(240, 248, 245, .55); --wet: rgba(207, 217, 213, .14);
}
:root[data-scheme="light"] {
    --c-night: #e8eeeb; --c-ink: #1f2826; --c-muted: #445250; --c-accent: #3c5650; /* 7.4:1 on pale glass */ --c-accent-ink: #f4f6f5;
    --c-line: rgba(60, 86, 80, .36); --c-glass: rgba(240, 245, 243, .86); --c-field: rgba(255, 255, 255, .72);
    --c-veil: rgba(232, 238, 235, .76); --c-shade-top: rgba(232, 238, 235, .9); --c-shade-foot: rgba(232, 238, 235, .94); --c-photo-foot: rgba(232, 238, 235, .95);
    --streak: rgba(60, 86, 80, .14); --bead: rgba(255, 255, 255, .7); --wet: rgba(60, 86, 80, .1); --ct-shine: #2b3532;
}
.cine-backdrop { background: radial-gradient(120% 80% at 50% 18%, #3d4a46, #2b3532 72%); }
.hj-amp { color: var(--c-accent); font-style: italic; }
.cine-title { font-weight: 500; }

/* A cool, damp picture and fine rain falling across it, slanted a little by the wind. */
.cine-slide, .cine-backdrop-video, .cine-section-photo img { filter: saturate(.7) brightness(.9) contrast(1.02) hue-rotate(8deg); }
.cs-sign, .hj-rain { overflow: hidden; background-image: repeating-linear-gradient(100deg, transparent 0 22px, var(--streak) 22px 23px, transparent 23px 61px),
    repeating-linear-gradient(97deg, transparent 0 37px, var(--streak) 37px 38px, transparent 38px 89px); background-size: 120px 180px, 160px 260px; }
@media (prefers-reduced-motion: no-preference) {
    .cs-sign, .hj-rain { animation: hj-fall 1.1s linear infinite; }
}
@keyframes hj-fall { to { background-position: -30px 180px, -40px 260px; } }

/* ---- The window in the rain (cover) --------------------------------------------------------- */
.hj-opening { justify-content: space-between; background: #2b3532; color: #f4f6f5; }
.hj-opening .cine-opening-photo { filter: saturate(.65) brightness(.82) blur(1.5px); transform: scale(1.04); }
.hj-opening .cine-opening-shade { background: linear-gradient(180deg, rgba(32, 41, 38, .72), rgba(32, 41, 38, .1) 32%, rgba(32, 41, 38, .15) 55%, rgba(32, 41, 38, .9)); }
.hj-opening .hj-rain { position: fixed; inset: 0; pointer-events: none; --streak: rgba(230, 240, 236, .28); transition: opacity .8s ease; }
/* Beads of water running down the glass, each leaving a short trail. */
.hj-beads { position: fixed; inset: 0; pointer-events: none; }
.hj-beads i { position: absolute; top: -2rem; width: .55rem; height: .7rem; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), var(--bead) 40%, rgba(200, 215, 210, .15) 75%); box-shadow: 0 .1rem .2rem rgba(0, 0, 0, .25); }
.hj-beads i::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 3.4rem; margin-left: -1px; background: linear-gradient(transparent, rgba(240, 248, 245, .35)); }
.hj-beads i:nth-child(1) { left: 9%; --d: 7s; --w: 0s; }
.hj-beads i:nth-child(2) { left: 23%; --d: 9s; --w: 2.5s; transform: scale(.8); }
.hj-beads i:nth-child(3) { left: 41%; --d: 6s; --w: 1.2s; }
.hj-beads i:nth-child(4) { left: 58%; --d: 10s; --w: 4s; transform: scale(1.2); }
.hj-beads i:nth-child(5) { left: 71%; --d: 8s; --w: .6s; }
.hj-beads i:nth-child(6) { left: 84%; --d: 7.5s; --w: 3.2s; transform: scale(.7); }
.hj-beads i:nth-child(7) { left: 94%; --d: 9.5s; --w: 5s; }
@media (prefers-reduced-motion: no-preference) {
    .hj-beads i { animation: hj-run var(--d) cubic-bezier(.6, .05, .8, .6) var(--w) infinite; }
}
@media (prefers-reduced-motion: reduce) { .hj-beads i { top: calc(20% + var(--d) * 6%); } }
@keyframes hj-run { 0% { translate: 0 0; } 30% { translate: .3rem 28vh; } 34% { translate: .3rem 30vh; } 100% { translate: -.2rem 112vh; } }
.hj-cover-top, .hj-cover-foot { position: relative; z-index: 2; }
.hj-cover-top > *, .hj-cover-foot > * { animation: cine-in 1.3s var(--ease-film) both; }
.hj-cover-top > :nth-child(2) { animation-delay: .3s; }
.hj-cover-top > :nth-child(3) { animation-delay: .55s; }
.hj-cover-foot > * { animation-delay: .9s; }
.hj-opening .cine-opening-kicker { color: #e4ece9; }
.hj-cover-names { margin: .8rem 0 0; font: italic 400 clamp(3rem, 14vw, 4.4rem)/1.02 var(--f-display); text-shadow: 0 2px 16px rgba(20, 28, 26, .6); text-wrap: balance; }
.hj-cover-names .hj-amp { display: block; font-size: .6em; color: #cfd9d5; }
.hj-cover-date { margin: .9rem 0 0; color: #e4ece9; font: 600 .78rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(20, 28, 26, .7); }
.hj-opening .cine-guest-label, .hj-opening .cine-guest-note { color: rgba(244, 246, 245, .88); }
.hj-opening .cine-opening-cta { background: #f4f6f5; color: #2b3532; }
.hj-opening .cine-opening-cta:focus-visible { outline-color: #f4f6f5; }
/* Open: the rain stops, the beads slide off, the glass clears. */
.hj-opening.is-closing .hj-rain { opacity: 0; }
.hj-opening.is-closing .hj-beads i { animation: hj-off .7s ease-in forwards; }
@keyframes hj-off { to { translate: 0 110vh; opacity: 0; } }
.hj-opening.is-closing .cine-opening-photo { filter: saturate(.8) brightness(.9); opacity: 0; transition: filter .6s ease, opacity 1.1s ease .4s; }
.hj-opening.is-closing :is(.hj-cover-top, .hj-cover-foot) > * { animation: cine-out .7s ease-in both; }
.hj-opening.is-closing .cine-opening-shade { opacity: 0; }
@media (max-height: 40rem) { .hj-cover-names { font-size: clamp(2.2rem, 10svh, 3rem); } }

/* ---- Home: names and their reflection in a puddle -------------------------------------------- */
.hj-names { margin: 0; font: italic 400 clamp(3rem, 14vw, 4.6rem)/1.05 var(--f-display); text-wrap: balance; }
.hj-reflection { margin: .1rem 0 0 !important; font: italic 400 clamp(3rem, 14vw, 4.6rem)/1.05 var(--f-display); text-wrap: balance; scale: 1 -.7; transform-origin: top;
    opacity: .3; filter: blur(1.2px); -webkit-mask: linear-gradient(#000, transparent 80%); mask: linear-gradient(#000, transparent 80%); }
@media (prefers-reduced-motion: no-preference) { .hj-reflection { animation: hj-ripple 5s ease-in-out infinite; } }
@keyframes hj-ripple { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(4deg); } }
.hj-date { margin-top: .4rem !important; color: var(--c-accent); font: 600 .8rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }

/* ---- Verse: a handwritten note ------------------------------------------------------------- */
.hj-note { max-width: 25rem; margin: 0 auto; padding: 2rem 1.5rem 1.8rem; border-radius: .2rem; background: #f4f6f2; color: #23302c; text-shadow: none; transform: rotate(-1.2deg);
    box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .35), inset 0 0 2.4rem rgba(120, 150, 140, .25); }
.hj-note .cine-arabic { color: #3c5650; }
.hj-small-title { margin: 0 0 1rem; color: #3c5650; font: 600 .75rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.hj-verse { margin: 0; }
.hj-verse + .hj-verse { margin-top: 1.3rem; }
.hj-verse blockquote { margin: 0; font: italic 500 clamp(1.3rem, 5.4vw, 1.6rem)/1.5 var(--f-display); text-wrap: pretty; }
.hj-verse figcaption { margin-top: .8rem; color: #445250; font-size: .85rem; letter-spacing: .08em; }
.hj-note .cine-lead { margin-top: 1rem; color: #445250; }

/* ---- Two umbrellas ------------------------------------------------------------------------- */
.hj-umbrellas { justify-content: center; }
.hj-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; width: 100%; max-width: 30rem; margin: 0 auto; }
.hj-person { position: relative; text-align: center; }
/* The canopy: a scalloped dome with a finial, over the portrait. */
.hj-canopy { position: relative; width: 96%; height: 2.4rem; margin: 0 auto -.2rem; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--c-accent);
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent .55rem, #000 .58rem) 0 0 / 25% 100% repeat-x; mask: radial-gradient(circle at 50% 100%, transparent .55rem, #000 .58rem) 0 0 / 25% 100% repeat-x; }
.hj-canopy::before { content: ""; position: absolute; left: 50%; top: -.6rem; width: 2px; height: .7rem; background: var(--c-accent); }
.hj-person-photo { display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 50% 50% .6rem .6rem / 28% 28% .6rem .6rem; background: #3d4a46; color: var(--c-accent); font: italic 3rem/1 var(--f-display); }
.hj-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.hj-person .cine-kicker { margin-top: .9rem; }
.hj-person-name { margin: .2rem 0 0; font: italic 500 clamp(1.25rem, 5.4vw, 1.55rem)/1.15 var(--f-display); text-wrap: balance; }
.hj-person-parent { margin-top: .4rem !important; color: var(--c-muted); font-size: .82rem; line-height: 1.55; }
.hj-person .cine-socials { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
    .hj-canopy { transition: transform 1.2s cubic-bezier(.3, 1.4, .5, 1) .3s; transform-origin: 50% 100%; }
    .has-reveal .hj-person:not(.is-revealed) .hj-canopy { transform: scaleX(.3) scaleY(.6); }
}
@media (max-width: 21rem) { .hj-pair { grid-template-columns: 1fr; } .hj-person-photo { width: 70%; margin-inline: auto; } }

/* ---- Story: drops along a wire ------------------------------------------------------------- */
.hj-wire ol { position: relative; padding-top: 1.6rem; gap: 1.2rem; }
.hj-wire ol::before { content: ""; position: absolute; left: 0; right: 0; top: .5rem; height: 1px; background: var(--c-accent); opacity: .7; }
.hj-drop { position: relative; width: min(66vw, 15rem); padding: 1rem 1rem 1.2rem; border: 1px solid var(--c-line); border-radius: 50% 50% 1rem 1rem / 2.2rem 2.2rem 1rem 1rem; background: var(--c-glass); text-shadow: none; scroll-snap-align: start; }
.hj-drop::before { content: ""; position: absolute; left: 50%; top: -1.15rem; width: .6rem; height: .8rem; margin-left: -.3rem; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: var(--bead); }
.hj-drop img { display: block; width: 100%; aspect-ratio: 1; margin-bottom: .8rem; border-radius: 50%; object-fit: cover; }
.hj-drop h3 { margin: .3rem 0 .5rem; font: italic 500 1.4rem/1.2 var(--f-display); }
.hj-drop p:not(.cine-chapter-date) { color: var(--c-muted); font-size: .9rem; line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) { .hj-drop::before { animation: hj-hang 3.6s ease-in-out infinite; } }
@keyframes hj-hang { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.25) translateY(.08rem); } }

/* ---- Events: rain or shine ----------------------------------------------------------------- */
.hj-events .cine-block { margin-inline: auto; text-align: center; }
.hj-card { width: 100%; max-width: 25rem; box-sizing: border-box; margin: 0 auto; padding: 1.5rem 1.3rem; border: 1px solid var(--c-line); border-radius: 1.2rem; background: var(--c-glass);
    text-align: center; text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hj-umbrella { display: block; width: 2rem; height: 2rem; margin: 0 auto .6rem; color: var(--c-accent); }
.hj-card h3 { margin: 0; font: italic 500 clamp(1.8rem, 8vw, 2.2rem)/1.1 var(--f-display); }
.hj-card-date { margin-top: .6rem !important; font-weight: 600; font-size: .95rem; }
.hj-card-time { margin-top: .15rem !important; color: var(--c-muted); font-size: .9rem; }
.hj-card address { margin-top: .8rem; color: var(--c-muted); font-style: normal; font-size: .88rem; line-height: 1.6; }
.hj-card address strong { display: block; color: var(--c-ink); font-weight: 600; }
.hj-card .cine-directions { margin-top: 1rem; }

/* ---- Countdown: each number in its ripple -------------------------------------------------- */
.hj-ripples div { position: relative; border: 0 !important; padding: 1.1rem 0 .9rem !important; }
.hj-ripples div::before { content: ""; position: absolute; left: 50%; top: 42%; width: 4.4rem; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, transparent 46%, var(--c-line) 48%, transparent 50%, transparent 62%, var(--wet) 64%, transparent 66%, transparent 80%, var(--wet) 82%, transparent 84%); }
@media (prefers-reduced-motion: no-preference) {
    .hj-ripples div::before { animation: hj-rings 4s ease-out infinite; }
    .hj-ripples div:nth-child(2)::before { animation-delay: 1s; }
    .hj-ripples div:nth-child(3)::before { animation-delay: 2s; }
    .hj-ripples div:nth-child(4)::before { animation-delay: 3s; }
}
@keyframes hj-rings { 0% { scale: .7; opacity: 1; } 100% { scale: 1.25; opacity: .2; } }

/* ---- Dress: rings spreading on a puddle ---------------------------------------------------- */
.hj-puddles { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 0 0 1.4rem; }
.hj-puddle { width: 4rem; height: 2.4rem; border-radius: 50%;
    background: radial-gradient(ellipse, var(--swatch) 0 38%, transparent 40%, transparent 52%, color-mix(in srgb, var(--swatch) 60%, transparent) 54%, transparent 57%, transparent 72%, color-mix(in srgb, var(--swatch) 35%, transparent) 74%, transparent 77%); }

/* ---- Gallery: a window of panes ------------------------------------------------------------- */
.hj-window-page .cine-block { margin-inline: auto; text-align: center; }
.hj-gallery-line { color: var(--c-muted); font: italic 500 1.1rem/1.6 var(--f-display); }
.hj-window { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; width: 100%; max-width: 26rem; box-sizing: border-box; margin: 0 auto; padding: .45rem; list-style: none;
    border-radius: 9rem 9rem .3rem .3rem / 4rem 4rem .3rem .3rem; background: #1d2522; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .35); }
.hj-window li { aspect-ratio: 4 / 5; overflow: hidden; }
.hj-window li:nth-child(1) { border-top-left-radius: 8.6rem 3.6rem; }
.hj-window li:nth-child(2) { border-top-right-radius: 8.6rem 3.6rem; }
.hj-pane { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #3d4a46; cursor: zoom-in; }
.hj-pane img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.hj-pane::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(100deg, transparent 0 18px, rgba(240, 248, 245, .22) 18px 19px, transparent 19px 47px); background-size: 90px 140px; }
@media (prefers-reduced-motion: no-preference) { .hj-pane::after { animation: hj-fall-pane 1.4s linear infinite; } }
@keyframes hj-fall-pane { to { background-position: -20px 140px; } }
.hj-pane:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -3px; }
.hj-all { align-self: center; }

/* ---- Wishes: paper boats ------------------------------------------------------------------- */
.hj-boats .cine-wish-list li { position: relative; padding-left: 2.2rem; }
.hj-boats .cine-wish-list li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 1.6rem; height: 1.1rem; background: var(--c-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 22'%3E%3Cpath d='M1 12h30l-5 9H6z M9 12 16 1l7 11z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 22'%3E%3Cpath d='M1 12h30l-5 9H6z M9 12 16 1l7 11z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) { .hj-boats .cine-wish-list li::before { animation: hj-bob 3.4s ease-in-out infinite; } }
@keyframes hj-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-.15rem) rotate(3deg); } }

/* ---- After the rain ------------------------------------------------------------------------ */
.hj-after { overflow: hidden; }
.hj-light { position: absolute; inset: 0; pointer-events: none;
    background: conic-gradient(from 200deg at 70% -10%, transparent, rgba(255, 248, 225, .14) 8deg, transparent 16deg, rgba(255, 248, 225, .1) 24deg, transparent 32deg, rgba(255, 248, 225, .12) 40deg, transparent 50deg),
        radial-gradient(60% 40% at 70% 0, rgba(255, 244, 214, .24), transparent 70%); }
:root[data-scheme="light"] .hj-light { opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
    .hj-light { transition: opacity 2.4s ease; }
    .has-reveal .hj-after:not(:has(.is-revealed)) .hj-light { opacity: 0; }
}
.hj-end-names { margin-top: 1.3rem !important; font: italic 400 clamp(2rem, 8.5vw, 2.6rem)/1.1 var(--f-display); }
