/* AURA landing page.
   Palette: AURA brand guide p.29. Form components: ivory and gold UI (System/Prompts/Design/ivory-gold-ui).
   Direction: gpt-taste, cinematic centre hero over the scroll-world engine. Use variables, never raw hex below :root. */
:root {
  --ivory: #F4F0E9;
  --card: #FBF9F5;
  --white: #FFFFFF;
  --head: #F1EADD;
  --line: #E3D9C9;
  --hover: #FBF5EA;
  --selbg: #F6ECD9;
  --ink: #2F2925;
  --brown: #51473F;
  --mut: #6F655C;
  --gold: #C2A06B;
  --goldD: #A3834E;
  --goldL: #E8D9BC;
  --sel: linear-gradient(135deg, #CDAE78, #A3834E);
  --copper: #B77B5E;
  --copperD: #92593F;
  --track: #EEE6D8;
  --ring: #C2A06B33;
  --wash: #2F2925;          /* image wash, Deep Earth Brown family */
  --on-img: #FBF9F5;        /* text on images */
  --on-img-mut: #FBF9F5CC;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 150ms;
  --display: "Outfit", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ar: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);

  --sw-bg: var(--ivory);
  --sw-ink: var(--brown);
  --sw-ink-soft: var(--mut);
  --sw-accent: var(--gold);
}
[dir="rtl"] { --display: var(--ar); --body: var(--ar); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ivory); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.sw-root { font-family: var(--body); --sw-font-display: var(--display); --sw-font-body: var(--body); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
.skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 200; background: var(--brown); color: var(--white); padding: 8px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--goldD); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 24px; border: 1px solid transparent; font: 600 13px/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: filter var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--sel); color: var(--white); }
.btn--primary:hover { filter: brightness(.94); }
.btn--ghost { background: var(--white); color: var(--brown); border-color: var(--goldL); }
.btn--ghost:hover { background: #F3E9D6; }
.btn--block { width: 100%; min-height: 48px; font-size: 14px; }

.eyebrow { font: 600 11px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--copperD); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }

