/* ==========================================================================
   TAJ SHAHIN — THE WORLD OF GOLD
   Luxury Editorial Coming Soon Experience
   Design Tokens faithfully matched to the approved obsidian & champagne gold
   direction, elevated with haute-joaillerie motion choreography.
   ========================================================================== */

:root {
  /* Core Brand Palette */
  --bg: #0C0B09;
  --bg-deep: #070605;
  --fg: #F5EFE3;
  --muted: #A39B8B;
  --gold: #D6BD8E;
  --gold-bright: #EFE0BE;
  --gold-deep: #9F824E;
  --line: rgba(214, 189, 142, 0.45);
  --line-faint: rgba(214, 189, 142, 0.20);
  --panel: radial-gradient(ellipse 70% 55% at 50% 38%, #2B241A 0%, #17140F 70%);
  --btn-bg: #D6BD8E;
  --btn-fg: #0C0B09;

  /* Feedback States */
  --success: #D6BD8E;
  --error: #E59889;

  /* Typography */
  --font-serif-en: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans-en: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif-ar: 'Amiri', Georgia, serif;
  --font-sans-ar: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion Curves */
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 189, 142, 0.28) var(--bg);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(214, 189, 142, 0.26);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(214, 189, 142, 0.48);
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans-en);
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: rgba(214, 189, 142, 0.28);
  color: var(--fg);
}

a {
  color: var(--gold);
  transition: color 0.3s var(--ease-luxury);
}

a:hover {
  color: var(--gold-bright);
}

/* ==========================================================================
   THREE.JS ATMOSPHERE CANVAS & VIGNETTE
   ========================================================================== */
.ts-webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s var(--ease-luxury);
}

body.is-revealed .ts-webgl {
  opacity: 1;
}

.ts-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 62% at 50% 44%, transparent 32%, rgba(7, 6, 5, 0.56) 100%);
}

/* ==========================================================================
   LUXURY OPENING PRELOADER
   ========================================================================== */
.ts-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: all;
  isolation: isolate;
}

.ts-preloader.is-gone {
  display: none;
}

/* Split Silk Curtains */
.ts-preloader__curtain {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--bg);
  will-change: transform;
  transition: transform 1.05s var(--ease-curtain);
  z-index: 1;
}

.ts-preloader__curtain--top {
  top: 0;
  background: linear-gradient(180deg, #070605 0%, #0C0B09 100%);
}

.ts-preloader__curtain--bottom {
  bottom: 0;
  background: linear-gradient(0deg, #070605 0%, #0C0B09 100%);
}

/* Delicate Gold Horizon Seam that blooms right before curtains part */
.ts-preloader__horizon {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(214, 189, 142, 0.18) 18%,
    rgba(239, 224, 190, 0.85) 50%,
    rgba(214, 189, 142, 0.18) 82%,
    transparent 100%
  );
  transform: scaleX(0);
  opacity: 0;
  will-change: transform, opacity;
}

.ts-preloader.is-exiting .ts-preloader__horizon {
  animation: preloaderHorizon 0.85s var(--ease-luxury) forwards;
}

.ts-preloader.is-exiting .ts-preloader__curtain--top {
  transform: translateY(-102%);
  transition-delay: 0.28s;
}

.ts-preloader.is-exiting .ts-preloader__curtain--bottom {
  transform: translateY(102%);
  transition-delay: 0.28s;
}

.ts-preloader.is-exiting {
  pointer-events: none;
}

/* Preloader Center Composition */
.ts-preloader__stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  will-change: transform, opacity;
  transition: opacity 0.55s var(--ease-luxury), transform 0.65s var(--ease-luxury);
}

.ts-preloader.is-exiting .ts-preloader__stage {
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
}

.ts-preloader__aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 189, 142, 0.14) 0%, rgba(214, 189, 142, 0.04) 42%, transparent 72%);
  opacity: 0;
  animation: auraBloom 1.5s var(--ease-luxury) 0.1s forwards;
  pointer-events: none;
}

.ts-preloader__emblem {
  width: 132px;
  height: 114px;
  margin-bottom: 18px;
}

