/* The Bridal Edit: coming-soon page. Standalone, loads only fonts.css. */

:root {
	--night: #1D1121;
	--aubergine: #2B1A2E;
	--plum: #4A3550;
	--ivory: #F6F1E7;
	--sand: #E9D7B4;
	--gold: #C9A66B;
	--gold-deep: #9C7A45;
	--emerald: #1F4A3F;
	--emerald-line: #3E6A5E;
	--ink-soft: rgba(246, 241, 231, .78);
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--arabic: "Amiri", "Cormorant Garamond", serif;
	--gutter: clamp(16px, 4vw, 56px);
	--ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--aubergine);
	color: var(--ivory);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 78% 40%, #3A2340 0%, var(--aubergine) 46%, var(--night) 100%); }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Top bar */
.soon-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter) 0; position: relative; z-index: 3; }
.soon-brand { display: flex; align-items: center; gap: 12px; margin: 0; }
.soon-brand__mark { width: 26px; height: auto; color: var(--gold); }
.soon-brand__mark .tbe-mark__star { color: var(--sand); }
.soon-brand__name { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; white-space: nowrap; }
.soon-brand__name span { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .4em; margin-right: .3em; vertical-align: .35em; }
.soon-brand__name em { color: var(--sand); font-weight: 400; }
.soon-top__tools { display: flex; align-items: center; gap: 8px; }
.soon-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(233, 215, 180, .3); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--sand); }
.soon-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.soon-icon-btn[aria-pressed="true"] .off, .soon-icon-btn[aria-pressed="false"] .on { display: none; }
.soon-link-btn { background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--sand); font-size: 15px; text-decoration: underline; text-decoration-color: rgba(233, 215, 180, .45); text-underline-offset: 4px; }
.soon-link-btn:hover { color: var(--ivory); text-decoration-color: currentColor; }

/* Layout */
.soon-main {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(24px, 5vw, 96px);
	padding: clamp(16px, 3vw, 32px) var(--gutter) 24px;
	max-width: 1360px;
	width: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}
.soon-copy { max-width: 560px; }

.soon-bismillah { font-family: var(--arabic); font-size: 26px; line-height: 1.6; color: var(--gold); margin: 0 0 18px; text-align: left; }
.soon-title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5.8vw, 86px); line-height: 1; letter-spacing: -.01em; margin: 0 0 24px; text-wrap: balance; }
.soon-text { color: var(--ink-soft); font-size: 18px; max-width: 32em; margin: 0 0 36px; }
.soon-how { border-left: 1px solid rgba(201, 166, 107, .55); padding-left: 20px; }
.soon-how__lead { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.25; color: var(--sand); margin: 0 0 6px; }
.soon-how__small { margin: 0; font-size: 15px; color: rgba(246, 241, 231, .66); }

/* Stage */
.soon-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.soon-hud { display: flex; align-items: flex-end; justify-content: space-between; width: min(100%, 470px); margin-bottom: 10px; }
.soon-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; counter-reset: step; }
.soon-steps li { counter-increment: step; font-size: 13px; color: rgba(246, 241, 231, .5); padding-top: 9px; position: relative; min-width: 64px; transition: color .4s; }
.soon-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(233, 215, 180, .18); }
.soon-steps li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; background: var(--gold); width: calc(var(--p, 0) * 100%); transition: width .25s var(--ease); }
.soon-steps li.is-on { color: var(--sand); }
.soon-steps li.is-done { color: var(--ivory); }
.soon-clock { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--ivory); }
.soon-clock small { font-family: var(--sans); font-size: 14px; color: var(--sand); margin-left: 3px; }

.soon-frame { position: relative; width: min(100%, 470px); }
.soon-svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); min-height: 380px; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; overflow: visible; -webkit-tap-highlight-color: transparent; }
.soon-svg:active { cursor: grabbing; }
.soon-svg:focus-visible { outline: none; }
.soon-svg:focus-visible .soon-arch { stroke: var(--sand); }

