/* ==========================================================================
   Everafter Invites — animated invitation styles
   ========================================================================== */

/* ---------- Template palettes ---------- */
.ea-t-ivory {
	--bg: #f8f4ec; --bg2: #f0e8d9; --card: #fffdf8; --ink: #3b3229; --muted: #85776a;
	--accent: #b08d57; --line: rgba(176, 141, 87, .35); --btn-ink: #fff;
	--env: #efe5d3; --env2: #e4d6bf; --env3: #e9dcc7; --seal: #8c2f2f;
	--script: 'Pinyon Script', cursive; --serif: 'Cormorant Garamond', Georgia, serif;
}
.ea-t-botanica {
	--bg: #f2f0e8; --bg2: #e6eadf; --card: #fbfaf5; --ink: #2f3a2f; --muted: #6a7466;
	--accent: #6f8a68; --line: rgba(111, 138, 104, .35); --btn-ink: #fff;
	--script: 'Parisienne', cursive; --serif: 'EB Garamond', Georgia, serif;
}
.ea-t-noir {
	--bg: #0f0f10; --bg2: #161618; --card: #19191c; --ink: #efe6d2; --muted: #a59d8b;
	--accent: #c9a45c; --line: rgba(201, 164, 92, .35); --btn-ink: #121212;
	--script: 'Italiana', 'Cormorant Garamond', serif; --serif: 'Cormorant Garamond', Georgia, serif;
}
.ea-t-blush {
	--bg: #fbf3f1; --bg2: #f6e5e1; --card: #fffafa; --ink: #4a3236; --muted: #8f7275;
	--accent: #c98b8b; --line: rgba(201, 139, 139, .38); --btn-ink: #fff;
	--script: 'Allura', cursive; --serif: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ea {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--serif); font-size: 19px; line-height: 1.7; font-weight: 400;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.ea::after { /* paper grain */
	content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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: multiply;
}
.ea-t-noir::after { mix-blend-mode: screen; opacity: .04; }
.js body.is-locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
.ea-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ea-center { text-align: center; }
::selection { background: var(--accent); color: var(--btn-ink); }

.ea-eyebrow { font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6em; font-weight: 500; }
.ea-title { font-family: var(--script); font-weight: 400; font-size: clamp(2.9rem, 7vw, 4.8rem); line-height: 1.1; margin: 0 0 .5em; }
.ea-t-noir .ea-title { text-transform: uppercase; letter-spacing: .12em; font-size: clamp(2.1rem, 5vw, 3.4rem); }

.ea-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 30px; border: 1px solid var(--accent); background: transparent; color: var(--ink);
	font: 500 .76rem/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background .35s, color .35s, transform .35s, box-shadow .35s; border-radius: 0;
}
.ea-btn:hover, .ea-btn:focus-visible { background: var(--accent); color: var(--btn-ink); transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--accent); }
.ea-btn--solid { background: var(--accent); color: var(--btn-ink); padding: 19px 44px; font-size: .8rem; }
.ea-btn--solid:hover { filter: brightness(1.06); }
.ea-btn .eai-ico { width: 18px; height: 18px; }
.ea-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 8px; }
.ea-link .eai-ico { width: 16px; height: 16px; }
.ea-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ea-textbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; margin-top: 18px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Gate (shared) ---------- */
.ea-gate {
	position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
	background: radial-gradient(ellipse at 50% 40%, var(--bg) 0%, var(--bg2) 100%);
	transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
html:not(.js) .ea-gate { display: none; }
body.is-opened .ea-gate { opacity: 0; visibility: hidden; pointer-events: none; }
.ea-gate__inner { position: relative; z-index: 2; text-align: center; padding: 24px; transition: opacity .6s ease, transform .8s ease; }
.ea-gate__to { font-size: .78rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; animation: eaUp 1.2s .3s both; }
.ea-gate__date { font-size: 1.15rem; font-style: italic; margin: 0 0 26px; animation: eaUp 1.2s .5s both; }
.ea-gate__hint { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); animation: eaUp 1.2s .8s both, eaBlink 2.6s 2s ease-in-out infinite; }
.ea-gate .ea-btn { animation: eaUp 1.2s .8s both; }
.is-opening .ea-gate__inner [data-gate-fade], .is-opening .ea-gate__hint { opacity: 0 !important; transition: opacity .4s; animation: none; }

