/* IPH contact form. Logical properties throughout so AR (RTL) and EN (LTR) share one stylesheet. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--gold) var(--ivory);
  --flow: 1;            /* +1 in LTR, -1 in RTL: used where motion must follow reading direction */
}
html[dir="rtl"] { --flow: -1; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--burgundy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.6; }

::selection { background: var(--gold-light); color: var(--burgundy); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ SHELL ============ */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 100dvh;
}

/* ============ STAGE ============ */
.stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  padding: clamp(28px, 4vw, 60px);
  color: var(--ivory);
  background: var(--burgundy-deep);
}
.stage__bg {
  position: absolute; inset: 0; z-index: -4;
  background:
    radial-gradient(120% 80% at 90% 6%, #7a2a49 0%, transparent 58%),
    linear-gradient(165deg, #561B2F 0%, #561B2F 38%, #3b1424 76%, #2A0F19 100%);
}
.stage__ribbon {
  position: absolute; z-index: -3;
  height: 112%; width: auto; max-width: none;
  top: -24%; right: -55%;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  translate: var(--px, 0px) var(--py, 0px);
  transform-origin: 70% 40%;
  animation: drift 42s var(--ease-in-out) infinite alternate;
  user-select: none; pointer-events: none;
}
.stage__pattern {
  position: absolute; inset: 0; z-index: -2;
  background: url("../assets/pattern.svg") 0 0 / 200px 200px;
  opacity: .2;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 38%, transparent 70%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 38%, transparent 70%);
  animation: patternIn 2.4s var(--ease-out) .5s both;
}
.stage__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(26, 7, 14, .6) 0%, rgba(26, 7, 14, .2) 38%, transparent 60%),
    linear-gradient(to bottom, rgba(26, 7, 14, .32) 0%, transparent 20%);
}

.stage__top { animation: rise 1s var(--ease-out) .1s both; }

/* Lockup: capsule mark + wordmark (wordmarks are masks so one asset takes any brand color) */
.lockup {
  --M: clamp(72px, 8.2vw, 112px);
  display: inline-flex; align-items: center;
  gap: calc(var(--M) * .24);
  color: var(--ivory);
  text-decoration: none;
}
.lockup:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 8px; border-radius: 12px; }
.lockup__mark { height: var(--M); width: auto; display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.lockup__word {
  display: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.lockup__word--ar {
  height: calc(var(--M) * .66); aspect-ratio: 119.6 / 87.6;
  -webkit-mask-image: url("../assets/logo/wordmark-ar.svg"); mask-image: url("../assets/logo/wordmark-ar.svg");
}
.lockup__word--en {
  height: calc(var(--M) * .5); aspect-ratio: 1189 / 636;
  -webkit-mask-image: url("../assets/logo/wordmark-en.png"); mask-image: url("../assets/logo/wordmark-en.png");
}
html[lang="ar"] .lockup__word--ar { display: block; }
html[lang="en"] .lockup__word--en { display: block; }

.stage__copy { max-width: 30rem; }
.stage__title {
  margin: 0 0 var(--s-4);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  line-height: 1.22;
  text-wrap: balance;
}
html[lang="en"] .stage__title { letter-spacing: -.02em; line-height: 1.08; }
.stage__title .w { display: inline-block; animation: rise 1.2s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * .1s); }
.stage__lede {
  margin: 0; max-width: 24rem;
  font-size: 1.0625rem; line-height: 1.8;
  color: color-mix(in srgb, var(--ivory) 82%, var(--burgundy-deep));
  animation: rise 1.2s var(--ease-out) .65s both;
}
.stage__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5);
  animation: rise 1.2s var(--ease-out) .85s both;
}
.stage__tagline, .stage__place { margin: 0; font-size: .9rem; color: var(--gold-light); }
.stage__tagline { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 500; }
.stage__tagline::before { content: ""; width: 36px; height: 1px; background: var(--gold-grad); }
.is-done .stage__tagline { visibility: hidden; }
.stage__place { color: color-mix(in srgb, var(--ivory) 72%, var(--burgundy-deep)); }