/* ---------- header: logo stays free (brand p.22 forbids boxing it), actions sit in a glass pill ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 90; display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); pointer-events: none; }
.hdr > * { pointer-events: auto; }
.hdr__logo img { width: 130px; height: 130px; transition: width 600ms var(--ease), height 600ms var(--ease); } /* as Aura_Landing_A_Explore_Spaces.html */
.hdr.solid .hdr__logo img { width: 56px; height: 56px; }
.hdr__pill { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #FBF9F5B3; border: 1px solid #FFFFFF99; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease); }
.hdr__lang, .hdr__cta { border: 0; border-radius: 24px; padding: 8px 16px; font: 500 13px/1.2 var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.hdr__lang { background: transparent; color: var(--brown); min-width: 72px; }
.hdr__lang:hover { background: #F3E9D6; }
.hdr__cta { background: var(--sel); color: var(--white); }
.hdr__cta:hover { filter: brightness(.94); }
.hdr.solid .hdr__pill { background: #FBF9F5E6; border-color: var(--line); }
.hdr.solid .hdr__lang { color: var(--brown); }
.hdr.solid .hdr__lang:hover { background: var(--hover); }
.hdr.solid .hdr__cta { background: var(--sel); color: var(--white); }

/* ---------- scroll-world overrides (engine CSS lives in @layer sw, so these win) ---------- */
.sw-topbar, .sw-particles { display: none; }
.sw-sky { background: var(--ivory); }
.sw-scrollbar { height: 2px; background: var(--track); z-index: 95; }
.sw-scrollbar span { background: var(--gold); }
.sw-scene__still { filter: brightness(1.03); }
/* one wash for every scene: soft top for the header, deep bottom for the copy */
.sw-copylayer::before, [dir="rtl"] .sw-copylayer::before { left: 0; right: 0; width: auto;
  display: none; } /* no fade over the images: copy sits on its own frosted card */

.sw-copy, [dir="rtl"] .sw-copy { top: auto; bottom: clamp(56px, 11vh, 120px); left: var(--gutter); right: var(--gutter); width: auto; max-width: 980px; }
/* film caption: no box, white text straight on the video, shadow on the letters only */
.sw-copy:not(.is-hero) { max-width: 620px; }
.sw-copy:not(.is-hero) .sw-copy__eyebrow { color: var(--goldL); text-shadow: 0 1px 12px #1A140F80; }
.sw-copy:not(.is-hero) .sw-copy__title { font-size: clamp(34px, 3.6vw, 60px); line-height: 1.05; color: var(--on-img);
  text-shadow: 0 1px 2px #1A140F59, 0 10px 40px #1A140F73; }
[dir="rtl"] .sw-copy:not(.is-hero) .sw-copy__title { line-height: 1.35; }
.sw-copy:not(.is-hero) .sw-copy__body { margin-top: 14px; font-size: 16px; color: var(--on-img); max-width: 40ch; text-shadow: 0 1px 2px #1A140F66, 0 6px 24px #1A140F80; }
.sw-copy:not(.is-hero) .sw-copy__cta { margin-top: 24px; }
.sw-copy:not(.is-hero) .sw-copy__tags li { background: #FBF9F526; color: var(--on-img); border: 1px solid #FBF9F566; backdrop-filter: blur(8px); }
/* headline words rise in as the room arrives */
.sw-copy .wd { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i) * 60ms); }
.sw-copy.in .wd { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sw-copy .wd { opacity: 1; transform: none; transition: none; } }
[dir="rtl"] .sw-copy { margin-inline-start: auto; }
.sw-copy__eyebrow { display: block; margin: 0 0 16px; font: 600 11px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--copperD); }
[dir="rtl"] .sw-copy__eyebrow { letter-spacing: 0; font-size: 14px; }
.sw-copy__title { margin: 0; font-family: var(--display); font-weight: 200; font-size: clamp(40px, 5vw, 84px); line-height: 1.02; letter-spacing: -.025em; color: var(--brown); text-shadow: none; text-wrap: balance; }
[dir="rtl"] .sw-copy__title { font-weight: 300; letter-spacing: 0; line-height: 1.25; }
.sw-copy__body { margin: 20px 0 0; max-width: 46ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--ink); text-shadow: none; }
.sw-copy__tags { margin: 24px 0 0; gap: 8px; }
.sw-copy__tags li { font: 600 11px/1.4 var(--body); color: var(--brown); background: var(--goldL); border: 0; border-radius: 8px; padding: 2px 8px; }
.sw-copy__cta { margin-top: 32px; gap: 12px; }
.sw-btn { border-radius: 24px; font: 600 14px/1.2 var(--body); padding: 14px 24px; transition: background-color var(--fast) var(--ease), filter var(--fast) var(--ease); }
.sw-btn:hover { transform: none !important; }
.sw-btn--primary { background: var(--sel); color: var(--white); border: 1px solid transparent; }
.sw-btn--primary:hover { filter: brightness(.94); }
.sw-btn--ghost { background: var(--white); color: var(--brown); border: 1px solid var(--goldL); }
.sw-btn--ghost:hover { background: #F3E9D6; }

/* hero scene: cinematic centre, wide container so the H1 holds two lines */
.sw-copy.is-hero { left: 0; right: 0; margin: 0 auto; max-width: 1360px; padding: 0 var(--gutter); text-align: center; }
/* dusk hero (reference image): copy sits in the sky, no ivory fade, so the water stays clear */
.sw-copy.is-hero { top: clamp(112px, 13vh, 150px); bottom: auto; }
.sw-scene:first-child .sw-scene__still, .sw-scene:first-child .sw-scene__video { object-position: center top; transform-origin: center top; }
.sw-copy.is-hero .sw-copy__eyebrow { margin-bottom: 12px; }
.sw-copy.is-hero .sw-copy__body { max-width: 62ch; margin-top: 16px; }
.sw-copy.is-hero .sw-copy__cta { margin-top: 24px; }
.sw-copy.is-hero .sw-copy__eyebrow { color: var(--goldL); }
.sw-copy.is-hero .sw-copy__title { color: var(--on-img); text-shadow: 0 2px 24px #1E2A5C40; }
.sw-copy.is-hero .sw-copy__body { color: var(--on-img-mut); }
.sw-copy.is-hero .sw-copy__title { font-size: clamp(42px, 4.9vw, 84px); }
.sw-copy.is-hero .sw-copy__body { margin-inline: auto; }
.sw-copy.is-hero .sw-copy__cta { justify-content: center; }

.sw-route::before { background: var(--white); opacity: .7; width: 1px; }
.sw-route__dot { padding: 0; }
.sw-route__dot i { width: 6px; height: 6px; background: #FBF9F5; box-shadow: 0 0 0 1px #51473F40; }
.sw-route__dot.is-active i { background: var(--gold); box-shadow: 0 0 0 4px #C2A06B40; transform: scale(1.5); }
.sw-route__label { font: 500 12px/1.2 var(--body); color: var(--brown); background: #FBF9F5D9; border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(12px); }
[dir="rtl"] .sw-route { right: auto; left: clamp(14px, 2.4vw, 30px); }
[dir="rtl"] .sw-route__label { right: auto; left: 24px; }
.sw-hint { bottom: 24px; font: 500 11px/1.2 var(--body); letter-spacing: .2em; color: var(--on-img-mut); }
[dir="rtl"] .sw-hint { letter-spacing: 0; font-size: 13px; }
.sw-hint i { border: 1px solid var(--goldD); }
.sw-hint i::after { background: var(--gold); }

.concept { position: fixed; z-index: 30; bottom: 24px; inset-inline-end: var(--gutter); font-size: 11px; color: var(--mut); background: #FBF9F5CC; padding: 2px 8px; border-radius: 8px; backdrop-filter: blur(8px); }

/* ---------- register ---------- */
.reg, .foot { position: relative; z-index: 80; }
.reg { background: var(--ivory); overflow: clip; padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(120px, 16vh, 192px); border-radius: 32px 32px 0 0; margin-top: -100vh; box-shadow: 0 -24px 48px -24px #51473F33; }
.reg__text { font-size: 16px; line-height: 1.65; color: var(--ink); max-width: 44ch; }
.reg__in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.reg__intro { position: sticky; top: 120px; display: grid; gap: 20px; }
.reg__title { font-family: var(--display); font-weight: 200; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -.02em; color: var(--brown); text-wrap: balance; }
[dir="rtl"] .reg__title { font-weight: 300; letter-spacing: 0; line-height: 1.35; }
.reg__zones { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--line); }
.reg__zones li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--brown); }
.reg__zones li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-inline-end: 10px; vertical-align: middle; }
.reg__img { margin-top: 12px; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; }
.reg__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.reg__img:hover img { transform: scale(1.04); }

/* ---------- form card (ivory and gold components) ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; overflow: hidden; }
.prog { position: absolute; inset: 0 0 auto; height: 4px; background: var(--track); }
.prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--gold); transition: width 400ms var(--ease); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.block + .block { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.block__title { float: left; width: 100%; padding: 0; margin-bottom: 16px; font: 400 20px/1.3 var(--body); color: var(--brown); }
[dir="rtl"] .block__title { float: right; }
.block__title + * { clear: both; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { display: grid; justify-items: start; gap: 4px; text-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.tile:hover { background: var(--hover); }
.tile[aria-checked="true"] { background: var(--selbg); border-color: var(--gold); }
.tile svg { width: 32px; height: 32px; fill: none; stroke: var(--goldD); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.tile__name { font-size: 13px; font-weight: 600; color: var(--brown); }
.tile__sub { font-size: 12px; color: var(--mut); }

.fam { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease); }
.fam.open { grid-template-rows: 1fr; }
.fam > div { overflow: hidden; }
.fam__in { margin-top: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.fam__head { font-size: 13px; color: var(--mut); margin-bottom: 12px; }
.fam__head b { color: var(--brown); font-weight: 600; }
.kids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kid { display: grid; gap: 8px; font-size: 12px; font-weight: 500; color: var(--brown); }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--goldD); font-size: 18px; cursor: pointer; transition: background-color var(--fast) var(--ease); }
.stepper button:hover { background: var(--goldL); }
.stepper output { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brown); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--brown); }
input:not([type]), input[type="tel"], input[type="email"] {
  width: 100%; min-height: 44px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 500 13px var(--body); color: var(--ink);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
input[dir="ltr"], .phone input { font-family: "Manrope", system-ui, sans-serif; }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); }
input::placeholder { color: #A39A90; }
.field.bad input { border-color: var(--copper); }
.hint { font-size: 12px; color: var(--mut); }
.err { font-size: 12px; color: var(--copperD); }
.err:empty { display: none; }

.phone { display: flex; }
.cc { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--head); font: 600 13px var(--body); color: var(--brown); font-variant-numeric: tabular-nums; }
.phone input { border-radius: 0 8px 8px 0; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--goldL); border-radius: 24px; overflow: hidden; background: #FFFFFF88; justify-self: start; }
.seg button { border: 0; background: none; border-radius: 24px; padding: 6px 12px; min-height: 36px; font-weight: 500; font-size: 13px; color: var(--brown); cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.seg button:hover { background: #F3E9D6; }
.seg button:active { transform: scale(.98); }
.seg button[aria-checked="true"] { background: var(--sel); color: var(--white); }

.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--mut); cursor: pointer; margin-top: 8px; }
.consent input { width: 15px; height: 15px; accent-color: var(--goldD); margin: 2px 0 0; flex: none; }

#form > .btn { margin-top: 28px; }
.terms { margin-top: 12px; font-size: 12px; color: var(--mut); text-align: center; }

.thanks { display: none; text-align: center; padding: 40px 0 16px; }
.thanks:focus { outline: none; }
.card.done form { display: none; }
.card.done .thanks { display: grid; gap: 16px; justify-items: center; }
.thanks__mark { width: 72px; }
.thanks__title { font: 300 26px/1.2 var(--body); color: var(--brown); }
.thanks p { max-width: 44ch; color: var(--ink); }

/* ---------- footer: deep brown chapter with the brand line ---------- */
.foot { background: var(--wash); color: var(--on-img); overflow: hidden; padding: clamp(96px, 14vh, 160px) var(--gutter) 40px; }
.foot__rings { position: absolute; width: min(760px, 80vw); inset-inline-end: -10%; top: -20%; opacity: .12; pointer-events: none; }
.foot__line { position: relative; max-width: 1100px; font: 200 clamp(40px, 6vw, 104px)/1 var(--display); letter-spacing: -.03em; text-wrap: balance; }
[dir="rtl"] .foot__line { font-weight: 300; letter-spacing: 0; line-height: 1.3; }
.foot__row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(64px, 10vh, 120px); padding-top: 24px; border-top: 1px solid #FBF9F526; font-size: 13px; color: var(--on-img-mut); }
.foot__logo { width: 64px; height: 64px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .reg__in { grid-template-columns: 1fr; }
  .reg__intro { position: static; }
}
@media (max-width: 860px) {
  .hdr { padding: 12px 16px; }
  .hdr__logo img { width: 64px; height: 64px; }
  .hdr.solid .hdr__logo img { width: 52px; height: 52px; }
  .hdr__cta { display: none; }
  .sw-copy, [dir="rtl"] .sw-copy { left: 20px; right: 20px; bottom: calc(clamp(72px, 13dvh, 120px) + env(safe-area-inset-bottom)); }
  .sw-copy.is-hero { left: 0; right: 0; top: 104px; bottom: auto; margin-top: 0; padding: 0 20px; }
  .sw-copy__title, .sw-copy.is-hero .sw-copy__title { font-size: clamp(34px, 9.4vw, 48px); }
  .sw-copy.is-hero .sw-copy__cta { flex-direction: column; align-items: stretch; }
  .sw-btn { text-align: center; }
  .sw-hint { display: none; }
  .concept { bottom: auto; top: 84px; inset-inline-end: 16px; }
  .reg { border-radius: 24px 24px 0 0; }
}
@media (max-width: 600px) {
  input:not([type]), input[type="tel"], input[type="email"] { font-size: 16px; }
  .types { grid-template-columns: 1fr; }
  .tile { grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; }
  .tile svg { grid-row: span 2; margin: 0; }
  .kids { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 9px 8px; }
  .reg__zones { grid-template-columns: 1fr; }
  .sw-route { display: none; }
  .foot__row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .fam, .prog i, .reg__img img { transition: none; }
}
#world.at-hero + .concept { color: var(--on-img); background: #1E2A5C33; }

/* one-scene hero: no route rail */
.sw-route { display: none; }
.reg__tag { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font: 600 11px/1.4 var(--body); padding: 2px 8px; border-radius: 8px; background: var(--goldL); color: var(--brown); }
.reg__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--goldD); }
.reg__zones { grid-template-columns: 1fr 1fr; }
.thanks__sum { font-size: 13px; font-weight: 600; color: var(--brown); background: var(--selbg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }

/* ---------- multi-step form ---------- */
.steps { list-style: none; margin: 4px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--track); color: var(--mut); font-size: 13px;
  transition: border-color 400ms var(--ease), color 400ms var(--ease); }
.steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  font: 600 12px var(--body); color: var(--mut); font-variant-numeric: tabular-nums; transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease); }
.steps b { font-weight: 600; }
.steps li.on { border-color: var(--gold); color: var(--brown); }
.steps li.on span { background: var(--sel); border-color: transparent; color: var(--white); }
.steps li.done { border-color: var(--goldL); color: var(--brown); }
.steps li.done span { background: var(--selbg); border-color: var(--gold); color: var(--goldD); font-size: 0; }
.steps li.done span::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--goldD); border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); }
.step { min-height: 300px; }
.step__title { margin: 0 0 20px; font: 300 26px/1.2 var(--display); color: var(--brown); }
[dir="rtl"] .step__title { font-weight: 400; line-height: 1.4; }
.step .types { gap: 12px; }
.step .tile { padding: 20px 16px; gap: 6px; }
.step .tile svg { width: 44px; height: 44px; margin-bottom: 12px; }
.step .tile__name { font-size: 15px; }
.step__nav { display: flex; gap: 12px; margin-top: 28px; }
.step__nav .btn { min-height: 48px; padding: 12px 28px; font-size: 14px; }
.step__nav #next, .step__nav #send { flex: 1; }
.step__nav [hidden] { display: none; }
@media (max-width: 600px) {
  .steps b { display: none; }
  .steps li { justify-content: center; }
  .step { min-height: 0; }
  .step .tile { grid-template-columns: 40px 1fr; column-gap: 16px; padding: 16px; }
  .step .tile svg { width: 40px; height: 40px; margin: 0; grid-row: span 2; align-self: center; }
}
.seg button:focus-visible { outline-offset: -3px; }