/* Monogram wreath */
.ea-mono { position: relative; width: min(58vw, 230px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.ea-wreath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ea-wreath__stem { fill: none; stroke: var(--accent); stroke-width: .8; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ea-wreath__leaf { fill: var(--accent); opacity: 0; }
.ea-wreath__berry { fill: var(--accent); opacity: 0; }
.ea-wreath.is-drawn .ea-wreath__stem, .is-in .ea-wreath__stem, .is-open .ea-hero__wreath .ea-wreath__stem { animation: eaDraw 2.4s ease forwards; }
.ea-wreath.is-drawn .ea-wreath__leaf, .is-in .ea-wreath__leaf, .is-open .ea-hero__wreath .ea-wreath__leaf,
.ea-wreath.is-drawn .ea-wreath__berry, .is-in .ea-wreath__berry, .is-open .ea-hero__wreath .ea-wreath__berry { animation: eaLeaf .7s ease forwards; animation-delay: calc(var(--i) * 55ms + .4s); }
.ea-mono__ini { position: relative; font-family: var(--script); font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1; color: var(--ink); animation: eaFadeIn 1.6s .6s both; }
.ea-mono__ini i { font-family: var(--serif); font-style: italic; font-size: .5em; color: var(--accent); margin: 0 .12em; vertical-align: middle; }
.ea-t-noir .ea-mono__ini { letter-spacing: .08em; }

/* ---------- Gate: Envelope (Ivory) ---------- */
.ea-env { position: relative; width: min(86vw, 460px); aspect-ratio: 1.5; margin: 26px auto 34px; perspective: 1600px; animation: eaFloat 6s ease-in-out infinite; }
.ea-env__back { position: absolute; inset: 0; z-index: 0; background: var(--env2); border-radius: 6px; box-shadow: 0 40px 70px -30px rgba(70, 45, 20, .45), 0 10px 20px -10px rgba(70, 45, 20, .2); }
.ea-env__letter {
	position: absolute; left: 5%; right: 5%; top: 5%; bottom: 7%; z-index: 2; border-radius: 3px;
	background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 7%; gap: 2px; text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08); outline: 1px solid var(--line); outline-offset: -9px;
	transition: transform 1.3s cubic-bezier(.6, 0, .2, 1) .75s;
}
.ea-env__eyebrow { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.ea-env__names { font-family: var(--script); font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.3; }
.ea-env__date { font-size: .78rem; letter-spacing: .28em; color: var(--muted); }
.ea-env__front { position: absolute; inset: 0; z-index: 3; background: var(--env); border-radius: 6px; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.ea-env__front::before, .ea-env__front::after { content: ""; position: absolute; inset: 0; background: var(--env3); }
.ea-env__front::before { clip-path: polygon(0 0, 50% 54%, 0 100%); }
.ea-env__front::after { clip-path: polygon(100% 0, 50% 54%, 100% 100%); background: linear-gradient(200deg, var(--env3), var(--env2)); }
.ea-env__flap {
	position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: 50% 0;
	background: linear-gradient(180deg, var(--env2), var(--env3) 70%, var(--env)); clip-path: polygon(0 0, 100% 0, 50% 100%);
	transition: transform 1s cubic-bezier(.5, 0, .2, 1) .25s, z-index 0s linear .75s;
}
.ea-env__seal {
	position: absolute; z-index: 5; left: 50%; top: 58%; width: 82px; height: 82px; margin: -41px 0 0 -41px; padding: 0; border: 0; cursor: pointer;
	border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%;
	background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--seal) 65%, #fff) 0%, var(--seal) 45%, color-mix(in srgb, var(--seal) 70%, #000) 100%);
	box-shadow: 0 8px 18px rgba(60, 10, 10, .35), inset 0 -4px 8px rgba(0, 0, 0, .3), inset 0 3px 6px rgba(255, 255, 255, .25);
	color: rgba(255, 232, 214, .9); font-family: var(--script); font-size: 1.75rem; line-height: 1;
	transition: transform .55s cubic-bezier(.3, 1.4, .5, 1), opacity .5s;
}
.ea-env__seal::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.ea-env__seal::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--seal); opacity: 0; animation: eaRing 2.4s 1.6s ease-out infinite; }
.ea-env__seal span { position: relative; display: inline-flex; align-items: center; }
.ea-env__seal i { font-family: var(--serif); font-size: .5em; margin: 0 1px; }
.ea-env__seal:hover { transform: scale(1.06) rotate(-4deg); }
.is-opening .ea-env { animation: none; }
.is-opening .ea-env__seal { transform: scale(1.35) rotate(-18deg); opacity: 0; pointer-events: none; }
.is-opening .ea-env__flap { transform: rotateX(180deg); z-index: 1; }
.is-opening .ea-env__letter { transform: translateY(-60%); }
body.is-opened .ea-env__letter { transform: translateY(-60%) scale(1.15); }

/* ---------- Gate: Panels (Botanica) & Doors (Noir) ---------- */
.ea-gate-panels .ea-gate, .ea-gate-doors .ea-gate, .ea-gate-bloom .ea-gate { background: transparent; }
.ea-leaf { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 1; background: var(--bg2); overflow: hidden; }
.ea-leaf--l { left: 0; } .ea-leaf--r { right: 0; }
.ea-gate-panels .ea-leaf { transition: transform 1.5s cubic-bezier(.7, 0, .2, 1) .35s; background: radial-gradient(ellipse at 100% 50%, var(--bg) 0%, var(--bg2) 70%); }
.ea-gate-panels .ea-leaf--r { background: radial-gradient(ellipse at 0% 50%, var(--bg) 0%, var(--bg2) 70%); }
.ea-gate-panels .ea-leaf--l { box-shadow: inset -1px 0 0 var(--line); }
.ea-gate-panels.is-opening .ea-leaf--l { transform: translateX(-102%); }
.ea-gate-panels.is-opening .ea-leaf--r { transform: translateX(102%); }
.ea-vine { position: absolute; top: 0; height: 100%; width: 90px; left: 4%; overflow: visible; }
.ea-vine--flip { left: auto; right: 4%; transform: scaleX(-1); }
.ea-vine__stem { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: eaDraw 3s .2s ease forwards; }
.ea-vine__leaf { fill: var(--accent); opacity: 0; animation: eaLeaf .8s ease forwards; animation-delay: calc(var(--i) * 110ms + .5s); }

.ea-gate-doors .ea-gate { perspective: 2000px; }
.ea-gate-doors .ea-leaf {
	transition: transform 1.8s cubic-bezier(.6, 0, .2, 1) .45s;
	background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(201, 164, 92, .06) 26px 27px), var(--bg2);
	box-shadow: inset 0 0 0 22px var(--bg2), inset 0 0 0 23px var(--accent), inset 0 0 0 34px var(--bg2), inset 0 0 0 35px rgba(201, 164, 92, .4);
}
.ea-gate-doors .ea-leaf::before { /* deco arch */
	content: ""; position: absolute; left: 22%; right: 22%; top: 12%; height: 46%; border: 1px solid var(--line); border-bottom: 0; border-radius: 999px 999px 0 0;
	background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(201, 164, 92, .18) 0 1.5deg, transparent 1.5deg 9deg);
	-webkit-mask: linear-gradient(#000, transparent 92%); mask: linear-gradient(#000, transparent 92%);
}
.ea-gate-doors .ea-leaf::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 10%; height: 22%; border: 1px solid var(--line); }
.ea-gate-doors .ea-leaf--l { transform-origin: 0 50%; }
.ea-gate-doors .ea-leaf--r { transform-origin: 100% 50%; }
.ea-door__handle { position: absolute; top: 50%; width: 6px; height: 84px; margin-top: -42px; border-radius: 3px; background: linear-gradient(90deg, #8a6b30, #f3d9a0, #8a6b30); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.ea-leaf--l .ea-door__handle { right: 22px; } .ea-leaf--r .ea-door__handle { left: 22px; }
.ea-gate-doors.is-opening .ea-leaf--l { transform: rotateY(-108deg); }
.ea-gate-doors.is-opening .ea-leaf--r { transform: rotateY(108deg); }
.ea-gate-doors .ea-gate__inner { background: radial-gradient(circle, var(--bg2) 40%, transparent 72%); border-radius: 50%; padding: 40px; }

.is-opening .ea-gate__inner { opacity: 0; transform: scale(.94); }
.ea-gate-envelope.is-opening .ea-gate__inner { opacity: 1; transform: none; }

/* ---------- Gate: Bloom (Blush) ---------- */
@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.ea-gate-bloom .ea-gate {
	background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 22%, var(--bg)) 0, transparent 40%),
		radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent) 26%, var(--bg)) 0, transparent 45%), var(--bg);
	-webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + .5%));
	mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + .5%));
	transition: --r 1.8s cubic-bezier(.65, 0, .25, 1) .3s, opacity 1s ease 1.4s, visibility 0s linear 2.4s;
}
.ea-gate-bloom.is-opening .ea-gate { --r: 160%; }
.ea-gate-bloom .ea-mono::before, .ea-gate-bloom .ea-mono::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 1px dashed var(--line); animation: eaSpin 40s linear infinite; }
.ea-gate-bloom .ea-mono::after { inset: -26%; border-style: solid; border-color: color-mix(in srgb, var(--accent) 18%, transparent); animation: eaBreath 5s ease-in-out infinite; }