/* ============ SHEET ============ */
.sheet {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100dvh;
  padding: clamp(20px, 2.6vw, 36px) clamp(24px, 6vw, 88px) clamp(24px, 3vw, 40px);
  background: var(--ivory);
  overflow: clip;
}

.sheet__bar {
  position: relative;
  display: flex; align-items: center; gap: var(--s-4);
  padding-bottom: 18px;
  animation: fade .9s var(--ease-out) .2s both;
}
.sheet__bar::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold-light) 50%, var(--gold) 82%, transparent);
  opacity: .6;
}
.progress { display: flex; gap: 6px; width: 148px; margin: 0; padding: 0; list-style: none; }
.progress__seg {
  position: relative; flex: 1; height: 6px; overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--line-quiet);
}
.progress__fill {
  position: absolute; inset: 0;
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform .7s var(--ease-out), background-color .4s;
  background: var(--burgundy);
}
html[dir="rtl"] .progress__fill { --origin: right; }
.progress__seg.is-active .progress__fill { transform: scaleX(1); }
.progress__seg.is-done .progress__fill { transform: scaleX(1); background: var(--gold-grad); }
.progress__count { margin: 0; font-size: .875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress__count b { font-weight: 600; color: var(--ink); }

.lang {
  margin-inline-start: auto;
  display: inline-flex; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.lang__btn {
  min-width: 52px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink);
  font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.lang__btn:hover { background: var(--wash); }
.lang__btn[aria-pressed="true"] { background: var(--burgundy); color: var(--ivory); }
.lang__btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }

/* ============ FORM ============ */
.form {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-start;
  width: 100%; max-width: 31rem; margin-inline: auto;
  padding-block: clamp(28px, 10vh, 104px) var(--s-4);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), filter .35s var(--ease-out);
}
.form.is-leaving { opacity: 0; transform: scale(.97); filter: blur(5px); pointer-events: none; }

.step { animation: stepIn .75s var(--ease-out) both; --shift: calc(var(--flow) * 28px); }
.form[data-dir="back"] .step { --shift: calc(var(--flow) * -28px); }
.step.is-out { animation: none; opacity: 0; transform: translateX(calc(var(--shift) * -1)); transition: opacity .16s ease-in, transform .16s ease-in; }
.step__title {
  margin: 0 0 var(--s-2);
  font-size: clamp(1.75rem, 2.5vw, 2.3rem); font-weight: 600; line-height: 1.3;
  color: var(--ink); text-wrap: balance;
}
html[lang="en"] .step__title { letter-spacing: -.015em; }
.step__title:focus { outline: none; }
.step__hint { margin: 0 0 var(--s-6); color: var(--ink-soft); font-size: 1rem; max-width: 36ch; }

/* ---- fields ---- */
.field { margin-bottom: var(--s-5); }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.field__label { display: block; margin-bottom: 2px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.field__control {
  position: relative; display: block;
  border-radius: 4px 4px 0 0;
  transition: background-color .35s var(--ease-out);
}
.field__control:focus-within { background: var(--wash); }
.input {
  display: block; width: 100%;
  padding: 10px 2px 12px;
  border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink);
  font-size: 1.1875rem; line-height: 1.5;
  caret-color: var(--gold);
  outline: none;
  transition: border-color .3s;
}
.input::placeholder { color: color-mix(in srgb, var(--burgundy) 76%, var(--ivory)); opacity: 1; }
.input--tel { text-align: left; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.input--area { resize: none; min-height: 7.5rem; line-height: 1.75; overflow: hidden; }
.field__line {
  position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.field__control:focus-within .input, .dial:focus-within { border-bottom-color: var(--burgundy); }
.dial:focus-within { box-shadow: 0 2px 0 var(--burgundy); }
html[dir="rtl"] .field__line { transform-origin: right; }
.field__control--phone .field__line { transform-origin: left; }
.field__control:focus-within .field__line { transform: scaleX(1); }

.field[data-invalid] .input, .field[data-invalid] .dial { border-bottom-color: var(--danger); }
.field[data-invalid] .field__label { color: var(--danger); }
.field__error {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 8px 0 0; font-size: .875rem; line-height: 1.5; color: var(--danger);
  animation: errIn .45s var(--ease-out) both;
}
.field__error::before, .form__error::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm-.9 4h1.8l-.3 5H7.4l-.3-5Zm.9 8.2a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm-.9 4h1.8l-.3 5H7.4l-.3-5Zm.9 8.2a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form__error { display: flex; gap: 8px; margin: 0 0 var(--s-3); padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 9%, var(--ivory)); color: var(--danger); font-size: .9375rem; line-height: 1.5; }

.counter { font-size: .8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--burgundy); font-weight: 600; }