/* ---------- register grid: left column (copy + image) matches the form card height ---------- */
.reg__in { align-items: stretch; }
.reg__intro { position: static; display: flex; flex-direction: column; gap: 20px; }
.reg__intro > * { flex: none; }
.reg__img { flex: 1 1 auto; min-height: 260px; margin-top: 8px; aspect-ratio: auto; }
.reg__img img { position: absolute; inset: 0; }
.reg__img { position: relative; }
.card { display: flex; flex-direction: column; }
#form { flex: 1; display: flex; flex-direction: column; }
.step__nav { margin-top: auto; padding-top: 28px; }
.step { min-height: 0; }
@media (max-width: 960px) { .reg__img { flex: none; aspect-ratio: 16 / 10; min-height: 0; } }

/* ---------- footer: 350px max on desktop ---------- */
.foot { max-height: 350px; padding-top: clamp(56px, 8vh, 96px); padding-bottom: 32px; }
.foot__row { margin-top: 40px; justify-content: flex-start; }
@media (max-width: 860px) { .foot { max-height: none; } }
.reg__intro .reg__tag { align-self: flex-start; }
.foot__line { font-size: clamp(28px, 3vw, 48px); line-height: 1.15; }
[dir="rtl"] .foot__line { line-height: 1.5; }

/* clip (not hidden) so body never becomes its own scroll box with a second scrollbar */
html, body { overflow-x: clip; }
/* form section and footer: same space on both sides, clear of the scrollbar */
.reg, .foot { margin-inline: 0; }
.foot { border-radius: 0; margin-bottom: 0; }