.ts-preloader__crest-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(214, 189, 142, 0.18));
}

/* SVG Stroke-by-Stroke Crest Choreography */
.crest-arch-outer,
.crest-arch-inner,
.crest-base,
.crown-body,
.crown-rim,
.crown-diamond {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.crest-arch-outer {
  animation: strokeDraw 1.05s var(--ease-luxury) 0.08s forwards;
}

.crest-arch-inner {
  animation: strokeDraw 0.95s var(--ease-luxury) 0.22s forwards;
}

.crest-base {
  animation: strokeDraw 0.75s var(--ease-luxury) 0.18s forwards;
}

.crown-body {
  animation: strokeDraw 1.05s var(--ease-luxury) 0.30s forwards;
}

.crown-rim {
  animation: strokeDraw 0.55s var(--ease-luxury) 0.72s forwards;
}

.crown-diamond {
  animation:
    strokeDraw 0.6s var(--ease-luxury) 0.78s forwards,
    diamondFill 0.6s var(--ease-luxury) 1.05s forwards;
}

.crown-pearl {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.3);
}

.crown-pearl--1 { animation: pearlPop 0.45s var(--ease-luxury) 0.76s forwards; }
.crown-pearl--2 { animation: pearlPop 0.45s var(--ease-luxury) 0.86s forwards; }
.crown-pearl--3 { animation: pearlPop 0.45s var(--ease-luxury) 0.96s forwards; }

/* Bilingual Preloader Wordmark */
.ts-preloader__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeRise 0.85s var(--ease-luxury) 0.52s forwards;
}

.ts-preloader__en {
  font-family: var(--font-serif-en);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--fg);
  padding-inline-start: 0.28em;
}