.soon-arch { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.soon-arch--inner { stroke-width: 1; opacity: .6; }
.soon-floor { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; }
.soon-star { fill: var(--sand); transform-origin: 216px 40px; }
.soon-hanger { fill: none; stroke: #BDB3A4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.soon-body { fill: url(#soon-silk); }
.soon-sleeve { fill: #EDE2D0; }
.soon-fold { fill: none; stroke: #DDCDB3; stroke-width: 1.2; stroke-linecap: round; opacity: .8; }
.soon-neck { fill: none; stroke: var(--gold-deep); stroke-width: 1.2; }
.soon-embroidery { opacity: 0; transition: opacity 1.4s var(--ease); }
.soon-light { opacity: .25; transition: opacity 1.6s var(--ease); }
.soon-dust circle { animation: soon-twinkle 4s ease-in-out infinite; }
.soon-dust circle:nth-child(2n) { animation-delay: -1.3s; animation-duration: 5.2s; }
.soon-dust circle:nth-child(3n) { animation-delay: -2.4s; animation-duration: 3.6s; }
@keyframes soon-twinkle { 50% { opacity: .15; } }

.soon-guide { fill: var(--gold-deep); opacity: .75; transition: opacity .3s, r .3s; }
.soon-guide.is-done { opacity: 0; }
.soon-guide.is-next { fill: var(--gold-deep); opacity: 1; }
.soon-guide-ring { fill: none; stroke: var(--gold-deep); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: soon-ring 1.4s var(--ease) infinite; }
@keyframes soon-ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.soon-thread { fill: none; stroke: #B48A45; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 7 5; }
.soon-thread--done { stroke: #A67C38; filter: drop-shadow(0 0 2px rgba(233, 196, 120, .8)); }
.soon-loose { fill: none; stroke: #D8B878; stroke-width: 1.1; stroke-linecap: round; opacity: .9; }
.soon-spark { fill: #F3D9A0; }

.soon-needle { pointer-events: none; transition: opacity .3s; }
.soon-needle__body, .soon-needle__eye { transform: scale(1.25); }
.soon-needle__body { fill: #E6E1D8; stroke: #8E877C; stroke-width: .7; }
.soon-needle__eye { fill: #2B1A2E; }
.soon-needle__sway { transform-box: view-box; transform-origin: 0 0; }
.soon-needle.is-idle .soon-needle__sway { animation: soon-sway 2.4s ease-in-out infinite; }
@keyframes soon-sway { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-4px); } }

.soon-progress { margin: 10px 0 0; text-align: center; font-size: 14px; color: rgba(246, 241, 231, .62); font-variant-numeric: tabular-nums; }
.soon-stage-name { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%); margin: 0; padding: 8px 22px 10px; border-radius: 999px; background: rgba(29, 17, 33, .82); border: 1px solid rgba(201, 166, 107, .45); white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; color: var(--ivory); opacity: 0; pointer-events: none; }
.soon-stage-name.is-show { animation: soon-title 2s var(--ease) forwards; }
@keyframes soon-title { 0% { opacity: 0; transform: translate(-50%, -30%); } 18%, 70% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -64%); } }
.soon-slip { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(29, 17, 33, .86); border: 1px solid rgba(201, 166, 107, .5); color: var(--sand); font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; }
.soon-slip.is-show { animation: soon-slip 1.4s var(--ease); }
@keyframes soon-slip { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.soon-frame.is-shake { animation: soon-shake .4s; }
@keyframes soon-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* Finished: the arch lights up */
.is-finished .soon-light { opacity: 1; }
.is-finished .soon-embroidery { opacity: .42; }
.is-finished .soon-star { animation: soon-star 1.6s var(--ease); }
@keyframes soon-star { 40% { transform: scale(1.9) rotate(45deg); } 100% { transform: scale(1) rotate(90deg); } }

/* Page-load: draw the arch, then bring in the dress */
.js .soon-arch, .js .soon-floor { stroke-dashoffset: 1; animation: soon-draw 2.2s var(--ease) .2s forwards; }
.js .soon-arch--inner { animation-delay: .5s; }
.js .soon-floor { animation-duration: 1.2s; animation-delay: 1.2s; }
.js .soon-dress { opacity: 0; transform: translateY(14px); animation: soon-in 1.2s var(--ease) 1.3s forwards; }
.js .soon-star { opacity: 0; animation: soon-pop .9s var(--ease) 1.9s forwards; }
.js .soon-intro > * { opacity: 0; animation: soon-rise 1s var(--ease) forwards; }
.js .soon-intro > :nth-child(1) { animation-delay: .3s; }
.js .soon-intro > :nth-child(2) { animation-delay: .5s; }
.js .soon-intro > :nth-child(3) { animation-delay: .7s; }
.js .soon-intro > :nth-child(4) { animation-delay: 2.1s; }
.js [data-guides], .js .soon-needle, .js .soon-hud { opacity: 0; animation: soon-fade .8s ease 2.2s forwards; }
@keyframes soon-draw { to { stroke-dashoffset: 0; } }
@keyframes soon-in { to { opacity: 1; transform: none; } }
@keyframes soon-pop { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes soon-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes soon-fade { to { opacity: 1; } }

/* Result */
.soon-result { animation: soon-rise .8s var(--ease); }
.soon-result__time { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 6vw, 84px); line-height: 1; margin: 0 0 10px; font-variant-numeric: lining-nums; }
.soon-result__rank { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--sand); margin: 0 0 30px; }
.soon-join__title { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; margin: 0 0 18px; max-width: 24em; }
.soon-join__title:focus { outline: none; }
.soon-join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.soon-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.soon-field label { font-size: 14px; color: var(--sand); }
.soon-field input { width: 100%; min-height: 50px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(233, 215, 180, .4); background: rgba(246, 241, 231, .06); color: var(--ivory); font-size: 16px; }
.soon-field input::placeholder { color: rgba(246, 241, 231, .38); }
.soon-field input:focus { outline: none; border-color: var(--gold); background: rgba(246, 241, 231, .1); box-shadow: 0 0 0 3px rgba(201, 166, 107, .25); }
.soon-chips { border: 0; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soon-chips legend { font-size: 14px; color: var(--sand); margin-bottom: 8px; padding: 0; }
.soon-chip input { position: absolute; opacity: 0; pointer-events: none; }
.soon-chip span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(233, 215, 180, .4); font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.soon-chip input:checked + span { background: var(--sand); border-color: var(--sand); color: var(--aubergine); }
.soon-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.soon-hp { position: absolute; left: -9999px; }
.soon-join__error { margin: 14px 0 0; color: #F3C2B8; font-size: 15px; }
.soon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.soon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border-radius: 999px; border: 0; background: var(--sand); color: var(--aubergine); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.soon-btn:hover { background: var(--ivory); }
.soon-btn .tbe-icon { width: 18px; height: 18px; }
.soon-btn:active { transform: scale(.98); }
.soon-btn[disabled] { opacity: .6; cursor: progress; }

.soon-ticket {
	position: relative;
	margin-top: 4px;
	padding: 22px 26px;
	border-radius: 14px;
	background:
		radial-gradient(circle at 0 50%, transparent 11px, var(--emerald) 12px) left / 51% 100% no-repeat,
		radial-gradient(circle at 100% 50%, transparent 11px, var(--emerald) 12px) right / 51% 100% no-repeat;
	max-width: 440px;
	animation: soon-ticket .9s var(--ease);
}
.soon-ticket::before { content: ""; position: absolute; inset: 8px 22px; border: 1px dashed var(--emerald-line); border-radius: 8px; pointer-events: none; }
@keyframes soon-ticket { from { opacity: 0; transform: translateY(16px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.soon-ticket__for { margin: 0; font-size: 15px; color: var(--sand); position: relative; }
.soon-ticket__code { margin: 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.soon-ticket__code span { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.1; letter-spacing: .08em; color: var(--ivory); }
.soon-ticket__note { margin: 0; font-size: 13px; color: rgba(246, 241, 231, .7); position: relative; }

/* Password sheet */
.soon-sheet { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(20, 10, 23, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: soon-fade .3s ease; }
.soon-sheet__card { width: min(100%, 420px); padding: 32px; border-radius: 22px; background: var(--aubergine); border: 1px solid rgba(201, 166, 107, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: soon-rise .4s var(--ease); }
.soon-sheet__title { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; margin: 0 0 18px; }

/* Footer */
.soon-foot { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 8px var(--gutter) 22px; font-size: 15px; position: relative; z-index: 2; }
.soon-foot a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-soft); }
.soon-foot a:hover { color: var(--ivory); }
.soon-foot .tbe-icon { width: 18px; height: 18px; color: var(--gold); }

.soon-petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Tablet and phone */
@media (max-width: 900px) {
	.soon-main { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
	.soon-copy { max-width: none; }
	.soon-svg { max-height: none; min-height: 0; }
	.soon-text { margin-bottom: 0; }
	.soon-how { margin-top: 24px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.soon-top { padding-top: 16px; }
	.soon-brand__name { font-size: 21px; }
	.soon-link-btn { font-size: 14px; }
	.soon-top .soon-link-btn { max-width: 9.5em; text-align: right; line-height: 1.3; }
	.soon-bismillah { font-size: 22px; margin-bottom: 10px; }
	.soon-title { font-size: clamp(38px, 11vw, 52px); margin-bottom: 16px; }
	.soon-text { font-size: 16px; }
	.soon-join__grid { grid-template-columns: 1fr; }
	.soon-clock { font-size: 32px; }
	.soon-steps li { min-width: 52px; }
	.soon-ticket__code span { font-size: 30px; }
	.soon-actions .soon-btn { width: 100%; letter-spacing: .14em; }
	.soon-frame, .soon-hud { width: min(100%, 84vw); }
	.soon-sheet__card { padding: 24px; }
}

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