/* ---------- Scroll progress + ambient ---------- */
.ea-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.ea-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.ea-ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

/* ---------- Entrance helpers ---------- */
.js .ea-in { opacity: 0; }
.is-open .ea-in { animation: eaUp 1.3s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.ea-name { display: block; white-space: nowrap; }
.js .ea-name .ch { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(6deg); filter: blur(8px); }
.is-open .ea-name .ch { animation: eaChar 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--sd, .3s) + var(--i) * 75ms); }

/* ---------- Hero ---------- */
.ea-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 14vh 24px 18vh; overflow: hidden; }
.ea-hero__wreath { position: absolute; inset: auto; width: min(112vw, 760px); height: auto; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .35; }
.ea-hero__media { position: absolute; inset: -12% 0 0; z-index: 0; will-change: transform; }
.ea-hero__media img { width: 100%; height: 112%; object-fit: cover; display: block; animation: eaKen 26s ease-in-out infinite alternate; }
.ea-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, .45) 0%, rgba(10, 8, 6, .22) 38%, rgba(10, 8, 6, .62) 100%); }
.ea-hero--photo { color: #fff; }
.ea-hero--photo .ea-hero__host, .ea-hero--photo .ea-hero__date span, .ea-hero--photo .ea-hero__loc { color: rgba(255, 255, 255, .85); }
.ea-hero--photo .ea-amp { color: #f3dfb8; }
.ea-hero__content { position: relative; z-index: 2; max-width: 900px; }
.ea-hero__host { font-size: .74rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.4em; }
.ea-hero__names { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(3.7rem, 14vw, 8.6rem); line-height: .98; }
.ea-t-noir .ea-hero__names { text-transform: uppercase; letter-spacing: .1em; font-size: clamp(2.5rem, 10vw, 6.2rem); line-height: 1.15; }
.ea-amp { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent); margin: .1em 0 .05em; }
.ea-hero__headline { font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-style: italic; margin: 1.6em auto 1.8em; max-width: 30em; }
.ea-hero__date { display: inline-flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.ea-hero__date span { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; padding: 10px 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; min-width: 7.5em; color: var(--muted); }
.ea-hero__date strong { font-weight: 300; font-size: clamp(2.8rem, 7vw, 3.8rem); line-height: 1; }
.ea-hero__loc { margin-top: 1.6em; font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.ea-scroll { position: absolute; left: 50%; bottom: 4vh; z-index: 2; width: 1px; height: 64px; background: linear-gradient(currentColor, transparent); opacity: .5; color: inherit; }
.ea-scroll span { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: eaScroll 2.4s ease-in-out infinite; }

/* ---------- Sections ---------- */
.ea-main { position: relative; z-index: 2; }
.ea-section { position: relative; padding: clamp(84px, 12vw, 150px) 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
.ea-section + .ea-section { padding-top: clamp(40px, 6vw, 80px); }

/* Reveal system */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1), clip-path 1.6s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="rise"] { transform: translateY(70px) scale(.97); }
.js [data-reveal="draw"], .js [data-reveal="words"], .js [data-reveal="stagger"], .js [data-reveal="wreath"] { opacity: 1; transform: none; }
.js [data-reveal="arch"] { opacity: 1; transform: none; clip-path: inset(100% -24px -24px -24px); }
.js [data-reveal="arch"].is-in { clip-path: inset(-24px -24px -24px -24px); }
.js [data-reveal="photo"] { opacity: 0; transform: none; clip-path: inset(14% 14% 14% 14%); transition-delay: calc(var(--i) * 140ms); }
.js [data-reveal="photo"].is-in { opacity: 1; clip-path: inset(0 0 0 0); }
.js [data-reveal="photo"] img { transform: scale(1.3); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); transition-delay: inherit; }
.js [data-reveal="photo"].is-in img { transform: scale(1); }
.js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 130ms); }
.js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
.ea-orn { width: min(240px, 70%); height: auto; display: block; margin: 0 auto; overflow: visible; }
.ea-orn path { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s ease .1s; }
html:not(.js) .ea-orn path, .is-in .ea-orn path { stroke-dashoffset: 0; }
.js [data-reveal="words"] .w { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(5px); transition: opacity .9s ease, transform .9s ease, filter .9s ease; transition-delay: calc(var(--i) * 32ms); }
.js [data-reveal="words"].is-in .w { opacity: 1; transform: none; filter: none; }

