:root {
    --white: #FFFFFF;
    --snow: #FAFAF8;
    --cloud: #F3F3EF;
    --silk: #EAEAE4;
    --sage: #8A9A7B;
    --sage-light: #B5C4A8;
    --sage-pale: #D8E0D0;
    --sage-mist: #EDF0E8;
    --olive: #6B7A5E;
    --forest: #3D4A35;
    --black: #1A1A1A;
    --charcoal: #2D2D2D;
    --graphite: #4A4A4A;
    --stone: #6E6E6E;
    --silver: #9A9A9A;
    --champagne: #D4C9A8;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

/* ===== ENVELOPE ===== */
.env-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--forest);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    transition: opacity 1.4s cubic-bezier(.4,0,.2,1), visibility 1.4s;
    overflow: hidden;
}
.env-screen.opened {
    opacity: 0; visibility: hidden; pointer-events: none;
}
.env-screen.opening .envelope {
    animation: envFloat 0.8s ease forwards;
}
.env-screen.opening .env-title,
.env-screen.opening .env-hint {
    animation: envFadeOut 0.6s ease forwards 0.3s;
}
@keyframes envFloat {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.15) translateY(-20px); opacity: 0; }
}

/* Hearts flying out */
.env-heart {
    position: absolute;
    font-size: 18px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: heartFly 1.6s ease-out forwards;
}
@keyframes heartFly {
    0% { opacity: 1; transform: translate(0, 0) scale(0.5) rotate(0deg); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--hx), var(--hy)) scale(1.2) rotate(var(--hr)); }
}
@keyframes envFadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

.env-box {
    text-align: center; position: relative; z-index: 2;
    animation: envAppear 1s ease both;
}
@keyframes envAppear {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.envelope {
    width: 377px; height: 260px;
    margin: 0 auto 32px; position: relative;
    cursor: pointer; transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    overflow: hidden; perspective: 800px;
}
.envelope:hover { transform: scale(1.04) translateY(-4px); }
.env-body {
    width: 100%; height: 100%;
    background: linear-gradient(160deg, #FFFFFF, #F8F8F4);
    border-radius: 12px;
    box-shadow: 0 24px 72px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.1);
}
.env-flap {
    position: absolute; top: 0; left: 8px; right: 8px; height: 130px;
    background: linear-gradient(135deg, var(--sage-pale), var(--sage-mist), var(--sage-pale));
    clip-path: polygon(0 0, 50% 72%, 100% 0);
    z-index: 4; transition: transform 0.7s cubic-bezier(.4,0,.2,1);
    transform-origin: top center;
    border-radius: 12px 12px 0 0;
}
.envelope:hover .env-flap { transform: rotateX(30deg); }
.env-seal {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 6px 24px rgba(138,154,123,0.4);
    display: flex; align-items: center; justify-content: center;
    animation: sealPulse 2.5s ease-in-out infinite;
}
@keyframes sealPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(138,154,123,0.4); }
    50% { box-shadow: 0 6px 24px rgba(138,154,123,0.4), 0 0 0 16px rgba(138,154,123,0.1), 0 0 0 32px rgba(138,154,123,0.04); }
}
.env-seal svg { width: 30px; height: 30px; color: var(--white); }
.env-title {
    font-family: 'Great Vibes', cursive;
    font-size: 42px; color: #C8D6BA;
    text-shadow: 0 2px 16px rgba(0,0,0,0.2);
    margin-bottom: 8px;
}
.env-hint {
    font-size: 16px; color: rgba(255,255,255,0.6);
    letter-spacing: 0.14em; margin-top: 12px;
    animation: hPulse 2.5s ease-in-out infinite;
}
@keyframes hPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    padding: 18px 32px;
    display: flex; justify-content: center; gap: 28px;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    background: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(234,234,228,0.5);
    transition: all 0.4s; opacity: 0; visibility: hidden;
}
.header.show { opacity: 1; visibility: visible; }
.header.scrolled {
    padding: 13px 32px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}