/* ---- phone ---- */
.field__control--phone { display: flex; align-items: flex-end; gap: 14px; }
.dial {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 92px; padding: 10px 2px 12px;
  border-bottom: 1.5px solid var(--line);
  font-size: 1.1875rem; line-height: 1.5; font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.dial__select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.dial__chev { color: var(--ink-soft); transition: transform .4s var(--ease-out); }
.dial:focus-within .dial__chev { transform: translateY(2px); color: var(--ink); }
.field__control--phone .input { flex: 1; min-width: 0; }
.field__control--phone .input, .field__control--phone .dial { align-self: stretch; }

/* ---- file ---- */
.file__input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.drop {
  position: relative; isolation: isolate;
  display: grid; justify-items: center; align-content: center; gap: 6px;
  min-height: 12rem; padding: var(--s-5) clamp(44px, 14%, 72px);
  border-radius: 999px;
  background: var(--wash); color: var(--ink);
  text-align: center; cursor: pointer;
  transition: background-color .4s var(--ease-out), transform .5s var(--ease-out);
}
.drop__ring {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  border: 1.5px solid var(--line);
  transition: border-color .4s, box-shadow .5s var(--ease-out);
}
.drop__icon { color: var(--burgundy); transition: transform .6s var(--ease-out); }
.drop__main { font-weight: 500; font-size: 1.0625rem; line-height: 1.5; text-wrap: balance; }
.drop__sub { font-size: .8125rem; line-height: 1.5; color: var(--ink-soft); text-wrap: balance; }
.drop:hover .drop__icon { transform: translateY(-4px); }
.drop.is-over { background: color-mix(in srgb, var(--sand) 80%, var(--ivory)); transform: scale(1.015); }
.drop.is-over .drop__ring { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.drop.is-over .drop__icon { transform: translateY(-8px); }
.file__input:focus-visible + .drop .drop__ring { border-color: var(--burgundy); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--burgundy); }
.field[data-invalid] .drop__ring { border-color: var(--danger); }

.chip-file {
  display: flex; align-items: center; gap: 12px;
  padding-block: 10px; padding-inline: 20px 10px;
  border-radius: var(--r-pill);
  background: var(--wash); border: 1px solid var(--line-quiet);
  animation: chipIn .6s var(--ease-out) both;
}
.chip-file__icon { flex: none; color: var(--burgundy); }
.chip-file__meta { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.chip-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.chip-file__size { font-size: .8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip-file__remove {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .3s, transform .4s var(--ease-out);
}
.chip-file__remove:hover { background: var(--sand); transform: rotate(90deg); }
.chip-file__remove:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 1px; }

/* ---- review ---- */
.review { margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid var(--line-quiet); }
.review__row {
  display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: var(--s-3);
  padding: 12px 0; border-bottom: 1px solid var(--line-quiet);
}
.review dt { font-size: .8125rem; color: var(--ink-soft); }
.review__phone { text-align: left; }
html[dir="rtl"] .review__phone { text-align: right; }
.review dd { margin: 0; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.review__edit {
  min-height: 40px; padding: 0 8px; border: 0; background: transparent;
  color: var(--ink); font-size: .875rem; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--line); cursor: pointer;
}
.review__edit:hover { text-decoration-color: var(--burgundy); }
.review__edit:focus-visible { outline: 2px solid var(--burgundy); border-radius: 6px; }

/* ---- actions ---- */
.actions {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  margin-top: var(--s-5);
}
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border: 0; border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .35s;
}
.btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.btn--primary {
  overflow: hidden; margin-inline-start: auto;
  padding: 0 38px;
  background: var(--burgundy); color: var(--ivory);
  font-size: 1.0625rem; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 242, 222, .16), 0 14px 26px -14px rgba(86, 27, 47, .7);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(235, 210, 180, .34) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 1s var(--ease-out);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--burgundy-ink); box-shadow: inset 0 1px 0 rgba(255, 242, 222, .2), 0 18px 30px -14px rgba(86, 27, 47, .75); }