.ts-preloader__sep {
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ts-preloader__ar {
  font-family: var(--font-serif-ar);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.ts-preloader__tagline {
  margin: 8px 0 22px;
  font-family: var(--font-sans-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  padding-inline-start: 0.38em;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeRise 0.75s var(--ease-luxury) 0.72s forwards;
}

/* Liquid Gold 1px Progress Filament */
.ts-preloader__track {
  width: 176px;
  height: 1px;
  background: rgba(214, 189, 142, 0.18);
  position: relative;
  overflow: visible;
  opacity: 0;
  animation: fadeOnly 0.5s ease 0.35s forwards;
}

.ts-preloader__bar {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(214, 189, 142, 0.45), var(--gold-bright));
  will-change: width;
  transition: width 0.24s linear;
}

.ts-preloader__glint {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--gold-bright);
  box-shadow: 0 0 10px 2px rgba(239, 224, 190, 0.75);
}

/* ==========================================================================
   MAIN PAGE LAYOUT — DESKTOP 3-COLUMN LUXURY SPREAD
   ========================================================================== */
.ts-root {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(32px, 5.2vh, 56px) clamp(36px, 5.5vw, 80px) clamp(24px, 3.4vh, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4.4vh, 48px);
}

.ts-row {
  flex: 1 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
}

/* Side Columns (English Left / Arabic Right) */
.ts-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ts-side--en {
  gap: clamp(20px, 2.6vh, 28px);
  text-align: left;
}

.ts-side--ar {
  gap: clamp(18px, 2.2vh, 24px);
  font-family: var(--font-sans-ar);
  text-align: right;
}

/* Eyebrow */
.ts-eyebrow {
  margin: 0;
  color: var(--gold);
}

.ts-eyebrow--en {
  font-family: var(--font-sans-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.ts-eyebrow--ar {
  font-family: var(--font-sans-ar);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

/* Display Brand Headlines */
.ts-title {
  margin: 0;
  color: var(--fg);
}

.ts-title--en {
  font-family: var(--font-serif-en);
  font-weight: 600;
  font-size: clamp(50px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: 0.05em;
}

.ts-title--ar {
  font-family: var(--font-serif-ar);
  font-weight: 700;
  font-size: clamp(54px, 5.9vw, 92px);
  line-height: 1.15;
}

.ts-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

/* Gold Hairline Divider */
.ts-divider {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(214, 189, 142, 0.45) 100%);
  transform-origin: left center;
}

.ts-side--ar .ts-divider {
  background: linear-gradient(270deg, var(--gold) 0%, rgba(214, 189, 142, 0.45) 100%);
  transform-origin: right center;
}

/* Coming Soon / قريباً */
.ts-soon {
  margin: 0;
  color: var(--gold);
}

.ts-soon--en {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1.12;
  padding-bottom: 2px;
}

.ts-soon--ar {
  font-family: var(--font-serif-ar);
  font-weight: 400;
  font-size: clamp(36px, 3.2vw, 46px);
  line-height: 1.15;
}

/* Domains Subtitle */
.ts-domains {
  margin: 0;
  color: var(--muted);
}

.ts-domains--en {
  font-family: var(--font-sans-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.9;
}

.ts-domains--ar {
  font-family: var(--font-sans-ar);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.ts-dot {
  color: rgba(214, 189, 142, 0.58);
  margin: 0 4px;
}

/* ==========================================================================
   CENTERPIECE: ARCH PORTRAIT, CROWN & GOLDEN PLINTH
   ========================================================================== */
.ts-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.ts-arch-wrap {
  position: relative;
  width: clamp(276px, 27.5vw, 396px);
  aspect-ratio: 7 / 9;
  padding: 12px 12px 0;
  display: flex;
  transform-style: preserve-3d;
  will-change: transform;
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 35%;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease-luxury);
}

/* Crown Crest Floating at Top Apex */
.ts-crown {
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  pointer-events: none;
}

.ts-crown__svg {
  width: 56px;
  height: 36px;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(214, 189, 142, 0.22));
}

.ts-crown__jewel {
  fill: rgba(214, 189, 142, 0.16);
  animation: jewelBreath 5.5s ease-in-out infinite;
}

/* Precision SVG Arch Border with Clean Crown Gap */
.ts-arch-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.ts-arch-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.35s var(--ease-luxury) 0.18s;
}

body.is-revealed .ts-arch-path {
  stroke-dashoffset: 0;
}

/* Inner Arched Portrait Viewport */
.ts-arch-inner {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--panel);
  isolation: isolate;
}

.ts-portrait-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 260px at var(--gx) var(--gy),
    rgba(214, 189, 142, 0.12) 0%,
    transparent 65%
  );
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.ts-picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.ts-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  display: block;
  transform: scale(1.065);
  filter: brightness(0.86) contrast(1.02);
  will-change: transform, filter;
  transition:
    transform 1.65s var(--ease-silk) 0.22s,
    filter 1.4s var(--ease-luxury) 0.22s;
}

body.is-revealed .ts-portrait-img {
  transform: scale(1.001);
  filter: brightness(1) contrast(1.01);
}

.ts-portrait-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 0 1px rgba(214, 189, 142, 0.08);
  background: linear-gradient(
    180deg,
    rgba(12, 11, 9, 0.10) 0%,
    transparent 20%,
    transparent 82%,
    rgba(12, 11, 9, 0.34) 100%
  );
}

/* Single Luxury Specular Sheen Sweep on Reveal */
.ts-portrait-sheen {
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(239, 224, 190, 0.14) 48%,
    rgba(255, 248, 228, 0.22) 50%,
    rgba(239, 224, 190, 0.08) 52%,
    transparent 62%
  );
  transform: translateX(-110%);
  opacity: 0;
}

body.is-revealed .ts-portrait-sheen {
  animation: portraitSheen 1.85s var(--ease-luxury) 0.72s 1 forwards;
}

/* Horizontal Gold Plinth Base */
.ts-plinth {
  align-self: stretch;
  margin: 0 -36px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(214, 189, 142, 0.28) 0%,
    var(--gold) 14%,
    var(--gold-bright) 50%,
    var(--gold) 86%,
    rgba(214, 189, 142, 0.28) 100%
  );
  transform-origin: center center;
}

/* Status Caption: UNDER CONSTRUCTION ◆ تحت الإنشاء */
.ts-status {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
}