.header a {
    font-size: 10px; font-weight: 400;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--charcoal); text-decoration: none;
    padding: 4px 0; position: relative; transition: color 0.3s;
}
.header a::after {
    content: ''; position: absolute;
    bottom: 0; left: 50%; width: 0; height: 1px;
    background: var(--sage); transition: all 0.3s;
    transform: translateX(-50%);
}
.header a:hover { color: var(--charcoal); }
.header a:hover::after { width: 100%; }


/* ===== MAIN ===== */
.main { opacity: 0; transition: opacity 1.2s cubic-bezier(.4,0,.2,1) 0.2s; }
.main.show { opacity: 1; }

/* ===== COMMON ===== */
.sec { padding: 120px 24px; text-align: center; }
.sec-t {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 500; color: var(--black);
}
.sec-s {
    font-size: 11px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--stone);
    margin-top: 6px;
}
.leaf-line {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin: 14px 0;
}
.leaf-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--sage-light);
}
.leaf-dash { width: 28px; height: 1px; background: var(--sage-pale); }

.rv { opacity: 0; transform: translateY(32px); transition: all 1s cubic-bezier(.25,.1,.25,1); }
.rv.vis { opacity: 1; transform: translateY(0); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg {
    position: absolute; inset: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center 25%;
    transition: transform 1.2s cubic-bezier(.25,.1,.25,1);
}
.hero-bg:hover img { transform: scale(1.5); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.6) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; color: var(--white);
    padding: 24px;
}
.hero-pre {
    font-size: 12px; letter-spacing: 0.5em;
    text-transform: uppercase; opacity: 0.9;
    margin-bottom: 20px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 10vw, 90px);
    font-weight: 400; line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-names .amp {
    display: block; font-family: 'Great Vibes', cursive;
    font-size: 0.35em; opacity: 0.8; margin: 6px 0;
}
.hero-date-row {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    margin-top: 28px;
}
.hero-date-row .hl { width: 50px; height: 1px; background: rgba(255,255,255,0.5); }
.hero-date-txt {
    font-family: 'Jost', sans-serif;
    font-size: 20px; font-weight: 300; letter-spacing: 0.4em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll span {
    font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.hero-scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollA 2.5s ease-in-out infinite;
}
@keyframes scrollA {
    0%, 100% { height: 40px; opacity: 1; }
    50% { height: 24px; opacity: 0.3; }
}

/* ===== INTRO ===== */
.intro { background: var(--white); padding: 100px 24px; }
.intro-text {
    max-width: 560px; margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.8vw, 22px);
    font-style: italic; color: var(--charcoal);
    line-height: 2;
}

/* ===== STORY ===== */
.story { background: var(--snow); }
.story-grid {
    max-width: 900px; margin: 56px auto 0;
    display: flex; flex-direction: column; gap: 72px;
}
.s-item {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center; text-align: left;
}
.s-item:nth-child(even) .s-img { order: 2; }
.s-item:nth-child(even) .s-body { order: 1; text-align: right; }

.s-img {
    position: relative; border-radius: 16px; overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 20px 56px rgba(0,0,0,0.1);
}
.s-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(.25,.1,.25,1);
}
@media (hover: hover) {
    .s-img:hover img { transform: scale(1.5); }
}
.s-img.zoomed img { transform: scale(1.5) !important; }

.s-year {
    font-size: 11px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--olive);
    margin-bottom: 6px; font-weight: 400;
}
.s-h {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px; font-weight: 500; color: var(--black);
    margin-bottom: 12px;
}
.s-p { font-size: 15px; color: var(--graphite); line-height: 1.85; }

