/* ============================================
   The Nucleus — RCV Technologies invitation
   Design system inspired by the official poster:
   deep black, lilac→indigo gradient, multi-hue node glows
   ============================================ */

:root {
    --void: #05050A;
    --panel: rgba(10, 10, 18, 0.78);
    --panel-solid: #0C0C14;
    --ink: #F4F2FF;
    --ink-soft: #C8C2E4;
    --muted: #8E88B0;
    --line: rgba(180, 160, 255, 0.22);
    --lilac: #D7C6FF;
    --indigo: #4568FF;
    --violet: #8B6CFF;
    --cyan: #3DE4FF;
    --emerald: #3DFF9A;
    --gold: #FFC857;
    --orange: #FF8A3D;
    --rose: #FF6BCB;
    --danger: #FF6B8A;
    --focus: #A78BFF;
    --gradient-title: linear-gradient(180deg, #E8DCFF 0%, #C9B6FF 28%, #6B7CFF 72%, #3557FF 100%);
    --gradient-btn: linear-gradient(135deg, #B9A4FF 0%, #5A6FFF 100%);
    --glow-lilac: 0 0 28px rgba(167, 139, 255, 0.45);
    --glow-cyan: 0 0 24px rgba(61, 228, 255, 0.4);
    --font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "Sora", "Segoe UI", sans-serif;
    --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.55);
    --invite-bg-image: none;
    --max: 440px;
    --radius-sm: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink);
    background: var(--void);
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 50;
    padding: 0.65rem 1rem;
    background: var(--panel-solid);
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
}

.skip-link:focus {
    top: 1rem;
}

/* Atmosphere — poster + dark tech field */
.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        var(--invite-bg-image),
        radial-gradient(90% 70% at 50% 100%, rgba(69, 104, 255, 0.28), transparent 55%),
        radial-gradient(70% 50% at 80% 10%, rgba(215, 198, 255, 0.18), transparent 50%),
        #05050A;
    background-size: cover, auto, auto, auto;
    background-position: center top, center, center, center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    filter: saturate(1.05) brightness(0.72);
}

.atmosphere-veil {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 5, 10, 0.55) 0%, rgba(5, 5, 10, 0.72) 45%, rgba(5, 5, 10, 0.92) 100%),
        radial-gradient(60% 50% at 50% 80%, rgba(69, 104, 255, 0.12), transparent 70%);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.watermark-3 {
    position: fixed;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(18rem, 55vw, 34rem);
    line-height: 0.8;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.07;
    letter-spacing: -0.06em;
    user-select: none;
}

/* Colored ambient orbs (poster node palette) */
.fx-orbs {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
    animation: orb-drift 16s ease-in-out infinite;
}

.fx-orb--1 {
    width: 200px;
    height: 200px;
    left: -30px;
    top: 18%;
    background: radial-gradient(circle, rgba(61, 228, 255, 0.55), transparent 70%);
}

.fx-orb--2 {
    width: 240px;
    height: 240px;
    right: -50px;
    top: 30%;
    background: radial-gradient(circle, rgba(61, 255, 154, 0.4), transparent 70%);
    animation-delay: -3s;
}

.fx-orb--3 {
    width: 220px;
    height: 220px;
    left: 20%;
    bottom: 5%;
    background: radial-gradient(circle, rgba(255, 200, 87, 0.35), transparent 70%);
    animation-delay: -7s;
    animation-duration: 18s;
}

.fx-orb--4 {
    width: 180px;
    height: 180px;
    right: 18%;
    bottom: 18%;
    background: radial-gradient(circle, rgba(255, 107, 203, 0.35), transparent 70%);
    animation-delay: -11s;
}

@keyframes orb-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(16px, -22px, 0) scale(1.1); }
}