.ts-status__en {
  font-family: var(--font-sans-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
}

.ts-status__diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(214, 189, 142, 0.45);
  animation: diamondPulse 4.2s ease-in-out infinite;
}

.ts-status__ar {
  font-family: var(--font-sans-ar);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

/* ==========================================================================
   BOTTOM WAITLIST CAPTURE & BILINGUAL FOOTER
   ========================================================================== */
.ts-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.8vh, 28px);
}

.ts-waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 560px;
}

.ts-waitlist__label {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  cursor: pointer;
}

.ts-waitlist__label-en {
  font-family: var(--font-sans-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.ts-waitlist__diamond {
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
}

.ts-waitlist__label-ar {
  font-family: var(--font-sans-ar);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.ts-waitlist__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

/* Architectural Sharp Input (matching reference border-radius: 0) */
.ts-input-wrap {
  flex: 1 1 260px;
  min-width: 0;
  position: relative;
}

.ts-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  background: rgba(12, 11, 9, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--fg);
  font-family: var(--font-sans-en), var(--font-sans-ar), sans-serif;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.35s var(--ease-luxury),
    background-color 0.35s var(--ease-luxury),
    box-shadow 0.35s var(--ease-luxury);
}

.ts-input::placeholder {
  color: var(--muted);
  opacity: 0.72;
}

.ts-input:hover {
  border-color: rgba(214, 189, 142, 0.68);
}

.ts-input:focus {
  border-color: var(--gold-bright);
  background: rgba(18, 16, 12, 0.78);
  box-shadow: 0 0 0 1px rgba(214, 189, 142, 0.22), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ts-input-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s var(--ease-luxury);
  pointer-events: none;
}

.ts-input:focus + .ts-input-line {
  transform: scaleX(1);
}

.ts-input.is-invalid {
  border-color: rgba(229, 152, 137, 0.75);
}

/* Primary Gold CTA Button */
.ts-btn {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  height: 50px;
  min-width: 176px;
  padding: 0 26px;
  border: 1px solid var(--btn-bg);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans-en), var(--font-sans-ar), sans-serif;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.35s var(--ease-luxury),
    border-color 0.35s var(--ease-luxury),
    transform 0.2s var(--ease-luxury),
    box-shadow 0.35s var(--ease-luxury);
}

.ts-btn__content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.25s ease;
}

.ts-btn__en {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ts-btn__sep {
  opacity: 0.45;
  font-weight: 400;
}

.ts-btn__ar {
  font-family: var(--font-sans-ar);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.ts-btn__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 252, 240, 0.45) 50%,
    transparent 75%
  );
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease-luxury);
  pointer-events: none;
}

.ts-btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 8px 26px rgba(214, 189, 142, 0.22);
}

.ts-btn:hover .ts-btn__sheen {
  transform: translateX(120%);
}

.ts-btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.ts-btn:active {
  transform: scale(0.985);
}