/* ===== PHOTO CAROUSEL ===== */
.carousel {
    overflow: hidden; background: var(--snow); padding: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.carousel-track {
    display: flex;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.carousel-track .car-img {
    height: 360px; flex-shrink: 0;
    overflow: hidden; position: relative;
}
.carousel-track .car-img img {
    height: 100%; width: auto; object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(.25,.1,.25,1);
    -webkit-transform: translateZ(0);
}
@media (hover: hover) {
    .carousel-track .car-img:hover img { transform: scale(1.5) !important; }
}
.carousel-track .car-img.zoomed img { transform: scale(1.5) !important; }

/* ===== SCHEDULE ===== */
.schedule { background: var(--white); }
.tl { max-width: 460px; margin: 52px auto 0; position: relative; }
.tl::before {
    content: ''; position: absolute;
    left: 50%; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--sage-pale), var(--sage-pale), transparent);
    transform: translateX(-50%);
}
.tl-row {
    display: flex; align-items: center; margin-bottom: 36px; position: relative;
}
.tl-time {
    width: 44%; text-align: right; padding-right: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px; font-weight: 600; color: var(--black);
}
.tl-dot {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--sage); z-index: 1;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--sage-pale);
}
.tl-info {
    width: 44%; padding-left: 28px;
    font-size: 14px; color: var(--graphite); line-height: 1.5;
}
.tl-info strong {
    display: block; font-weight: 400;
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px; color: var(--black);
}

/* ===== VENUE ===== */
.venue { background: var(--snow); }
.venue-grid {
    max-width: 700px; margin: 44px auto 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.v-card {
    background: var(--white); border-radius: 20px;
    padding: 48px 28px; text-align: center;
    border: 1px solid var(--silk);
    transition: transform 0.4s, box-shadow 0.4s;
}
.v-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 52px rgba(0,0,0,0.06);
}
.v-icon {
    width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%;
    background: var(--sage-mist);
    display: flex; align-items: center; justify-content: center;
}
.v-icon svg { width: 26px; height: 26px; color: var(--sage); }
.v-type {
    font-size: 9px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--sage);
}
.v-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 500; color: var(--black);
    margin: 4px 0 16px;
}
.v-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px; font-weight: 500; color: var(--black); margin-bottom: 6px;
}
.v-addr { font-size: 14px; color: var(--graphite); line-height: 1.7; margin-bottom: 22px; }
.v-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: 100px;
    border: 1px solid var(--sage-pale); background: transparent;
    font-family: 'Jost', sans-serif; font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--sage); text-decoration: none; transition: all 0.3s;
}
.v-btn:hover { background: var(--sage-mist); border-color: var(--sage-light); }

/* ===== COUNTDOWN ===== */
.cd-wrap {
    background: var(--forest);
    color: var(--white); text-align: center;
    position: relative; overflow: hidden;
}
.cd-wrap .sec-t { color: var(--white); }
.cd-wrap .sec-s { color: rgba(255,255,255,0.4); }
.cd-wrap .leaf-dot { background: var(--sage); }
.cd-wrap .leaf-dash { background: rgba(255,255,255,0.15); }
.cd-row {
    display: flex; justify-content: center; gap: 24px;
    margin-top: 48px; flex-wrap: wrap;
}
.cd-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cd-orb {
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transition: transform 0.3s, background 0.3s;
    display: grid;
    place-items: center;
}
.cd-orb:hover { transform: scale(1.07); background: rgba(255,255,255,0.1); }
.cd-num {
    font-family: 'Playfair Display', serif;
    font-size: 44px; font-weight: 500; color: var(--white);
    line-height: 100px;
    text-align: center;
    width: 100%;
    margin: 0; padding: 0;
    position: relative;
    top: -3px;
}
.cd-lbl {
    font-size: 9px; letter-spacing: 0.3em;
    text-transform: uppercase; color: rgba(255,255,255,0.4);
}

/* ===== DRESSCODE ===== */
.dresscode { background: var(--white); }
.dc-desc {
    max-width: 520px; margin: 20px auto 0;
    font-size: 15px; line-height: 1.9; color: var(--graphite);
}
.palette {
    display: flex; justify-content: center; gap: 24px;
    margin-top: 44px; flex-wrap: wrap;
}
.pal-i { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.pal-c {
    width: 58px; height: 58px; border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.pal-c:hover { transform: scale(1.15) translateY(-3px); }
.pal-n {
    font-size: 9px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--stone);
}

/* ===== DETAILS ===== */
.details { background: var(--snow); }
.det-grid {
    max-width: 700px; margin: 48px auto 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.d-card {
    background: var(--white); border-radius: 20px;
    padding: 36px 24px; text-align: center;
    border: 1px solid var(--silk);
    transition: transform 0.3s;
}
.d-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.04); }
.d-ic {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--sage-mist); margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
}
.d-ic svg { width: 20px; height: 20px; color: var(--sage); }
.d-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; font-weight: 500; color: var(--black);
    margin-bottom: 8px;
}
.d-card p { font-size: 13.5px; color: var(--graphite); line-height: 1.75; }

