@font-face {
  font-family: 'BY Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/home-assets/amiri-arabic.woff2') format('woff2');
}

.by-home {
  margin: 0;
  background: var(--paper, #f6f2e9);
  color: var(--ink, #211f1b);
  --home-display: Georgia, 'Times New Roman', serif;
  --home-gutter: clamp(18px, 4vw, 64px);
}
html[lang="ar"] .by-home { --home-display: 'BY Amiri', 'Geeza Pro', serif; }
html[lang="zh"] .by-home { --home-display: 'Songti SC', 'Noto Serif CJK SC', SimSun, serif; }
#home-content *, #home-content *::before, #home-content *::after { box-sizing: border-box; }
#home-content a { color: inherit; text-decoration: none; }
#home-content :is(a, button, summary):focus-visible { outline: 3px solid #7468ad; outline-offset: 5px; }
#home-content [hidden] { display: none; }
.home-wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--home-gutter); }
.home-cover {
  display: grid;
  grid-template-columns: minmax(0, 0.79fr) minmax(0, 1.21fr);
  align-items: stretch;
  column-gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(26px, 3.4vw, 52px) 0;
}
.cover-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 16px 0 55px; }
#home-content h1, #home-content h2, #home-content h3 { font-family: var(--home-display); font-weight: 400; color: inherit; margin: 0; }
#home-content h1 { font-size: clamp(65px, 7.5vw, 115px); line-height: .94; letter-spacing: -.065em; }
#home-content h1 span { display: block; }
html[lang="ar"] #home-content h1 { font-size: clamp(76px, 8.1vw, 128px); line-height: 1.12; letter-spacing: 0; }
html[lang="zh"] #home-content h1 { font-size: clamp(63px, 6.5vw, 100px); letter-spacing: -.07em; line-height: 1.12; }
.cover-description, .practical-intro p, .destination-cover p { margin: 0; }
.cover-description { margin-top: clamp(15px, 2vw, 33px); max-width: 34ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.65; }
html[lang="ar"] .cover-description { line-height: 1.85; max-width: 39ch; }
html[lang="zh"] .cover-description { max-width: 24em; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(17px, 2vw, 34px); margin-top: clamp(24px, 2.6vw, 42px); }
#home-content .cover-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 24px;
  color: #fffaf2; background: var(--red, #aa3329); min-height: 50px; font-size: 16px; font-weight: 650;
  transition: background .2s, transform .2s;
}
#home-content .cover-primary:hover { background: #89271f; transform: translateY(-2px); }
#home-content .cover-secondary { display: inline-block; padding: 9px 0 6px; text-decoration: underline; text-underline-offset: .35em; font-weight: 600; }
.home-arrow { display: inline-block; font-family: Arial, sans-serif; font-size: 1.3em; font-weight: 400; line-height: 1; }
[dir="rtl"] .home-arrow { transform: scaleX(-1); }
.home-clock { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted, #625c52); font-size: 14px; margin-top: clamp(26px, 3.2vw, 52px); }
.home-clock bdi { color: var(--ink, #211f1b); font-variant-numeric: tabular-nums; }
.clock-face { width: 15px; height: 15px; border: 1.4px solid currentColor; border-radius: 50%; position: relative; }
.clock-face::before { content: ''; display: block; height: 5px; width: 3px; border-inline-start: 1.3px solid currentColor; border-block-end: 1.3px solid currentColor; position: absolute; top: 2.5px; left: 5.5px; }
.cover-plate { min-width: 0; margin: 0; }
.cover-scene { display: block; position: relative; height: clamp(385px, 37vw, 600px); overflow: hidden; isolation: isolate; background: #31372c; }
.cover-scene picture { display: contents; }
.cover-scene img, .destination-picture img { display: block; height: 100%; width: 100%; object-fit: cover; }
.cover-scene img { transition: transform 1s cubic-bezier(.22,.65,.17,1); }
.cover-scene:hover img { transform: scale(1.025); }
.scene-seal { position: absolute; top: clamp(15px,2vw,29px); left: clamp(15px,2vw,29px); writing-mode: vertical-rl; font: 500 clamp(20px,2.2vw,32px)/1 'Songti SC','Noto Serif CJK SC',serif; letter-spacing: .1em; background: #a53226; color: #fff7e5; padding: 9px 5px 6px; }
.plate-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; }
.caption-place { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.location-pin { width: 12px; height: 12px; border: 1.5px solid var(--red, #aa3329); border-radius: 65% 65% 65% 0; transform: rotate(-45deg); position: relative; margin-block-end: 3px; flex: none; }
.location-pin::after { position: absolute; content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--red, #aa3329); inset: 3px; }
.plate-buttons { display: flex; align-items: center; gap: 2px; }
.plate-buttons button { appearance: none; background: transparent; color: var(--ink, #211f1b); font: normal 20px/1 Arial,sans-serif; border: 0; min-width: 39px; height: 42px; cursor: pointer; }
.plate-buttons button:hover { color: var(--red, #aa3329); background: #eae4da; }
.home-destinations { padding-block: clamp(52px,6.2vw,104px) clamp(64px,7.7vw,124px); }
.home-section-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 15px; margin-bottom: clamp(23px,3vw,44px); }
#home-content h2 { font-size: clamp(42px,4.5vw,70px); line-height: 1.08; letter-spacing: -.052em; }
html[lang="ar"] #home-content h2 { line-height: 1.45; letter-spacing: 0; }
html[lang="zh"] #home-content h2 { line-height: 1.28; }
.home-text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
#home-content .home-text-link:hover, #home-content .cover-secondary:hover, #home-content .caption-place a:hover { color: var(--red, #aa3329); }
.destination-spread { display: grid; grid-template-columns: 1.08fr .84fr 1.08fr; gap: clamp(16px,2.5vw,42px); align-items: start; }
.destination-cover { display: block; min-width: 0; }
.destination-picture { width: 100%; overflow: hidden; background: #d7d3c9; height: clamp(190px,18vw,284px); }
.destination-picture img { transition: transform .65s; }
.destination-cover:nth-child(2) .destination-picture { height: clamp(224px,21.5vw,330px); }
.destination-cover:first-child img { object-position: 50% 51%; }
.destination-cover:hover img { transform: scale(1.045); }
.destination-title { display: flex; gap: 12px; align-items: baseline; margin-top: 16px; }
#home-content h3 { font-size: clamp(31px,3.1vw,49px); line-height: 1.13; letter-spacing: -.05em; }
html[lang="ar"] #home-content h3 { line-height: 1.4; letter-spacing: 0; }
.destination-title > span { font-size: 14px; color: var(--red, #aa3329); }
html[lang="zh"] .destination-title > span { display: none; }
.destination-cover p { margin-top: 3px; color: var(--muted, #625c52); font-size: 16px; line-height: 1.5; }
.home-practical { background: #292e26; color: #faf5ea; }
.practical-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; padding-block: clamp(48px,6.5vw,110px); }
.practical-intro p { font-size: 18px; line-height: 1.65; margin-block: 14px 25px; max-width: 34ch; color: #e8e5d7; }
.practical-rows { display: flex; flex-direction: column; justify-content: center; }
.practical-rows > a { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-block: 15px; font-size: clamp(19px,1.7vw,28px); }
.practical-rows .home-arrow { color: #d4ddc9; }
#home-content .practical-rows a:hover, #home-content .practical-intro a:hover { color: #f6cb95; }
.home-credits { padding-block: 22px; }
.home-credits summary { color: var(--muted, #625c52); font-size: 14px; width: fit-content; cursor: pointer; }
.home-credits p, .home-credits ul { font-size: 14px; line-height: 1.65; }
.home-credits ul { padding-inline-start: 22px; }
#home-content .home-credits a { text-decoration: underline; }
@keyframes scene-turn { from { opacity: .35; } to { opacity: 1; } }
.cover-scene img.scene-changed { animation: scene-turn .3s ease-out; }
@media (min-width: 781px) and (max-width: 1030px) {
  .home-cover { column-gap: 24px; grid-template-columns: .93fr 1.07fr; }
  #home-content h1 { font-size: clamp(60px,7.2vw,82px); }
  html[lang="ar"] #home-content h1 { font-size: clamp(76px,8.4vw,94px); }
}
@media (max-width: 780px) {
  .home-cover { grid-template-columns: 1fr; padding-top: 32px; gap: 26px; }
  .cover-copy { padding: 0; position: relative; }
  #home-content h1 { font-size: clamp(64px,10vw,86px); }
  html[lang="ar"] #home-content h1 { font-size: clamp(73px,11vw,94px); line-height: 1.13; }
  html[lang="zh"] #home-content h1 { font-size: clamp(58px,8vw,84px); }
  .cover-description { margin-top: 13px; max-width: 45ch; }
  html[lang="ar"] .cover-description { max-width: 48ch; }
  .cover-actions { margin-top: 20px; }
  #home-content .home-clock { display: none; }
  .cover-scene { height: clamp(270px,55vw,410px); }
  .destination-spread { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .destination-cover:first-child { grid-column: 1 / -1; }
  .destination-cover:first-child .destination-picture { height: clamp(210px,44vw,340px); }
  .destination-cover:first-child img { object-position: 50% 48%; }
  .destination-cover:nth-child(n+2) .destination-picture { height: clamp(145px,29vw,230px); }
  .practical-inner { gap: 4vw; }
}
@media (max-width: 560px) {
  .home-cover { padding-top: 24px; gap: 24px; }
  .cover-scene { height: clamp(240px,61vw,322px); }
  #home-content .cover-primary { min-height: 46px; padding: 9px 18px; }
  .home-section-head { margin-bottom: 18px; gap: 12px; }
  .home-text-link { font-size: 14px; gap: 8px; }
  #home-content h2 { font-size: clamp(34px,8.8vw,48px); }
  .destination-spread { gap: 22px 14px; }
  .destination-title { flex-wrap: wrap; gap: 4px 8px; margin-top: 9px; }
  .destination-title > span { font-size: 12px; }
  #home-content h3 { font-size: clamp(24px,6.6vw,35px); }
  .destination-cover p { font-size: 14px; }
  .practical-inner { grid-template-columns: 1fr; gap: 22px; }
  .practical-intro p { margin-block: 6px 15px; }
  .plate-caption { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  #home-content *, #home-content *::before, #home-content *::after { transition: none !important; animation: none !important; }
}
.by-home #site-header { border-block-end: 0; background: #f0ece3; }
.by-home .by-foot { border-block-start: 0; margin-top: 0; }
.by-home #site-footer { background: #eee9df; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes home-arrive { from { transform: translateY(9px); opacity: .72; } to { transform: translateY(0); opacity: 1; } }
  .home-visible { animation: home-arrive .45s cubic-bezier(.22,.7,.2,1) backwards; }
  .cover-description.home-visible,.destination-cover:nth-child(2).home-visible { animation-delay: 45ms; }
  .cover-actions.home-visible,.destination-cover:nth-child(3).home-visible { animation-delay: 80ms; }
}