/* Button Submitting Spinner */
.ts-btn__loader {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(12, 11, 9, 0.25);
  border-top-color: var(--btn-fg);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ts-btn.is-busy {
  pointer-events: none;
}

.ts-btn.is-busy .ts-btn__content {
  opacity: 0;
}

.ts-btn.is-busy .ts-btn__loader {
  opacity: 1;
  animation: btnSpin 0.75s linear infinite;
}

/* Inline Bilingual Form Feedback */
.ts-feedback {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s var(--ease-luxury), transform 0.35s var(--ease-luxury);
}

.ts-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ts-feedback.is-success {
  color: var(--gold-bright);
}

.ts-feedback.is-error {
  color: var(--error);
}

/* Bilingual Footer */
.ts-foot {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.ts-foot__en {
  margin: 0;
  font-family: var(--font-sans-en);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ts-foot__ar {
  margin: 0;
  font-family: var(--font-sans-ar);
  font-size: 14px;
  letter-spacing: 0;
}

/* ==========================================================================
   CHOREOGRAPHED POST-PRELOADER REVEAL STATES
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
  transition:
    opacity 0.95s var(--ease-luxury) var(--d, 0s),
    transform 1.05s var(--ease-luxury) var(--d, 0s);
}

.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(105%);
  will-change: transform, opacity;
  transition:
    opacity 0.9s var(--ease-luxury) var(--d, 0s),
    transform 1.15s var(--ease-silk) var(--d, 0s);
}

.reveal-divider {
  opacity: 0;
  transform: scaleX(0);
  will-change: transform, opacity;
  transition:
    opacity 0.7s var(--ease-luxury) var(--d, 0s),
    transform 0.95s var(--ease-luxury) var(--d, 0s);
}

.reveal-crown {
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.86);
  will-change: transform, opacity;
  transition:
    opacity 0.95s var(--ease-luxury) 0.58s,
    transform 1.05s var(--ease-luxury) 0.58s;
}

.reveal-portrait {
  opacity: 0;
  will-change: opacity;
  transition: opacity 1.15s var(--ease-luxury) 0.18s;
}

.reveal-plinth {
  opacity: 0;
  transform: scaleX(0);
  will-change: transform, opacity;
  transition:
    opacity 0.75s var(--ease-luxury) 0.36s,
    transform 1.15s var(--ease-luxury) 0.36s;
}

body.is-revealed .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

body.is-revealed .reveal-line {
  opacity: 1;
  transform: translateY(0);
}

body.is-revealed .reveal-divider {
  opacity: 1;
  transform: scaleX(1);
}

body.is-revealed .reveal-crown {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

body.is-revealed .reveal-portrait {
  opacity: 1;
}

body.is-revealed .reveal-plinth {
  opacity: 1;
  transform: scaleX(1);
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes strokeDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes diamondFill {
  to {
    fill-opacity: 0.34;
  }
}

@keyframes pearlPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes auraBloom {
  to {
    opacity: 1;
  }
}

@keyframes fadeRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOnly {
  to {
    opacity: 1;
  }
}

@keyframes preloaderHorizon {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  38% {
    transform: scaleX(1);
    opacity: 0.9;
  }
  100% {
    transform: scaleX(1.06);
    opacity: 0;
  }
}

@keyframes portraitSheen {
  0% {
    transform: translateX(-115%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes jewelBreath {
  0%, 100% {
    fill-opacity: 0.14;
  }
  50% {
    fill-opacity: 0.42;
  }
}

@keyframes diamondPulse {
  0%, 100% {
    opacity: 0.78;
    box-shadow: 0 0 6px rgba(214, 189, 142, 0.32);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(239, 224, 190, 0.72);
  }
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   TABLET & MEDIUM DESKTOP REFINEMENT (901px – 1180px)
   ========================================================================== */
@media (max-width: 1180px) and (min-width: 901px) {
  .ts-root {
    padding: 40px 44px 30px;
    gap: 36px;
  }

  .ts-row {
    gap: 32px;
  }

  .ts-arch-wrap {
    width: clamp(248px, 26vw, 320px);
  }

  .ts-plinth {
    margin: 0 -22px;
  }

  .ts-title--en {
    font-size: clamp(44px, 4.8vw, 66px);
  }

  .ts-title--ar {
    font-size: clamp(48px, 5.2vw, 72px);
  }
}

/* ==========================================================================
   MOBILE & PORTRAIT TABLET LAYOUT (<= 900px)
   Faithfully tuned to mirror the approved mobile phone mockup:
   English Hero → Crown + Monochrome Arched Portrait + Plinth + Status
   (fits cleanly in the initial mobile screen!) → Arabic Block → Waitlist → Footer
   ========================================================================== */
@media (max-width: 900px) {
  .ts-root {
    padding: max(40px, env(safe-area-inset-top, 40px)) 24px max(34px, env(safe-area-inset-bottom, 34px));
    gap: 52px;
    justify-content: flex-start;
  }

  .ts-row {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 44px;
  }

  .ts-side {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .ts-side--en {
    gap: 17px;
  }

  .ts-eyebrow--en {
    font-size: 11.5px;
    letter-spacing: 0.30em;
  }

  .ts-title--en {
    font-size: clamp(42px, 11.5vw, 56px);
    line-height: 0.98;
    letter-spacing: 0.06em;
  }

  .ts-divider {
    width: 44px;
    transform-origin: center center !important;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold) 75%, transparent 100%) !important;
  }

  .ts-soon--en {
    font-size: clamp(28px, 7.6vw, 36px);
  }

  .ts-domains--en {
    font-size: 10.5px;
    letter-spacing: 0.16em;
    line-height: 1.7;
  }

  /* Centerpiece Arch on Mobile — Matches Phone Mockup Proportions */
  .ts-center {
    width: 100%;
    margin-top: 12px;
  }

  .ts-arch-wrap {
    width: min(79vw, 314px);
    padding: 10px 10px 0;
    transform: none !important;
  }

  .ts-crown {
    top: -20px;
  }

  .ts-crown__svg {
    width: 50px;
    height: 32px;
  }

  .ts-plinth {
    margin: 0;
    width: min(86vw, 340px);
    align-self: center;
  }

  .ts-status {
    margin-top: 20px;
    gap: 10px;
  }

  .ts-status__en {
    font-size: 11.5px;
    letter-spacing: 0.24em;
  }

  .ts-status__ar {
    font-size: 15px;
  }

  /* Arabic Editorial Block on Mobile */
  .ts-side--ar {
    gap: 18px;
    padding-top: 56px;
  }

  .ts-eyebrow--ar {
    font-size: 16px;
  }

  .ts-title--ar {
    font-size: clamp(48px, 13vw, 66px);
  }

  .ts-soon--ar {
    font-size: clamp(32px, 8.6vw, 40px);
  }

  .ts-domains--ar {
    font-size: 14.5px;
  }

  /* Waitlist & Footer on Mobile */
  .ts-bottom {
    gap: 28px;
    width: 100%;
  }

  .ts-waitlist {
    max-width: 440px;
  }

  .ts-waitlist__controls {
    flex-direction: column;
    gap: 10px;
  }

  .ts-input-wrap {
    flex: none;
    width: 100%;
  }

  .ts-input {
    height: 52px;
    text-align: center;
  }

  .ts-btn {
    width: 100%;
    height: 52px;
  }

  .ts-foot {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-top: 20px;
  }

  .ts-foot__en {
    font-size: 11px;
  }

  .ts-foot__ar {
    font-size: 13px;
  }

  /* Preloader proportion on narrow screens */
  .ts-preloader__en {
    font-size: 17px;
    letter-spacing: 0.24em;
  }

  .ts-preloader__ar {
    font-size: 19px;
  }
}

/* Very small phones (<= 375px height/width optimization) */
@media (max-width: 380px) {
  .ts-root {
    padding: 22px 18px 24px;
    gap: 36px;
  }

  .ts-row {
    gap: 32px;
  }

  .ts-arch-wrap {
    width: min(76vw, 266px);
  }

  .ts-status__en {
    font-size: 10.5px;
    letter-spacing: 0.2em;
  }
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION & REDUCED TRANSPARENCY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ts-preloader__curtain {
    transition: opacity 0.25s ease;
  }

  .ts-preloader.is-exiting .ts-preloader__curtain--top,
  .ts-preloader.is-exiting .ts-preloader__curtain--bottom {
    transform: none;
    opacity: 0;
  }

  .crest-arch-outer,
  .crest-arch-inner,
  .crest-base,
  .crown-body,
  .crown-rim,
  .crown-diamond,
  .crown-pearl,
  .ts-preloader__aura,
  .ts-preloader__brand,
  .ts-preloader__tagline,
  .ts-preloader__track {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-item,
  .reveal-line,
  .reveal-divider,
  .reveal-crown,
  .reveal-portrait,
  .reveal-plinth,
  .ts-arch-path,
  .ts-portrait-img {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .ts-portrait-sheen,
  .ts-crown__jewel,
  .ts-status__diamond {
    animation: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .ts-input {
    background: #14120E;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