/* past the film: hide the fixed video so it can never show under the footer; page canvas matches the footer */
html { background: var(--wash); }
.sw-root.is-covered .sw-stage, .sw-root.is-covered .sw-copylayer, .sw-root.is-covered .sw-hint, .sw-root.is-covered .sw-sky { visibility: hidden; }

/* form section + footer always fill at least one screen, so the film's scroll track can never run past the footer */
@media (min-width: 861px) {
  .foot { height: 350px; max-height: 350px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
  .foot__row { margin-top: 32px; }
  .reg { min-height: calc(100vh - 350px); display: flex; flex-direction: column; justify-content: center; }
  .reg__in { width: 100%; }
}
@media (max-width: 860px) { .reg { min-height: calc(100svh - 200px); } }

/* navbar slides away once the form section reaches the top */
.hdr { transition: transform 500ms var(--ease), opacity 400ms var(--ease); }
.hdr.away { transform: translateY(-110%); opacity: 0; pointer-events: none; } /* all sizes: hidden once the form section reaches the top */
.hdr.away > * { pointer-events: none; }
@keyframes hdr-in { from { opacity: 0; transform: translateY(-12px); } }
.hdr:not(.away) { animation: hdr-in 900ms var(--ease) 200ms both; }
@media (prefers-reduced-motion: reduce) { .hdr:not(.away) { animation: none; } }

/* film loading state: shown until the scroll video is downloaded (js/app.js) */
.loader { position: fixed; z-index: 60; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--on-img-mut); font: 500 12px/1.2 var(--body); letter-spacing: .14em; transition: opacity 600ms var(--ease); pointer-events: none; }
[dir="rtl"] .loader { letter-spacing: 0; font-size: 13px; }
.loader b { display: block; width: 120px; height: 1px; background: #FFFFFF40; overflow: hidden; }
.loader i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; }
[dir="rtl"] .loader i { transform-origin: right; }
.loader.out { opacity: 0; }
body:has(.loader:not(.out)) .sw-hint { opacity: 0 !important; }