.fx-sparks {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.fx-sparks span {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(183, 160, 255, 0.9);
    animation: spark-rise 10s linear infinite;
    opacity: 0;
}

.fx-sparks span:nth-child(1) { left: 8%; animation-delay: 0s; }
.fx-sparks span:nth-child(2) { left: 22%; animation-delay: 1.2s; }
.fx-sparks span:nth-child(3) { left: 38%; animation-delay: 2.4s; }
.fx-sparks span:nth-child(4) { left: 52%; animation-delay: 0.6s; }
.fx-sparks span:nth-child(5) { left: 66%; animation-delay: 3.1s; }
.fx-sparks span:nth-child(6) { left: 78%; animation-delay: 1.8s; }
.fx-sparks span:nth-child(7) { left: 88%; animation-delay: 4s; }
.fx-sparks span:nth-child(8) { left: 95%; animation-delay: 2.7s; }

@keyframes spark-rise {
    0% { transform: translateY(105vh) scale(0.5); opacity: 0; }
    15% { opacity: 0.9; }
    100% { transform: translateY(-8vh) scale(1); opacity: 0; }
}

/* Subtle invitation fireworks */
.fx-fireworks {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.72;
}

.page--invitation .fx-fireworks:not([hidden]) {
    display: block;
}

/* Decorative nucleus nodes (bottom-left, desktop) */
.nucleus-net {
    display: none;
}

.shell {
    position: relative;
    z-index: 2;
    width: min(100%, calc(var(--max) + 2.5rem));
    margin: 0 auto;
    padding: clamp(1.35rem, 4vw, 2.5rem) 1.15rem 3rem;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

/* Glass invitation panel */
.entry,
.invitation {
    width: 100%;
    background:
        linear-gradient(165deg, rgba(28, 24, 48, 0.82), rgba(8, 8, 16, 0.9));
    color: var(--ink);
    padding: clamp(1.85rem, 5vw, 2.6rem) clamp(1.25rem, 4.5vw, 2rem);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(215, 198, 255, 0.12);
    border: 1px solid rgba(167, 139, 255, 0.28);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.entry::before,
.invitation::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 0;
}

.entry::after,
.invitation::after {
    content: "";
    position: absolute;
    inset: -40% -20% auto;
    height: 55%;
    background: radial-gradient(closest-side, rgba(139, 108, 255, 0.22), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ornament {
    position: absolute;
    width: 42px;
    height: 42px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
    background:
        linear-gradient(var(--lilac), var(--lilac)) top left / 16px 1px no-repeat,
        linear-gradient(var(--lilac), var(--lilac)) top left / 1px 16px no-repeat;
    filter: drop-shadow(0 0 6px rgba(167, 139, 255, 0.55));
}

.ornament--tl { top: 16px; left: 16px; }
.ornament--br {
    right: 16px;
    bottom: 16px;
    transform: rotate(180deg);
}

.invite-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 28%,
        rgba(215, 198, 255, 0.14) 48%,
        transparent 62%
    );
    transform: translateX(-120%);
    animation: invite-shine 2.6s ease 0.35s 1;
    z-index: 1;
}

@keyframes invite-shine {
    to { transform: translateX(120%); }
}

.seal {
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
}

.seal img {
    width: 92px;
    height: 92px;
    filter: drop-shadow(0 0 18px rgba(107, 124, 255, 0.45));
    animation: seal-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.seal--invite img {
    width: 78px;
    height: 78px;
}

@keyframes seal-in {
    from { opacity: 0; transform: scale(0.7) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.anniversary-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border: 1px solid rgba(167, 139, 255, 0.5);
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    box-shadow: var(--glow-lilac);
    position: relative;
    z-index: 2;
}

.anniversary-badge__num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.anniversary-badge__label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand__logo {
    width: auto;
    height: 40px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(139, 108, 255, 0.35));
}

.brand__logo--invite {
    height: 34px;
    margin: 0 auto 1rem;
}

.brand__wordmark {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink);
}

.brand--entry {
    margin-bottom: 1.35rem;
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.eyebrow--soft {
    text-align: center;
    margin-bottom: 0.55rem;
    color: var(--lilac);
}

.display {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.display--entry {
    font-size: clamp(2.15rem, 8.5vw, 2.85rem);
    max-width: 12ch;
    margin-bottom: 0.95rem;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.event-chip {
    display: inline-block;
    margin: 0 0 0.95rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    border: 1px solid rgba(167, 139, 255, 0.35);
    border-radius: 999px;
    background: rgba(69, 104, 255, 0.12);
    box-shadow: 0 0 20px rgba(69, 104, 255, 0.15);
    position: relative;
    z-index: 2;
}

.lead {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--ink-soft);
    font-weight: 300;
    max-width: 32ch;
    position: relative;
    z-index: 2;
}

.sublead {
    margin: 0 0 1.75rem;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 30ch;
    position: relative;
    z-index: 2;
}

.code-form {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.field__label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.field__input {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(167, 139, 255, 0.28);
    border-radius: 10px;
    background: rgba(5, 5, 12, 0.55);
    padding: 0.9rem 1rem;
    color: var(--ink);
    font-size: 1.02rem;
    letter-spacing: 0.1em;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field__input::placeholder {
    color: #6b6688;
    letter-spacing: 0.02em;
}

.field__input:focus {
    border-color: rgba(183, 160, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(107, 124, 255, 0.2), var(--glow-lilac);
}

.field__input[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.18);
}

.field__hint {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.form-alert {
    margin: 0;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 107, 138, 0.1);
    color: #ffb3c2;
    font-size: 0.9rem;
    border-left: 2px solid var(--danger);
    border-radius: 0 8px 8px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:focus-visible,
.field__input:focus-visible,
.share-post__text:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.btn--primary {
    width: 100%;
    background: var(--gradient-btn);
    color: #080812;
    margin-top: 0.25rem;
    box-shadow: 0 0 28px rgba(107, 124, 255, 0.35);
}

.btn--primary:hover {
    box-shadow: 0 0 36px rgba(139, 108, 255, 0.55);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(1px);
}

.btn--linkedin {
    width: 100%;
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 0 22px rgba(10, 102, 194, 0.35);
}

.btn--linkedin:hover {
    background: #0c75de;
}

.btn--ghost {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-soft);
    border-color: rgba(167, 139, 255, 0.28);
}

.btn--ghost:hover {
    border-color: rgba(183, 160, 255, 0.65);
    color: var(--ink);
    box-shadow: 0 0 18px rgba(107, 124, 255, 0.2);
}

/* Invitation content */
.invite-top {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
}

.event-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 8vw, 2.7rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(107, 124, 255, 0.25));
}

.event-tagline {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
    font-weight: 400;
    line-height: 1.4;
}

.personal {
    text-align: center;
    margin: 0 0 1.6rem;
    position: relative;
    z-index: 2;
}

.personal__kicker {
    margin: 0 0 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--lilac);
}

.personal__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 8vw, 2.75rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-shadow: 0 0 24px rgba(167, 139, 255, 0.35);
}

.personal__role {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.invite-copy {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.65rem;
    font-size: 0.98rem;
    color: var(--ink-soft);
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.invite-copy p {
    margin: 0;
}

.invite-copy__opening {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
}

.invite-copy__closing {
    color: var(--lilac);
}

.details {
    margin: 0 0 1.35rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
}

.details__row {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.85rem;
    padding: 0.5rem 0;
}

.details__row dt {
    margin: 0;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.25rem;
}

.details__row dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
}

.details__venue {
    display: block;
}

.details__address {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 300;
    color: var(--muted);
}

.occasion-note {
    margin: 0 0 1.6rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.regards {
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 2;
}

.regards__signoff {
    margin: 0 0 1.05rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.directors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.95rem;
}

.director {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.director__photo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(167, 139, 255, 0.45), 0 0 16px rgba(69, 104, 255, 0.25);
}

.director--text {
    border-left: 2px solid rgba(139, 108, 255, 0.65);
    padding-block: 0.15rem;
    padding-left: 0.9rem;
    box-shadow: -6px 0 16px rgba(107, 124, 255, 0.12);
}

.director__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}

.director__role {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.regards__from {
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.regards__from strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--lilac);
    font-weight: 600;
    text-transform: none;
}

.actions {
    display: grid;
    gap: 0.7rem;
}

.actions--share {
    margin-top: 0.85rem;
}

.share-panel {
    margin-top: 0.35rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 2;
}

.share-panel__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.share-panel__intro {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 300;
}

.share-card {
    margin: 0 0 1rem;
    border: 1px solid rgba(167, 139, 255, 0.35);
    border-radius: 12px;
    background: #05050A;
    overflow: hidden;
    box-shadow: 0 0 28px rgba(69, 104, 255, 0.18);
}

.share-card__image {
    width: 100%;
    height: auto;
    display: block;
}

.share-post__label {
    margin: 0 0 0.45rem;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.share-post__text {
    width: 100%;
    resize: vertical;
    min-height: 8rem;
    margin: 0;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(167, 139, 255, 0.28);
    border-radius: 10px;
    background: rgba(5, 5, 12, 0.55);
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 300;
}

.copy-status {
    margin: 0.15rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--lilac);
}

.share-note {
    margin: 0.35rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.45;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 2;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal[data-reveal="1"] { transition-delay: 40ms; }
.reveal[data-reveal="2"] { transition-delay: 110ms; }
.reveal[data-reveal="3"] { transition-delay: 180ms; }
.reveal[data-reveal="4"] { transition-delay: 250ms; }
.reveal[data-reveal="5"] { transition-delay: 320ms; }
.reveal[data-reveal="6"] { transition-delay: 390ms; }
.reveal[data-reveal="7"] { transition-delay: 460ms; }

.page--invitation .personal.is-visible .personal__name {
    animation: name-glow 1.6s ease 0.3s 1;
}

@keyframes name-glow {
    0% { text-shadow: 0 0 0 transparent; }
    40% { text-shadow: 0 0 28px rgba(183, 160, 255, 0.7); }
    100% { text-shadow: 0 0 24px rgba(167, 139, 255, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .field__input,
    .fx-orb,
    .fx-sparks span,
    .seal img,
    .invite-shimmer,
    .nucleus-net__core,
    .nucleus-net__node {
        animation: none !important;
        transition: none;
    }

    .fx-orbs,
    .fx-sparks,
    .fx-fireworks,
    .invite-shimmer {
        display: none;
    }
}

@media (min-width: 768px) {
    :root { --max: 520px; }

    .shell { padding-block: 3.25rem; }

    .entry,
    .invitation { padding: 2.75rem 2.5rem; }

    .director__photo {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 1100px) {
    .shell {
        width: min(100%, 1080px);
        justify-content: flex-end;
        padding-right: clamp(2rem, 7vw, 5.5rem);
    }

    .entry,
    .invitation {
        width: min(100%, 500px);
    }

    .atmosphere {
        background-position: left center, center, center, center;
        filter: saturate(1.08) brightness(0.85);
    }

    .atmosphere-veil {
        background:
            linear-gradient(90deg, rgba(5, 5, 10, 0.15) 0%, rgba(5, 5, 10, 0.55) 48%, rgba(5, 5, 10, 0.88) 100%),
            radial-gradient(50% 60% at 25% 75%, rgba(69, 104, 255, 0.16), transparent 70%);
    }

    .watermark-3 {
        left: 28%;
        opacity: 0.09;
    }

    .nucleus-net {
        display: block;
        position: fixed;
        left: 8%;
        bottom: 10%;
        width: 280px;
        height: 280px;
        z-index: 1;
        pointer-events: none;
        opacity: 0.85;
    }

    .nucleus-net__core,
    .nucleus-net__node {
        position: absolute;
        border-radius: 50%;
        border: 1px solid rgba(183, 160, 255, 0.45);
        background: rgba(12, 12, 24, 0.75);
    }

    .nucleus-net__core {
        width: 72px;
        height: 72px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 28px rgba(139, 108, 255, 0.55), inset 0 0 18px rgba(69, 104, 255, 0.35);
        animation: node-pulse 3.5s ease-in-out infinite;
    }

    .nucleus-net__core::after {
        content: "RCV";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        font-family: var(--font-display);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        color: var(--lilac);
    }

    .nucleus-net__node {
        width: 42px;
        height: 42px;
        animation: node-pulse 3.8s ease-in-out infinite;
    }

    .nucleus-net__node--1 { left: 50%; top: 4%; transform: translateX(-50%); box-shadow: var(--glow-cyan); border-color: var(--cyan); animation-delay: 0.2s; }
    .nucleus-net__node--2 { right: 8%; top: 28%; box-shadow: 0 0 22px rgba(61, 255, 154, 0.45); border-color: var(--emerald); animation-delay: 0.5s; }
    .nucleus-net__node--3 { right: 8%; bottom: 28%; box-shadow: 0 0 22px rgba(255, 200, 87, 0.45); border-color: var(--gold); animation-delay: 0.8s; }
    .nucleus-net__node--4 { left: 50%; bottom: 4%; transform: translateX(-50%); box-shadow: 0 0 22px rgba(255, 138, 61, 0.45); border-color: var(--orange); animation-delay: 1.1s; }
    .nucleus-net__node--5 { left: 8%; bottom: 28%; box-shadow: 0 0 22px rgba(255, 107, 203, 0.45); border-color: var(--rose); animation-delay: 1.4s; }
    .nucleus-net__node--6 { left: 8%; top: 28%; box-shadow: 0 0 22px rgba(167, 139, 255, 0.5); border-color: var(--lilac); animation-delay: 1.7s; }

    @keyframes node-pulse {
        0%, 100% { filter: brightness(1); }
        50% { filter: brightness(1.25); }
    }
}

@media print {
    .atmosphere,
    .atmosphere-veil,
    .grain,
    .fx-orbs,
    .fx-sparks,
    .fx-fireworks,
    .watermark-3,
    .nucleus-net,
    .actions,
    .share-panel,
    .invite-shimmer,
    .skip-link {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .shell {
        display: block;
        width: 100%;
        max-width: none;
        min-height: auto;
        padding: 0;
        margin: 0;
    }

    .entry,
    .invitation {
        box-shadow: none;
        border: 0;
        background: #fff;
        color: #111;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
    }

    .display--entry,
    .event-title,
    .share-panel__title,
    .anniversary-badge__num {
        background: none;
        color: #111;
        -webkit-text-fill-color: unset;
        filter: none;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
