/* The contact page: a map sheet rising out of the night head (the contact lines as a title block on white, the atlas drawn
   close around Riyadh on the night), then the form on the paper. */
.cd { position: relative; z-index: 1; background: var(--paper); color: var(--navy); padding-bottom: 64px; }
.cd__sheet {
	position: relative; display: grid; margin-top: -28px;
	border-radius: var(--r-lg); background: var(--surface);
	border: 1px solid var(--hair-paper); box-shadow: var(--sh-lg);
}

/* the title block */
.cd__block { padding: 28px 22px 30px; }
.cd__title { font-size: var(--fs-title); color: var(--navy); }
.cd__intro { margin-top: 12px; max-width: 50ch; color: var(--steel); line-height: var(--lh-text); }
.cd__lines { display: grid; margin-top: 24px; border-top: 1px solid var(--hair-paper); }
.cd__line {
	display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center;
	padding-block: 16px; border-bottom: 1px solid var(--hair-paper);
}
.cd__icon {
	grid-row: 1 / span 2; width: 40px; height: 40px; padding: 9px; border-radius: var(--r-sm);
	color: var(--gold-soft); background: var(--night);
}
.cd__label { grid-column: 2; font-size: var(--fs-small); color: var(--steel); line-height: 1.5; }
.cd__value { grid-column: 2; color: var(--navy); font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
a.cd__value { text-decoration: none; transition: color var(--t-answer) var(--ease-out); }
a.cd__value:hover, a.cd__value:focus-visible { color: var(--gold-ink); text-decoration: underline; text-decoration-color: var(--gold); }
.cd__value [dir="ltr"] { unicode-bidi: isolate; font-variant-numeric: tabular-nums lining-nums; }
[dir="rtl"] .cd__value [dir="ltr"] { display: inline-block; }
.cd__line--phone .cd__value, .cd__line--whatsapp .cd__value { font: 700 clamp(1.25rem, 1.05rem + .5vw, 1.5rem) / 1.35 var(--display); white-space: nowrap; }
.cd__line--email .cd__value { font-size: 1.0625rem; }
.cd__follow { margin-top: 22px; }
.cd__social { margin-top: 10px; }
.cd__social a { color: var(--navy); border-color: var(--hair-paper); background: var(--paper); }
.cd__social a:hover, .cd__social a:focus-visible { color: var(--night); background: var(--gold); border-color: var(--gold); }

/* the map */
.cd__map {
	position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3.4;
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	background: radial-gradient(60% 60% at 52% 52%, color-mix(in srgb, var(--navy) 85%, transparent), transparent 80%), var(--night);
}
.cd__map::after { /* the sheet's grain and the frame's inner hairline */
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 22%, transparent), inset 0 0 80px color-mix(in srgb, var(--deep) 70%, transparent);
}
.cd__svg { width: 100%; height: 100%; direction: ltr; }
.cd__grat { fill: none; stroke: color-mix(in srgb, var(--gold-soft) 12%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; }
.cd__land { fill: var(--land); fill-opacity: .72; stroke: color-mix(in srgb, var(--mist) 45%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.cd__span { fill: none; stroke: var(--gold); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .8; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cd__dot { fill: var(--chalk); }
.cd__place { fill: var(--mist); font: 500 22px var(--text); paint-order: stroke; stroke: var(--night); stroke-width: 6px; stroke-linejoin: round; }
.cd__city { fill: var(--gold-soft); font: 800 38px var(--display); paint-order: stroke; stroke: var(--night); stroke-width: 8px; stroke-linejoin: round; }
.cd__orbit { fill: none; stroke: color-mix(in srgb, var(--gold-soft) 34%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 3 6; }
.cd__orbit--2 { stroke: color-mix(in srgb, var(--gold-soft) 52%, transparent); }
.cd__ring { fill: color-mix(in srgb, var(--night) 60%, transparent); stroke: var(--gold); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.cd__pulse { fill: none; stroke: var(--gold-soft); stroke-width: 1.5px; vector-effect: non-scaling-stroke; opacity: 0; }
.cd__core { fill: var(--gold); }
.cd__scale path { fill: none; stroke: var(--chalk); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.cd__scale text { fill: var(--chalk); font: 500 22px var(--text); }
.cd__cap { position: absolute; z-index: 2; inset-inline-end: 16px; top: 16px; }
.cd__maplink { gap: 8px; padding-inline: 16px 18px; font-size: .9375rem; }
.cd__pin { width: 18px; height: 18px; }

/* the form */
.cd__write { display: grid; gap: 24px; padding-top: 56px; }
.cd__write-deck { width: min(220px, 60%); height: 34px; overflow: visible; margin-bottom: 14px; }
.cd__write-deck path { fill: none; stroke: var(--gold); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cd__write-deck .cd__write-pier { stroke: color-mix(in srgb, var(--gold) 55%, transparent); stroke-width: 1px; }
[dir="rtl"] .cd__write-deck { transform: scaleX(-1); }
.cd__write-title { font-size: var(--fs-title); color: var(--navy); }
.cd__quote { margin-top: 16px; }
.cd__form-card {
	scroll-margin-top: 24px; padding: 24px 20px 28px; border-radius: var(--r-lg);
	background: var(--surface); border: 1px solid var(--hair-paper); box-shadow: var(--sh-md);
}
.cd__form { gap: 0; }
.cd__grid { display: grid; gap: 18px; }
.cd .field label { color: var(--navy); }
.cd__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 24px; }
.cd__send .btn { min-width: 180px; }

@media (min-width: 560px) {
	.cd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cd__grid .field--wide { grid-column: 1 / -1; }
	.cd__map { aspect-ratio: 16 / 10; }
}
@media (min-width: 768px) {
	.cd { padding-bottom: var(--sp-2xl); }
	.cd__sheet { margin-top: -56px; }
	.cd__block { padding: 40px 40px 40px; }
	.cd__lines { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
	.cd__line--email, .cd__line--address, .cd__line--hours { grid-column: 1 / -1; }
	.cd__write { padding-top: 80px; }
	.cd__form-card { padding: 36px 40px 40px; }
}
@media (min-width: 1100px) {
	.cd__sheet { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); margin-top: -96px; }
	.cd__block { padding: 48px 52px 52px; }
	.cd__map { aspect-ratio: auto; min-height: 100%; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
	[dir="rtl"] .cd__map { border-radius: var(--r-lg) 0 0 var(--r-lg); }
	.cd__cap { inset-inline-end: 24px; top: 24px; }
	.cd__write { grid-template-columns: minmax(0, 4fr) minmax(0, 7.4fr); column-gap: 64px; align-items: start; padding-top: var(--sp-xl); }
	.cd__write-head { position: sticky; top: 32px; padding-top: 12px; }
	.cd__form-card { padding: 44px 48px 48px; }
}

/* arrival: the sheet rises with the head; the spans leave Riyadh in turn; the ring pulses once */
@media (prefers-reduced-motion: no-preference) {
	.js .cd__sheet { animation: cd-rise .8s var(--ease-in) .2s both; }
	.js .cd__span { animation: cd-draw .8s var(--ease-in) both; animation-delay: calc(.55s + var(--i) * 40ms); }
	.js .cd__dot, .js .cd__place { animation: cd-fade .5s var(--ease-in) .9s both; }
	.js .cd__ring { transform-box: fill-box; transform-origin: center; animation: cd-ring .7s var(--ease-in) .45s both; }
	.js .cd__pulse { transform-box: fill-box; transform-origin: center; animation: cd-pulse 1.6s var(--ease-in) 1.1s 2 both; }
	html.js .cd__write:not(.is-in) .cd__write-deck { clip-path: inset(-4px 100% -4px 0); }
	html.js .cd__write .cd__write-deck { clip-path: inset(-4px 0 -4px 0); transition: clip-path .85s var(--ease-in) .08s; }
}
@keyframes cd-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes cd-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cd-fade { from { opacity: 0; } }
@keyframes cd-ring { from { opacity: 0; transform: scale(.4); } }
@keyframes cd-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