/* footer: no divider line; on desktop the logo is centred at the navbar size */
.foot__row { border-top: 0; padding-top: 0; }
@media (min-width: 861px) {
  .foot { height: 194px; max-height: 194px; padding-block: 32px; }
  .foot__row { justify-content: flex-start; margin-top: 0; }
  .foot__logo { width: 130px; height: 130px; }
  .reg { min-height: calc(100vh - 194px); }
}

/* form section: family photo faded in on the right, copy and form on the left */
.reg__bg { position: absolute; inset: 0 0 0 auto; width: 62%; margin: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%); mask-image: linear-gradient(to right, transparent 0, #000 45%); }
.reg__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.reg__in { position: relative; }
@media (min-width: 961px) {
  /* photo is full section height, pinned so the Kuwait Towers sit in the right corner on any screen width;
     it fades in from just past the form's edge */
  .reg__bg { inset: 0; width: auto; --edge: calc(max(0px, 50% - 620px) + min(560px, 44vw));
    -webkit-mask-image: linear-gradient(to right, transparent calc(var(--edge) - 40px), #000 calc(var(--edge) + 200px));
    mask-image: linear-gradient(to right, transparent calc(var(--edge) - 40px), #000 calc(var(--edge) + 200px)); }
  .reg__bg img { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; transform: translateX(14%); }
  .reg__in { display: flex; flex-direction: column; gap: 32px; width: min(560px, 44vw); max-width: none; margin-left: max(0px, calc((100% - 1240px) / 2)); margin-right: auto; }
}
@media (max-width: 960px) {
  .reg__bg { inset: 0 0 auto 0; width: 100%; height: 360px;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
  .reg__bg img { object-position: 75% center; }
  .reg__in { padding-top: 200px; }
}
@media (prefers-reduced-motion: reduce) { .reg__bg { opacity: 1 !important; } }
