@font-face {
  font-family: "Vazir";
  src: url("./assets/fonts/Vazir-FD-WOL.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("./assets/fonts/Vazir-Bold-FD-WOL.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root { color-scheme: dark; --gold: #efc06b; --cream: #fff8ea; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #00271d; color: var(--cream); font-family: "Vazir", Tahoma, sans-serif; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
/* Fill the viewport; crop the artwork proportionally and size content independently. */
.landing {
  position: relative;
  container-type: size;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #00271d url("./assets/backgrounds/diora-desktop.jpg") center / cover no-repeat;
}
.contact-card { position: absolute; z-index: 1; inset: 0 4.4% 0 auto; width: 34.7%; text-align: center; }
.corner-decoration, .bottom-decoration { display: none; }
.logo { position: absolute; top: 9.5%; left: 35%; width: 30%; height: 13%; object-fit: contain; display: block; }
.divider { position: absolute; display: block; object-fit: fill; width: 70%; left: 15%; }
.title-divider { top: 26.2%; }
h1 { position: absolute; top: 30.3%; width: 100%; margin: 0; color: #ffdfa1; font-size: min(3.6cqw, 5.75cqh); font-weight: 700; line-height: 1.6; white-space: nowrap; }
.contact-divider { top: 41.7%; }
.contact-list { position: absolute; top: 45.3%; left: 14%; width: 72%; height: 37.2%; display: grid; grid-template-rows: 24% 26% 28% 22%; }
.contact-row { position: relative; display: grid; direction: ltr; grid-template-columns: minmax(0, 1fr) 1px 12%; gap: 2.5%; align-items: center; min-width: 0; min-height: 0; color: inherit; text-decoration: none; }
.contact-value { min-width: 0; text-align: center; font-size: min(2.4cqw, 3.84cqh); line-height: 1.35; }
.digits, .social { font-family: Arial, sans-serif; }
.digits { letter-spacing: .08em; }
.social { text-align: center; letter-spacing: .04em; }
.address { direction: rtl; font-size: max(11px, min(1.5cqw, 2.4cqh)); line-height: 1.6; white-space: nowrap; }
.address-break { display: none; }
.vertical-divider { width: 1px; height: 45%; background: var(--gold); opacity: .75; }
.address-row .vertical-divider { visibility: hidden; }
.contact-icon { width: min(2.5cqw, 4cqh); height: min(4.2cqw, 6.7cqh); max-height: 55%; object-fit: contain; justify-self: center; }
.phone-row:nth-child(2)::after, .social-row::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: var(--gold); opacity: .8; }
.footer-divider { top: 82.5%; transform: translateY(-50%); }
.tagline { position: absolute; top: 87%; width: 100%; margin: 0; color: var(--gold); font-family: Georgia, serif; font-size: min(1.05cqw, 1.68cqh); letter-spacing: .32em; }
.contact-row:hover { background: rgba(239, 192, 107, .09); }
.contact-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; background: rgba(239, 192, 107, .09); }

@media (orientation: landscape) {
  .contact-row .vertical-divider, .contact-row .contact-icon { transform: translateX(-15px); }
  .address-row { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .address-row .vertical-divider, .address-row .contact-icon { display: none; }
  .address-row .address { text-align: center; }
}

@media (max-aspect-ratio: 1/1) {
  .landing { background-image: none; }
  .landing::before, .landing::after { content: ""; position: absolute; left: 0; width: 100%; pointer-events: none; }
  .landing::before { top: 0; height: 55%; background: url("./assets/backgrounds/diora-mobile-full-hero.jpg") center / cover no-repeat; mask-image: linear-gradient(to bottom, #000 82%, transparent); }
  .landing::after { bottom: 0; height: 46%; background: url("./assets/backgrounds/diora-mobile-footer.jpg") center bottom / cover no-repeat; mask-image: linear-gradient(to bottom, transparent, #000 15%); }
  .corner-decoration { display: block; position: absolute; top: 0; right: 0; width: min(34cqw, 18cqh); aspect-ratio: 292 / 220; background: url("./assets/backgrounds/diora-mobile-corner.jpg") center / contain no-repeat; mask-image: linear-gradient(to left, #000 65%, transparent), linear-gradient(to top, transparent, #000 35%); mask-composite: intersect; }
  .bottom-decoration { display: block; position: absolute; z-index: 1; bottom: 0; width: min(26cqw, 15cqh); aspect-ratio: 260 / 346; background: center / contain no-repeat; pointer-events: none; mask-image: linear-gradient(to bottom, transparent, #000 50%); }
  .bottom-left { left: 0; background-image: url("./assets/backgrounds/diora-mobile-bottom-left.jpg"); }
  .bottom-right { right: 0; background-image: url("./assets/backgrounds/diora-mobile-bottom-right.jpg"); }
  .contact-card { inset: 0; width: 100%; }
  .contact-card::before { content: ""; position: absolute; top: 1%; left: 26%; width: 48%; height: 16.5%; background: rgba(0, 39, 29, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); mask-image: radial-gradient(ellipse, #000 35%, transparent 72%); pointer-events: none; }
  .logo { z-index: 1; top: 3%; left: 34%; width: 32%; height: 11.5%; }
  .divider { left: 24%; width: 52%; }
  .title-divider { top: 52.5%; }
  h1 { top: 55.7%; font-size: max(22px, min(7.5cqw, 3.46cqh)); }
  .contact-divider { top: 62%; }
  .contact-list { top: 64.1%; left: 21%; width: 58%; height: 27.9%; grid-template-rows: 24% 24% 24% 28%; }
  .contact-row { grid-template-columns: minmax(0, 1fr) 1px 13%; column-gap: clamp(10px, 3cqw, 16px); }
  .contact-value { text-align: right; font-size: max(16px, min(5.4cqw, 2.8cqh)); }
  .social { text-align: right; padding: 0; letter-spacing: .01em; }
  .contact-row .contact-value { padding-right: 10px; }
  .address-row { width: 100%; margin: 0; }
  .address { font-size: max(12px, min(4cqw, 1.7cqh)); line-height: 1.5; white-space: nowrap; }
  .address-break { display: block; }
  .vertical-divider { height: 65%; }
  .address-row .vertical-divider { visibility: visible; height: 55%; }
  .contact-icon { width: min(5.6cqw, 2.59cqh); height: min(6.3cqw, 2.91cqh); max-height: none; }
  .footer-divider { top: 92%; }
  .tagline { top: 95.3%; font-size: min(2.35cqw, 1.085cqh); }
}

@media (max-aspect-ratio: 1/1) and (max-height: 520px) {
  h1 { top: 55%; font-size: 20px; }
}

/* One restrained entrance sequence; no looping motion or layout changes. */
@media (prefers-reduced-motion: no-preference) {
  .logo, h1, .contact-row, .tagline {
    animation: diora-reveal 800ms cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .logo { animation-duration: 1000ms; animation-delay: 80ms; }
  h1 { animation-delay: 220ms; }
  .contact-row:nth-child(1) { animation-delay: 480ms; }
  .contact-row:nth-child(2) { animation-delay: 590ms; }
  .contact-row:nth-child(3) { animation-delay: 700ms; }
  .contact-row:nth-child(4) { animation-delay: 810ms; }
  .tagline { animation-delay: 950ms; }
  .divider {
    animation: diora-line 1000ms cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .title-divider { animation-delay: 180ms; }
  .contact-divider { animation-delay: 350ms; }
  .footer-divider { animation-delay: 850ms; }
  .contact-row { transition: background-color 220ms ease; }
  .contact-icon { transition: filter 220ms ease; }
  .contact-row:hover .contact-icon { filter: brightness(1.15); }
  .contact-row:focus-visible { animation: none; }
}

@keyframes diora-reveal {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes diora-line {
  from { opacity: 0; scale: .8 1; }
  to { opacity: 1; scale: 1 1; }
}