/* ===== RSVP ===== */
.rsvp-sec { background: var(--white); }
.rsvp-box {
    max-width: 440px; margin: 44px auto 0;
    background: var(--snow); border-radius: 24px;
    padding: 48px 36px; border: 1px solid var(--silk);
}
.fg { margin-bottom: 22px; text-align: left; }
.fg label {
    display: block; font-size: 11px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--stone); margin-bottom: 7px;
}
.fg select {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--silk); border-radius: 10px;
    background: var(--white); font-family: 'Jost', sans-serif;
    font-size: 15px; font-weight: 300; color: var(--charcoal);
    outline: none; transition: border-color 0.3s;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9A9A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.fg select:focus { border-color: var(--sage); }
.fg input[type="text"], .fg textarea {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--silk); border-radius: 10px;
    background: var(--white); font-family: 'Jost', sans-serif;
    font-size: 15px; font-weight: 300; color: var(--charcoal);
    outline: none; transition: border-color 0.3s;
}
.fg input:focus, .fg textarea:focus { border-color: var(--sage); }
.fg textarea { resize: vertical; min-height: 76px; }
.rg { display: flex; gap: 10px; flex-wrap: wrap; }
.ro { flex: 1; min-width: 110px; }
.ro input { display: none; }
.ro label {
    display: block; padding: 12px 10px;
    border: 1px solid var(--silk); border-radius: 10px;
    text-align: center; font-size: 13px; color: var(--graphite);
    cursor: pointer; transition: all 0.3s;
    text-transform: none; letter-spacing: 0;
}
.ro input:checked + label {
    border-color: var(--sage); color: var(--forest);
    background: var(--sage-mist);
}
.sub-btn {
    width: 100%; padding: 16px; border: none; border-radius: 100px;
    background: var(--sage); color: var(--white);
    font-family: 'Jost', sans-serif; font-size: 12px;
    font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(138,154,123,0.3);
}
.sub-btn:hover {
    background: var(--olive);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(107,122,94,0.35);
}
.f-ok { display: none; text-align: center; padding: 28px 0; }
.f-ok.show { display: block; }
.f-ok h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px; color: var(--charcoal);
}
.f-ok p { font-size: 15px; color: var(--stone); margin-top: 6px; }

/* ===== FOOTER ===== */
.foot {
    padding: 80px 24px; text-align: center;
    background: var(--forest); color: var(--white);
}
.foot-script {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px; font-style: italic; font-weight: 400;
    color: var(--sage-light);
}
.foot-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px; font-weight: 400;
    margin: 6px 0 4px;
}
.foot-date {
    font-size: 13px; letter-spacing: 0.4em;
    color: rgba(255,255,255,0.7);
}

/* ===== FLOATING HEARTS ===== */
.hearts-container {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
    z-index: 0;
}
.float-heart {
    position: absolute; bottom: -20px;
    opacity: 0;
    animation: floatHeartUp 4s ease-out forwards;
}
.float-heart svg { display: block; }
@keyframes floatHeartUp {
    0% { opacity: 0.7; transform: translateY(0) scale(0.6) rotate(0deg); }
    50% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-200px) scale(1) rotate(var(--fhr)); }
}

.foot { position: relative; overflow: hidden; }
.story { position: relative; overflow: hidden; }