/* Countdown */
.ea-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; margin: 18px auto 0; }
.ea-count > div { padding: 6px 4px; position: relative; }
.ea-count > div + div::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 30%; width: 1px; background: var(--line); }
.ea-count b { display: block; font-weight: 300; font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.ea-count b.tick { animation: eaTick .6s ease; }
.ea-count span { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Welcome */
.ea-quote { margin: 36px auto; max-width: 780px; font-size: clamp(1.4rem, 3.2vw, 2.05rem); line-height: 1.55; font-style: italic; font-weight: 300; }

/* Story */
.ea-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 96px); align-items: center; text-align: left; }
.ea-story--solo { grid-template-columns: 1fr; text-align: center; max-width: 760px; }
.ea-arch { margin: 0; position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; overflow: hidden; outline: 1px solid var(--line); outline-offset: 14px; }
.ea-arch img { width: 100%; height: 118%; object-fit: cover; display: block; margin-top: -9%; }
.ea-prose { font-size: 1.12rem; color: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.ea-prose p:first-child::first-letter { font-family: var(--script); float: left; font-size: 4.2em; line-height: .8; padding: .08em .1em 0 0; color: var(--accent); }
.ea-t-noir .ea-prose p:first-child::first-letter { font-size: 3.4em; }

/* Timeline */
.ea-timeline { position: relative; max-width: 940px; margin: 46px auto 0; }
.ea-timeline__line { position: absolute; left: 50%; top: 10px; bottom: 60px; width: 1px; background: var(--line); }
.ea-timeline__line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.ea-event { position: relative; width: 50%; padding: 0 60px 60px 0; text-align: right; }
.ea-event[data-reveal="right"] { margin-left: 50%; padding: 0 0 60px 60px; text-align: left; }
.ea-event__dot { position: absolute; top: 4px; right: -27px; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); z-index: 1; transition: transform .8s cubic-bezier(.3, 1.6, .5, 1) .3s, background .5s; }
.ea-event[data-reveal="right"] .ea-event__dot { right: auto; left: -27px; }
.js .ea-event:not(.is-in) .ea-event__dot { transform: scale(0); }
.ea-event.is-in .ea-event__dot { background: var(--card); }
.ea-event__dot .eai-ico { width: 26px; height: 26px; }
.ea-event__card { background: var(--card); border: 1px solid var(--line); padding: 30px 32px 28px; box-shadow: 0 30px 50px -40px rgba(0, 0, 0, .45); }
.ea-event__time { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin: 0 0 .4em; }
.ea-event h3 { margin: 0 0 .35em; font-weight: 500; font-size: 1.7rem; line-height: 1.2; }
.ea-t-noir .ea-event h3 { font-family: var(--script); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: 1.45rem; }
.ea-event__venue { font-style: italic; font-size: 1.15rem; margin: 0; }
.ea-event__addr { color: var(--muted); font-size: .95rem; margin: 0 0 .6em; }
.ea-event__note { font-size: .98rem; margin: .4em 0 .6em; }
.ea-map { margin: 14px 0 6px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.ea-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.75) sepia(.2) contrast(.95); }
.ea-t-noir .ea-map iframe { filter: grayscale(1) invert(.92) contrast(.9); }
.ea-cal { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* Gallery */
.ea-gallery { columns: 3 220px; column-gap: 16px; margin-top: 36px; }
.ea-gallery__item { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--bg2); cursor: zoom-in; overflow: hidden; break-inside: avoid; }
.ea-gallery__item img { display: block; width: 100%; height: auto; }
.ea-gallery__item:hover img { transform: scale(1.04) !important; transition-duration: .8s !important; transition-delay: 0s !important; }

