/* =============================================================
   mydoscher · Coming Soon — Premium Stylesheet v2
   Segoe UI throughout · Refined · Production-ready
   ============================================================= */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Palette */
  --gold:           #efa23d;
  --gold-dim:       rgba(239, 162, 61, 0.45);
  --gold-faint:     rgba(239, 162, 61, 0.12);
  --gold-glow:      rgba(239, 162, 61, 0.18);
  --ink:            #18150f;
  --ink-mid:        #2e2820;
  --muted:          #756d61;
  --muted-light:    #aba39a;
  --cream:          #f9f6f0;
  --cream-warm:     #f4f0e8;
  --surface:        rgba(249, 246, 240, 0.72);
  --border:         rgba(24, 21, 15, 0.09);
  --border-gold:    rgba(239, 162, 61, 0.28);

  /* Typography — Segoe UI stack */
  --ff: "Segoe UI", "Segoe UI Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-silk:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ── Base ──────────────────────────────────────────────────── */
body {
  font-family: var(--ff);
  background: var(--cream);
  color: var(--ink);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Ambient canvas (animated by JS) ──────────────────────── */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.ambient-canvas.ready { opacity: 1; }

/* ── Noise overlay ─────────────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Page shell ─────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  justify-items: center;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.5rem, 6vw, 4rem);
  gap: clamp(2rem, 4.5vh, 3.5rem);
  text-align: center;
}

/* ── Header / Logo ─────────────────────────────────────────── */
.header {
  will-change: opacity, transform;
  animation: revealUp 1.1s var(--ease-silk) 0.1s both;
}

.logo-link { display: inline-block; }

.logo-img {
  height: clamp(30px, 4.5vw, 44px);
  width: auto;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
.logo-link:hover .logo-img {
  opacity: 0.65;
  transform: scale(0.98);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 3.5vh, 2.4rem);
  animation: revealUp 1.2s var(--ease-silk) 0.28s both;
  /* subtle breathing */
  will-change: transform;
  animation-fill-mode: both;
}

/* ── Ornament ──────────────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  width: clamp(80px, 18vw, 160px);
}

.orn-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  display: block;
}

.orn-gem {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  display: block;
  opacity: 0.75;
}

/* ── Heading block ─────────────────────────────────────────── */
.heading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  flex-wrap: nowrap;
}

.h-ar {
  font-family: var(--ff);
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}

.h-rule {
  width: 1px;
  height: clamp(2.8rem, 6vw, 4.5rem);
  background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
  flex-shrink: 0;
}

.h-en {
  font-family: var(--ff);
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 200;
  letter-spacing: 0.22em;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── Subtext ───────────────────────────────────────────────── */
.sub-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 520px;
}

.sub-ar {
  font-family: var(--ff);
  font-size: clamp(0.88rem, 1.9vw, 1rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.9;
  direction: rtl;
}

.sub-en {
  font-family: var(--ff);
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  font-weight: 300;
  color: var(--muted-light);
  letter-spacing: 0.09em;
  line-height: 1.75;
  direction: ltr;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact {
  animation: revealUp 1.2s var(--ease-silk) 0.5s both;
}

.contact-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 0;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.contact-item {
  display: flex;
}

.contact-sep {
  width: 0.5px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem clamp(1rem, 2.5vw, 1.5rem);
  font-family: var(--ff);
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  transition:
    color      0.3s ease,
    background 0.3s ease;
}

.contact-link:hover {
  color: var(--gold);
  background: var(--gold-faint);
}

.ci-icon {
  display: flex;
  align-items: center;
  color: var(--gold);
  opacity: 0.8;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
.contact-link:hover .ci-icon { opacity: 1; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  animation: revealUp 1.2s var(--ease-silk) 0.65s both;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-rights {
  font-family: var(--ff);
  font-size: clamp(0.67rem, 1.3vw, 0.75rem);
  font-weight: 400;
  color: var(--muted-light);
  letter-spacing: 0.07em;
}

.footer-crafted {
  font-family: var(--ff);
  font-size: clamp(0.62rem, 1.2vw, 0.7rem);
  font-weight: 300;
  color: rgba(171, 163, 154, 0.5);
  letter-spacing: 0.05em;
}

.f-dot {
  color: var(--gold);
  opacity: 0.4;
  user-select: none;
  font-size: 0.9em;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

.hero {
  animation:
    revealUp 1.2s var(--ease-silk) 0.28s both,
    breathe  7s   ease-in-out      2s    infinite;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 680px) {
  .heading-wrap {
    flex-direction: column;
    gap: 0.5rem;
  }

  .h-rule { display: none; }

  .h-en {
    letter-spacing: 0.18em;
  }

  .contact-list {
    flex-direction: column;
    border-radius: 16px;
    min-width: 240px;
  }

  .contact-sep {
    width: 100%;
    height: 0.5px;
    align-self: auto;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }

  .footer-row {
    flex-direction: column;
    gap: 0.2rem;
  }

  .footer-row .f-dot { display: none; }
}

@media (max-width: 380px) {
  .page { padding: 2rem 1.2rem; gap: 1.8rem; }
  .h-ar, .h-en { letter-spacing: 0.03em; }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