.btn--primary:hover::before { transform: translateX(130%); }
.btn--primary:active { transform: translateY(0) scale(.985); transition-duration: .12s; }
.btn__arrow { transition: transform .45s var(--ease-out); }
html[dir="rtl"] .btn--primary:hover .btn__arrow { transform: translateX(-5px); }
html[dir="ltr"] .btn__arrow { transform: scaleX(-1); }
html[dir="ltr"] .btn--primary:hover .btn__arrow { transform: translateX(5px) scaleX(-1); }
.btn--primary.is-loading { pointer-events: none; }
.btn--primary.is-loading .btn__arrow { display: none; }
.btn--primary.is-loading::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 242, 222, .3); border-top-color: var(--ivory);
  animation: spin .8s linear infinite; order: -1;
}
.btn--primary.is-shake { animation: shake .5s var(--ease-out); }

.btn--text { padding: 0 14px; background: transparent; color: var(--ink); font-size: 1rem; font-weight: 500; }
.btn--text:hover { background: var(--wash); }
.btn--text .btn__arrow--back { transform: none; }
html[dir="ltr"] .btn--text .btn__arrow--back { transform: scaleX(-1); }
.btn--ghost {
  padding: 0 30px; background: transparent; color: var(--ivory);
  border: 1px solid rgba(235, 210, 180, .6); font-size: 1rem; font-weight: 500;
}
.btn--ghost:hover { background: rgba(255, 242, 222, .1); border-color: var(--gold-light); }
.btn--ghost:focus-visible { outline-color: var(--gold-light); }

/* ============ DONE / SEAL ============ */
.done { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; color: var(--ivory); overflow: hidden; }
.done__flood {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 30%, #6a2340 0%, transparent 70%),
    var(--burgundy);
  clip-path: circle(0% at 50% 36%);
  transition: clip-path 1.2s var(--ease-out);
}
.done.is-on .done__flood { clip-path: circle(150% at 50% 36%); }
.done__inner {
  position: relative; display: grid; justify-items: center; gap: var(--s-4);
  max-width: 26rem; padding: var(--s-6); text-align: center;
}
.seal { position: relative; width: 112px; height: 161px; margin-bottom: var(--s-5); display: grid; place-items: center; }
.seal__ring { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); overflow: visible; }
.seal__ring rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.seal__mark { height: 112px; width: auto; opacity: 0; scale: .8; filter: blur(8px); }
.done.is-on .seal__ring rect { animation: draw 1.5s var(--ease-in-out) .55s forwards; }
.done.is-on .seal__ring { animation: sealGlow 1.4s var(--ease-out) 1.7s both; }
.done.is-on .seal__mark { animation: markIn 1.1s var(--ease-out) .75s forwards; }
.done__title, .done__text, .done .btn { opacity: 0; }
.done.is-on .done__title { animation: rise 1s var(--ease-out) 1.5s forwards; }
.done.is-on .done__text { animation: rise 1s var(--ease-out) 1.65s forwards; }
.done.is-on .btn { animation: rise 1s var(--ease-out) 1.85s forwards; }
.done__title { margin: 0; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1.3; }
html[lang="en"] .done__title { letter-spacing: -.02em; }
.done__title:focus { outline: none; }
.done__demo { margin: -4px 0 var(--s-3); padding: 6px 14px; border: 1px solid rgba(235, 210, 180, .45); border-radius: var(--r-pill); color: var(--gold-light); font-size: .8125rem; opacity: 0; }
.done.is-on .done__demo { animation: rise 1s var(--ease-out) 1.7s forwards; }
.done__text { margin: 0 0 var(--s-4); font-size: 1.0625rem; line-height: 1.8; text-wrap: balance; color: color-mix(in srgb, var(--ivory) 85%, var(--burgundy)); }