/* Details */
.ea-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.ea-card { background: var(--card); border: 1px solid var(--line); padding: 40px 32px 34px; }
.ea-card .eai-ico { width: 34px; height: 34px; color: var(--accent); }
.ea-card h3 { font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; margin: 14px 0 12px; }
.ea-faq { max-width: 760px; margin: 60px auto 0; text-align: left; }
.ea-faq details { border-bottom: 1px solid var(--line); }
.ea-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.25rem; position: relative; }
.ea-faq summary::-webkit-details-marker { display: none; }
.ea-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.6rem; font-weight: 300; transition: transform .4s; }
.ea-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ea-faq details > div { color: var(--muted); padding: 0 0 12px; animation: eaUp .6s ease both; }

/* RSVP */
.ea-rsvp-card { position: relative; max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); padding: clamp(40px, 7vw, 76px) clamp(22px, 6vw, 70px); outline: 1px solid var(--line); outline-offset: -14px; box-shadow: 0 50px 80px -60px rgba(0, 0, 0, .5); }
.ea-rsvp-card .ea-title { margin-bottom: .3em; }
.ea-rsvp { text-align: left; }
.ea-rsvp__greet { text-align: center; font-style: italic; font-size: 1.2rem; margin-bottom: 1.4em; }
.ea-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ea-input { position: relative; display: block; margin: 0 0 20px; }
.ea-input input, .ea-input textarea, .ea-input select {
	width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 24px 2px 9px;
	font: inherit; font-size: 1.08rem; color: inherit; outline: none; transition: border-color .3s; resize: vertical; -webkit-appearance: none; appearance: none;
}
.ea-input select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 14px) 60%, calc(100% - 9px) 60%; background-size: 5px 5px; background-repeat: no-repeat; }
.ea-input select option { color: #222; }
.ea-input > span { position: absolute; left: 2px; top: 22px; color: var(--muted); pointer-events: none; transition: all .28s ease; font-size: 1.02rem; }
.ea-input input:focus, .ea-input textarea:focus, .ea-input select:focus { border-color: var(--accent); }
.ea-input input:focus + span, .ea-input input:not(:placeholder-shown) + span,
.ea-input textarea:focus + span, .ea-input textarea:not(:placeholder-shown) + span,
.ea-input select + span { top: 0; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.ea-choice { border: 0; padding: 0; margin: 8px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ea-choice label { cursor: pointer; }
.ea-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ea-choice span { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 12px; border: 1px solid var(--line); text-align: center; transition: all .35s ease; height: 100%; }
.ea-choice b { font-weight: 500; font-size: 1.15rem; }
.ea-choice .eai-ico { width: 30px; height: 30px; color: var(--accent); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.ea-choice label:hover span { border-color: var(--accent); }
.ea-choice input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px var(--accent); }
.ea-choice input:checked + span .eai-ico { transform: scale(1.25); fill: color-mix(in srgb, var(--accent) 30%, transparent); }
.ea-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ea-yes { animation: eaUp .7s ease both; }
.ea-stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.ea-stepper > span { font-size: 1.08rem; }
.ea-stepper > div { display: flex; align-items: center; gap: 16px; }
.ea-stepper button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--ink); font-size: 1.3rem; cursor: pointer; transition: .3s; line-height: 1; }
.ea-stepper button:hover { background: var(--accent); color: var(--btn-ink); }
.ea-stepper button:disabled { opacity: .3; pointer-events: none; }
.ea-stepper output { font-size: 1.8rem; min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.ea-stepper small { width: 100%; color: var(--muted); font-size: .8rem; letter-spacing: .1em; }
.ea-attendee { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; animation: eaUp .5s ease both; }
.ea-attendee:only-child, .ea-attendee.no-meal { grid-template-columns: 1fr; }
.ea-attendees.has-meals .ea-attendee { grid-template-columns: 1fr 1fr; }
.ea-hp { position: absolute !important; left: -9999px; }
.ea-rsvp__msg { min-height: 1.4em; text-align: center; color: #b3261e; font-size: .98rem; margin: 6px 0 14px; }
.ea-rsvp button[type="submit"] { display: flex; margin: 0 auto; min-width: 240px; }
.ea-rsvp button[type="submit"][disabled] { opacity: .6; pointer-events: none; }
.ea-done { text-align: center; padding: 10px 0; animation: eaUp .8s ease both; }
.ea-done__icon { width: 86px; height: 86px; display: block; margin: 0 auto 10px; }
.ea-done__icon circle, .ea-done__icon path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: eaDraw 1.2s ease forwards; }
.ea-done__icon path { stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation-delay: .6s; }
.ea-done__title { font-family: var(--script); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 .2em; line-height: 1.2; }
.ea-t-noir .ea-done__title { text-transform: uppercase; letter-spacing: .08em; font-size: 2rem; }
.ea-done__cal { margin-top: 18px; }

/* Footer */
.ea-footer { padding-bottom: 120px; }
.ea-mono--foot { width: min(64vw, 260px); margin-bottom: 30px; }
.ea-mono--foot .ea-mono__ini { animation: none; }
.ea-footer__closing { font-style: italic; font-size: 1.25rem; max-width: 34em; margin: 0 auto 1em; }
.ea-footer__names { font-family: var(--script); font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.2; margin: 0; }
.ea-t-noir .ea-footer__names { text-transform: uppercase; letter-spacing: .1em; font-size: 1.9rem; }
.ea-footer__tag { margin-top: 1.4em; font-size: .8rem; letter-spacing: .3em; color: var(--accent); text-transform: uppercase; }

/* Music */
.ea-music { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--accent); background: var(--card); color: var(--accent); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .6s, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.is-open .ea-music { opacity: 1; transform: none; pointer-events: auto; }
.ea-music__disc { display: grid; place-items: center; }
.ea-music__disc .eai-ico { width: 22px; height: 22px; }
.ea-music.is-playing .ea-music__disc { animation: eaSpin 5s linear infinite; }
.ea-music__bars { position: absolute; bottom: 9px; display: flex; gap: 2px; height: 8px; align-items: flex-end; opacity: 0; transition: opacity .3s; }
.ea-music__bars i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; }
.ea-music.is-playing .ea-music__bars { opacity: 1; }
.ea-music.is-playing .ea-music__bars i { animation: eaBars .9s ease-in-out infinite alternate; }
.ea-music__bars i:nth-child(2) { animation-delay: .3s !important; } .ea-music__bars i:nth-child(3) { animation-delay: .6s !important; }
.ea-music.is-playing .ea-music__disc { margin-top: -6px; }

/* Lightbox */
.ea-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 6, 4, .92); display: grid; place-items: center; padding: 20px; animation: eaFadeIn .4s ease both; }
.ea-lightbox[hidden] { display: none; }
.ea-lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); animation: eaZoomIn .5s cubic-bezier(.2, .7, .2, 1) both; }
.ea-lightbox__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------- Keyframes ---------- */
@keyframes eaUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes eaFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes eaZoomIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes eaChar { to { opacity: 1; transform: none; filter: none; } }
@keyframes eaDraw { to { stroke-dashoffset: 0; } }
@keyframes eaLeaf { to { opacity: .82; } }
@keyframes eaKen { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes eaFloat { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-10px) rotate(.4deg); } }
@keyframes eaRing { 0% { opacity: .6; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes eaBlink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes eaTick { 0% { transform: translateY(-10px); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes eaSpin { to { transform: rotate(360deg); } }
@keyframes eaBreath { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes eaBars { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes eaScroll { 0% { top: 0; opacity: 0; } 30% { opacity: 1; } 100% { top: 60px; opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	body.ea { font-size: 18px; }
	.ea-story { grid-template-columns: 1fr; text-align: center; }
	.ea-arch { max-width: 320px; margin: 0 auto; }
	.ea-prose p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; font-family: inherit; }
	.ea-timeline__line { left: 26px; }
	.ea-event, .ea-event[data-reveal="right"] { width: 100%; margin-left: 0; padding: 0 0 44px 74px; text-align: left; }
	.ea-event__dot, .ea-event[data-reveal="right"] .ea-event__dot { left: 0; right: auto; width: 52px; height: 52px; }
	.js .ea-event[data-reveal] { transform: translateY(34px); }
	.js .ea-event[data-reveal].is-in { transform: none; }
	.ea-event__card { padding: 24px 22px; }
	.ea-row, .ea-attendees.has-meals .ea-attendee { grid-template-columns: 1fr; }
	.ea-choice span { padding: 20px 8px; }
	.ea-choice b { font-size: 1rem; }
	.ea-hero__date span { min-width: 0; font-size: .64rem; letter-spacing: .22em; }
	.ea-gallery { columns: 2; column-gap: 10px; }
	.ea-gallery__item { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.ea-ambient { display: none; }
}

/* ---------- Demo bar & embed modes ---------- */
.ea-demobar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(20, 18, 16, .88); color: #f4ede2; font: 500 .82rem/1.2 var(--serif); letter-spacing: .08em; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .8s ease 1s; white-space: nowrap; }
.is-open .ea-demobar { opacity: 1; pointer-events: auto; }
.ea-demobar a { color: #1b1814; background: #f3dfb8; text-decoration: none; padding: 9px 16px; border-radius: 999px; letter-spacing: .06em; }
.ea-demobar a:hover { background: #fff; }
.ea-mode-thumb .ea-progress, .ea-mode-thumb .ea-music, .ea-mode-thumb .ea-scroll { display: none !important; }
.ea-mode-thumb { overflow: hidden !important; }
.ea-mode-studio .ea-progress { display: none; }
@media (max-width: 760px) { .ea-music { bottom: 74px; } .ea-demobar { bottom: 14px; font-size: .74rem; } }
.ea-mode-studio .ea-in, .ea-mode-studio .ea-name .ch { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