/* ===== SCROLL TOP ===== */
.scroll-top {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer; transition: all 0.3s;
    margin-top: 28px;
}
.scroll-top:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}
.scroll-top svg { width: 18px; height: 18px; color: rgba(255,255,255,0.6); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Header */
    .header {
        gap: 6px; padding: 10px 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .header a { font-size: 8px; letter-spacing: 0.05em; white-space: nowrap; padding: 4px 4px; flex-shrink: 0; }

    /* Hero */
    .hero-names { font-size: clamp(32px, 10vw, 60px); }
    .hero-pre { font-size: 10px; letter-spacing: 0.3em; }
    .hero-date-txt { font-size: 14px; letter-spacing: 0.2em; }
    .hero-date-row .hl { width: 24px; }
    .hero-date-row { gap: 10px; }
    .hero-content { padding: 16px; }

    /* Sections */
    .sec { padding: 64px 16px; }
    .sec-t { font-size: clamp(24px, 6vw, 34px); }
    .sec-s { font-size: 9px; letter-spacing: 0.2em; }
    .intro-text { font-size: 16px; }

    /* Story */
    .s-item { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .s-item:nth-child(even) .s-img,
    .s-item:nth-child(even) .s-body { order: unset; text-align: center; }
    .s-img { max-width: 280px; margin: 0 auto; }
    .s-h { font-size: 22px; }
    .s-p { font-size: 13px; }
    .story-grid { gap: 48px; }

    /* Carousel */
    .carousel-track .car-img { height: 200px; }

    /* Dresscode palette — all fit in one row */
    .palette { gap: 10px; flex-wrap: nowrap; justify-content: center; }
    .pal-c { width: 42px; height: 42px; }
    .pal-n { font-size: 7px; letter-spacing: 0.06em; }

    /* Timeline */
    .tl-time { font-size: 20px; padding-right: 20px; }
    .tl-info { padding-left: 20px; font-size: 13px; }
    .tl-info strong { font-size: 16px; }

    /* Venue */
    .venue-grid { grid-template-columns: 1fr; max-width: 340px; }
    .v-card { padding: 36px 24px; }
    .v-card h3 { font-size: 22px; }
    .v-time { font-size: 28px; }

    /* Countdown */
    .cd-row { gap: 12px; }
    .cd-orb { width: 72px; height: 72px; }
    .cd-num { font-size: 28px; line-height: 72px; top: -2px; }
    .cd-lbl { font-size: 8px; letter-spacing: 0.2em; }

    /* Dresscode */
    .dc-desc { font-size: 13px; }

    /* Details */
    .det-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
    .d-card { padding: 28px 20px; }
    .d-card h4 { font-size: 17px; }
    .d-card p { font-size: 12px; }

    /* RSVP */
    .rsvp-box { padding: 32px 20px; }

    /* Footer */
    .foot-names { font-size: 26px; }
    .foot-date { font-size: 11px; }

    /* Envelope */
    .envelope { width: 260px; height: 180px; }
    .env-flap { height: 90px; }
    .env-seal { width: 56px; height: 56px; }
    .env-seal svg { width: 22px; height: 22px; }
    .env-title { font-size: 30px; }
    .env-hint { font-size: 13px; }
}

@media (max-width: 380px) {
    .header a { font-size: 7px; letter-spacing: 0.03em; }
    .hero-names { font-size: clamp(28px, 9vw, 48px); }
    .hero-date-txt { font-size: 12px; letter-spacing: 0.15em; }
    .cd-orb { width: 64px; height: 64px; }
    .cd-num { font-size: 24px; line-height: 64px; }
    .cd-row { gap: 8px; }
    .palette { gap: 6px; }
    .pal-c { width: 36px; height: 36px; }
    .pal-n { font-size: 6px; }
    .rsvp-box { padding: 28px 16px; }
    .envelope { width: 220px; height: 155px; }
    .env-flap { height: 78px; }
    .env-seal { width: 48px; height: 48px; }
    .env-title { font-size: 24px; }
    .env-hint { font-size: 11px; }
    .s-img { max-width: 240px; }
    .tl-time { font-size: 18px; padding-right: 14px; }
    .tl-info { padding-left: 14px; font-size: 12px; }
    .tl-info strong { font-size: 14px; }
}