/* ============ KEYFRAMES ============ */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); } to { transform: translate3d(-3%, 2.5%, 0) scale(1.06) rotate(-1.2deg); } }
@keyframes patternIn { from { opacity: 0; } to { opacity: .2; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(var(--shift)); } to { opacity: 1; transform: none; } }
@keyframes errIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes chipIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes markIn { to { opacity: 1; scale: 1; filter: blur(0); } }
@keyframes sealGlow { 0% { filter: drop-shadow(0 0 0 rgba(199, 150, 104, 0)); } 40% { filter: drop-shadow(0 0 22px rgba(199, 150, 104, .55)); } 100% { filter: drop-shadow(0 0 10px rgba(199, 150, 104, .22)); } }

/* ============ RESPONSIVE ============ */

/* ---- contact details ---- */
.contact {
  width: 100%; max-width: 31rem; margin: var(--s-6) auto 0;
  padding-top: var(--s-5); border-top: 1px solid var(--line-quiet);
}
.contact__title { margin: 0 0 var(--s-3); font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); }
.contact__item { display: flex; flex-direction: column; gap: var(--s-1); }
.contact__label { font-size: .75rem; color: var(--ink-soft); }
.contact__link {
  color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px;
  unicode-bidi: isolate; transition: text-decoration-color .2s var(--ease-out);
}
.contact__link:hover { text-decoration-color: var(--burgundy); }
.contact__link:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 4px; }

/* ---- contact details, desktop: lives in the stage so the page never scrolls ---- */
.stage__contact { flex: 1 0 100%; padding-bottom: var(--s-4); border-bottom: 1px solid color-mix(in srgb, var(--gold-light) 28%, transparent); }
.stage__contact-title { margin: 0 0 var(--s-2); font-size: .8125rem; font-weight: 600; color: var(--gold-light); }
.stage__contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.stage__contact-item { display: flex; flex-direction: column; gap: 2px; }
.stage__contact-label { font-size: .75rem; color: color-mix(in srgb, var(--ivory) 72%, var(--burgundy-deep)); }
.stage__contact-link {
  color: var(--ivory); font-size: .9375rem; font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--gold-mid); text-decoration-thickness: 1px; text-underline-offset: 5px;
  unicode-bidi: isolate; transition: text-decoration-color .2s var(--ease-out);
}
.stage__contact-link:hover { text-decoration-color: var(--ivory); }
.stage__contact-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
@media (min-width: 860px) {
  .contact { display: none; }
}
@media (min-width: 860px) and (max-height: 760px) {
  .stage__contact { padding-bottom: var(--s-3); }
  .stage__contact-title { margin-bottom: var(--s-1); }
}

@media (max-width: 859px) {
  .shell { display: flex; flex-direction: column; min-height: 100dvh; }
  .stage {
    position: relative; height: auto; min-height: 0;
    gap: var(--s-5);
    padding: 22px 22px 64px;
  }
  .stage__ribbon { width: 190%; height: auto; right: -60%; top: -45%; }
  .lockup { --M: 62px; }
  .stage__title { margin: 0; font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .stage__lede, .stage__foot { display: none; }
  .stage__copy { max-width: none; }

  .sheet {
    flex: 1;
    margin-top: -32px;
    padding: 20px 22px 0;
    border-radius: 30px 30px 0 0;
    z-index: 2;
  }
  .progress { width: 112px; }
  .progress__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .form { max-width: 34rem; padding-block: var(--s-5) 0; }
  .step__hint { margin-bottom: var(--s-5); }
  .actions {
    position: sticky; bottom: 0; z-index: 3;
    margin: auto 0 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--ivory) 78%, rgba(255, 242, 222, 0));
  }
  .input { font-size: 1.0625rem; }
  .done { border-radius: inherit; }
}
@media (max-width: 380px) {
  .btn--primary { padding: 0 28px; }
  .lang__btn { min-width: 44px; padding: 0 10px; }
}
@media (min-width: 860px) and (max-height: 760px) {
  .step__hint { margin-bottom: var(--s-4); }
  .field { margin-bottom: var(--s-4); }
  .stage__title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .stage__ribbon { animation: none; }
  .done__flood { clip-path: circle(150% at 50% 36%); }
}
