:root {
  --ink: #13211f;
  --ink-soft: rgba(19, 33, 31, 0.72);
  --teal: #0c3d38;
  --teal-deep: #072824;
  --brass: #b08a4f;
  --brass-soft: #d4b278;
  --linen: #e9efec;
  --mist: rgba(233, 239, 236, 0.9);
  --glass: rgba(233, 239, 236, 0.14);
  --line: rgba(19, 33, 31, 0.14);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  background: var(--teal-deep);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Atmosphere — full-bleed visual plane */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.atmosphere__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 40, 36, 0.35), rgba(7, 40, 36, 0.12)),
    url("https://www.thearabianstories.com/wp-content/uploads/2022/04/Souq-Al-Wathbah2-2048x1211.jpg")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: drift 28s var(--ease) infinite alternate;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(233, 239, 236, 0.88) 0%,
      rgba(222, 232, 227, 0.72) 45%,
      rgba(196, 212, 205, 0.58) 100%
    ),
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(233, 239, 236, 0.55), transparent 70%);
}

.atmosphere__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(12, 61, 56, 0.22) 49%, rgba(12, 61, 56, 0.22) 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, rgba(176, 138, 79, 0.18) 49%, rgba(176, 138, 79, 0.18) 51%, transparent 52%);
  background-size: 42px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: pulse 10s ease-in-out infinite alternate;
}

.atmosphere__glow--one {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 8%;
  left: 8%;
  background: rgba(176, 138, 79, 0.35);
}

.atmosphere__glow--two {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  right: 4%;
  bottom: 10%;
  background: rgba(12, 61, 56, 0.28);
  animation-delay: -4s;
}

.topbar,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 1s var(--ease) 0.1s forwards;
}

.topbar__mail:hover {
  color: var(--teal);
}

.hero {
  min-height: calc(100svh - 7.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.hero__arabic {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--brass);
  opacity: 0;
  animation: rise 1s var(--ease) 0.2s forwards;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 16vw, 9.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  opacity: 0;
  animation: rise-brand 1.15s var(--ease) 0.32s forwards;
}

.brand__sub {
  margin: 0.15rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0;
  animation: rise 1s var(--ease) 0.48s forwards;
}

.hero__headline {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0.85rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
  opacity: 0;
  animation: rise 1s var(--ease) 0.6s forwards;
}

.hero__lede {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 1s var(--ease) 0.72s forwards;
}

.notify {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: min(100%, 28rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  opacity: 0;
  animation: rise 1s var(--ease) 0.86s forwards;
}

.notify input {
  flex: 1 1 12rem;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.notify input::placeholder {
  color: rgba(19, 33, 31, 0.45);
}

.notify input:focus {
  border-color: var(--teal);
  background: #f7fbf9;
}

.notify button {
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 2px;
  background: var(--teal);
  color: var(--linen);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--ease);
}

.notify button:hover {
  background: var(--teal-deep);
}

.notify button:active {
  transform: translateY(1px);
}

.notify__message {
  flex-basis: 100%;
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--teal);
}

.notify__message.is-error {
  color: #8a3b2b;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 1s var(--ease) 1s forwards;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  margin: 0 0.4rem;
  opacity: 0.5;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-brand {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes pulse {
  from {
    opacity: 0.28;
    transform: scale(0.94);
  }
  to {
    opacity: 0.5;
    transform: scale(1.06);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 1rem;
  }

  .hero {
    min-height: calc(100svh - 8.5rem);
    padding-top: 1.25rem;
  }

  .notify {
    flex-direction: column;
  }

  .notify button,
  .notify input {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__image,
  .atmosphere__glow,
  .topbar,
  .hero__arabic,
  .brand,
  .brand__sub,
  .hero__headline,
  .hero__lede,
  .notify,
  .site-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
