:root {
  color-scheme: dark;
  --canvas: #111110;
  --panel: #191816;
  --ink: #f6f0e6;
  --muted: #b9afa1;
  --gold: #d9b978;
  --line: #4b4132;
  --rail: clamp(220px, 22vw, 305px);
  --persian-display: "Noto Naskh Arabic", "F_nazanin", "B Nazanin", "Geeza Pro", "Arabic Typesetting", serif;
  font: 16px/1.65 system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}
:root[lang="fa"] { font-family: Tahoma, Arial, sans-serif; }
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
svg { width: 22px; height: 22px; flex: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
section { scroll-margin-top: 24px; }
h2 { font-size: clamp(1.6rem, 3.25vw, 3rem); line-height: 1.25; font-weight: 500; }
:root[lang="en"] h1, :root[lang="en"] h2, .payment strong { font-family: Georgia, serif; }
h3 { font-size: 1.03rem; font-weight: 600; }

.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--rail);
  z-index: 3;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vh, 26px);
  padding: clamp(16px, 3.4vh, 36px) 17px 20px;
  border-inline-end: 1px solid #52412b;
  background:
    linear-gradient(143deg, transparent 23%, #08080a62 23% 43%, transparent 43% 71%, #2c242632 71%),
    linear-gradient(28deg, #151214, #201e20 51%, #101012);
}
.brand { display: grid; justify-items: center; }
.site-logo { width: 76px; height: auto; object-fit: contain; mix-blend-mode: screen; }
.brand .site-logo { width: clamp(108px, 13vw, 152px); }
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  isolation: isolate;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 49% 42%, #516e8c6b 0%, #34527145 32%, transparent 67%),
    linear-gradient(145deg, #233d59 0%, #192d47 48%, #14243a 100%);
  pointer-events: none;
  animation: intro-screen 2.15s ease-in-out both;
}
.brand-intro img {
  width: min(74vw, 53svh, 390px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  animation: intro-logo 2.15s ease-in-out both;
}
@keyframes intro-screen {
  0%, 64% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes intro-logo {
  0% { opacity: 0; transform: scale(.97); }
  32%, 58% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.015); }
}
.rail nav { display: grid; gap: 4px; }
nav a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .85rem; }
.rail nav a { min-height: 41px; padding: 6px 10px; border: 1px solid transparent; border-radius: 10px; }
.rail nav a[aria-current], .rail nav a:hover { border-color: #b89155; background: linear-gradient(130deg,#71502f88,#a67b464d); color: #fff0d2; }
.rail nav a[aria-current] svg, .rail nav a:hover svg { color: var(--gold); }
.rail-teaser { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; justify-items: center; gap: 3px; min-height: 94px; aspect-ratio: 1.65; margin-top: auto; padding: 9px; border: 1px solid #a48355; border-radius: 12px; text-align: center; font-size: .85rem; }
.rail-teaser img { position: absolute; inset: 0; z-index: -2; object-position: 50% 43%; }
.rail-teaser::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#09090bed,transparent 68%); z-index: -1; }
.rail-teaser:hover { border-color: #f3d493; }
.languages { display: flex; gap: 3px; }
.language { background: #17171cc9; border: 1px solid #7b664b; border-radius: 6px; padding: 5px 9px; min-width: 37px; min-height: 36px; font: .74rem/1 system-ui, sans-serif; color: var(--ink); }
.language[aria-pressed="true"] { background: linear-gradient(145deg,#deba81,#a77840); color: #19120b; border-color: #eac897; }
.dock, .top .brand, .mobile-teaser { display: none; }
main { margin-inline-start: var(--rail); }
.top { display: flex; justify-content: flex-start; position: relative; z-index: 1; }
.hero {
  min-height: max(640px, 100svh);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  row-gap: 15px;
  padding: clamp(20px, 4vw, 57px) clamp(22px, 4vw, 68px) 22px;
  background: #181c29;
}
.hero-photo { position: absolute; inset-block: 0; inset-inline: 24% 0; z-index: -2; mask-image: linear-gradient(270deg, #000 76%, transparent 100%); }
[dir="rtl"] .hero-photo { mask-image: linear-gradient(90deg, #000 76%, transparent 100%); }
.cover-art, .cover-art img { position: absolute; inset: 0; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(270deg,transparent 48%,#141a2b35 63%,#141a2bdc 84%,#171c2a 100%),
    linear-gradient(0deg,#131216 0%,#151318ba 12%,transparent 36%);
}
[dir="rtl"] .hero::after { background: linear-gradient(90deg,transparent 48%,#141a2b35 63%,#141a2bdc 84%,#171c2a 100%), linear-gradient(0deg,#131216 0%,#151318ba 12%,transparent 36%); }
.hero-content { width: clamp(210px, 34%, 410px); text-align: start; padding-block: 9px 24px; }
.hero-kicker { font-size: clamp(.85rem, 1.35vw, 1.25rem); }
h1 { font-size: clamp(2rem, 3.8vw, 4.1rem); font-weight: 500; line-height: 1.13; color: #e9b86f; margin-block: 7px 12px; }
[lang="fa"] h1 { font-family: var(--persian-display); font-size: clamp(2.05rem, 3.65vw, 4.3rem); line-height: 1.25; font-weight: 700; }
[lang="fa"] .hero-kicker, [lang="fa"] .hero-copy { font-family: var(--persian-display); font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.5; }
.wordmark { font: clamp(1.5rem, 2.8vw, 3rem)/1.13 Georgia, serif; }
.hero-subtitle { color: var(--gold); font: clamp(.88rem, 1.6vw, 1.38rem)/1.35 system-ui, sans-serif; margin-top: 5px; }
.hero-rule { width: 48px; height: 1px; background: var(--gold); margin-block: 21px 14px; }
.eyebrow { color: var(--gold); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 23px; height: 1px; background: var(--gold); }
[lang="fa"] .eyebrow { letter-spacing: 0; }
.hero-copy { color: #f0e6d8; font-size: clamp(.86rem, 1.45vw, 1.16rem); }
.hero-copy span { display: block; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 16px; min-height: 46px; font-size: .83rem; font-weight: 650; border-radius: 7px; }
.gold { background: var(--gold); color: #18140e; }
.gold:hover { background: #f2d294; }
.ghost { border: 1px solid #a5875c; background: #171512a8; }
.ghost:hover { border-color: var(--gold); }
.sales-link { flex-direction: column; gap: 2px; line-height: 1.35; }
.sales-link bdi { white-space: nowrap; color: inherit; }
.arrow { direction: ltr; display: inline-block; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.slide-panel { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; }
.slide-caption { display: flex; grid-column: 1; flex-wrap: wrap; align-items: center; gap: 5px 9px; font-size: .74rem; }
.badge { display: inline-block; width: fit-content; padding: 3px 7px; border: 1px solid #9c8055; color: #f0d6a3; background: #18140fe6; font-size: .65rem; font-weight: 500; }
.slide-controls { display: flex; grid-column: 2; align-items: center; gap: 5px; font-size: .76rem; white-space: nowrap; color: var(--gold); }
.slide-controls button, .viewer-bar button { display: grid; place-items: center; background: #171512d9; border: 1px solid #806b4b; border-radius: 7px; width: 44px; height: 44px; font-size: 1.45rem; line-height: 1; }
.slide-controls button:hover, .viewer-bar button:hover { background: #403322; }
[dir="rtl"] .slide-controls > button { transform: scaleX(-1); }
.slide-dots { display: flex; }
.slide-dots button { border: 0; width: 29px; padding: 0; background: transparent; }
.slide-dots button span { width: 9px; height: 9px; border: 1px solid #ead6b8; border-radius: 50%; background: #e4d8c169; }
.slide-dots button[aria-pressed="true"] span { background: #e5b877; }
.hero-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(6px,1.25vw,15px); }
.hero-facts a { min-height: clamp(70px, 10vh, 106px); display: grid; align-content: center; justify-items: center; gap: 4px; padding: 7px 4px; border: 1px solid #967e5b; border-radius: 12px; background: linear-gradient(150deg,#3e332d94,#211d20e6); text-align: center; font-size: clamp(.69rem,1.25vw,.94rem); }
.hero-facts svg { width: 29px; height: 29px; color: var(--gold); }
.hero-facts a:hover { border-color: var(--gold); background-color: #67482f; }
.teaser[id] { scroll-margin-top: 20px; }
.body-wrap { max-width: 1440px; margin-inline: auto; padding-inline: clamp(24px, 5vw, 77px); }
.intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 25px; align-items: end; padding-block: clamp(36px, 5vw, 68px); border-bottom: 1px solid var(--line); }
.intro p:last-child { color: var(--muted); max-width: 62ch; }
.intro .eyebrow, .section > .eyebrow { margin-bottom: 9px; }
.section { padding-block: clamp(38px, 5vw, 73px); border-bottom: 1px solid var(--line); }
.media-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; margin-top: 23px; align-items: start; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.filters button { background: #181714; border: 1px solid var(--line); padding: 7px 10px; font-size: .75rem; color: var(--muted); }
.filters button[aria-pressed="true"], .filters button:hover { border-color: var(--gold); color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 0; border: 1px solid var(--line); position: relative; overflow: hidden; text-align: start; aspect-ratio: 1.15; background: var(--panel); isolation: isolate; }
.tile img { position: absolute; inset: 0; z-index: -2; transition: transform .28s; }
.tile:hover img { transform: scale(1.045); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0e0c0be8, transparent 68%); z-index: -1; }
.tile-copy { position: absolute; inset-inline: 10px; bottom: 10px; display: grid; gap: 5px; }
.tile strong { font-size: .79rem; }
.empty { color: var(--muted); grid-column: 1 / -1; padding: 22px 0; }
.teaser { border: 1px solid var(--line); background: var(--panel); }
.teaser-image { aspect-ratio: 1.38; background-size: cover; background-position: center 36%; }
.teaser video { width: 100%; display: block; }
.teaser-copy { padding: 16px; }
.card > svg, .visit > svg { color: var(--gold); }
.teaser-copy p, .card p, .visit p { color: var(--muted); font-size: .87rem; }
.teaser-copy .badge { margin-top: 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: clamp(15px, 2.2vw, 27px); }
.card h3 { margin-block: 6px 10px; }
.card ul { margin: 0; padding-inline-start: 19px; font-size: .89rem; color: var(--muted); }
.card li + li, .card p + p { margin-top: 5px; }
.card li a { color: var(--gold); text-decoration: underline; }
.map-links { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--gold); }
.map-links a:hover { border-color: var(--gold); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head > span { color: var(--gold); font-size: .83rem; }
.payment { padding: 0; margin: 23px 0 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.payment li { display: grid; gap: 7px; align-content: start; padding: 13px; border: 1px solid var(--line); background: var(--panel); }
.payment li:first-child { border-color: #a98b56; background: #251d14; }
.payment strong { color: var(--gold); font-size: clamp(1.5rem, 3vw, 2.55rem); font-weight: 400; }
.payment span { color: var(--muted); font-size: .75rem; }
.visit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; border: 1px solid #816b49; background: linear-gradient(120deg,#2b2217,#161512); padding: clamp(16px, 4vw, 39px); margin-top: 42px; }
.visit > svg { width: 45px; height: 45px; }
.visit h2 { font-size: clamp(1.4rem, 3vw, 2.4rem); }
.visit .button, .contact-pending { margin-inline-start: auto; }
footer {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas: "location credit logo";
  align-items: center;
  gap: 10px;
  padding-block: 16px;
  color: var(--muted);
  font-size: .72rem;
}
footer .site-logo { grid-area: logo; justify-self: end; width: 48px; }
.footer-location { grid-area: location; justify-self: start; padding-block: 8px; }
.footer-location:hover { color: var(--gold); }
.footer-credit {
  grid-area: credit;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid #84704e;
  border-radius: 6px;
  background: linear-gradient(140deg, #24364a, #182332);
  color: #e0d5c3;
  font: .72rem/1.45 system-ui, sans-serif;
  white-space: nowrap;
}
.footer-credit strong { color: #f2d19a; font-weight: 600; }
.viewer { color: var(--ink); border: 1px solid var(--line); background: var(--canvas); width: min(92vw, 920px); max-height: 95dvh; padding: 10px; }
.viewer::backdrop { background: #000d; }
.viewer img { height: auto; max-height: 72dvh; object-fit: contain; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 8px; }
.viewer-bar p { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; }
.viewer .slide-controls { justify-content: center; margin-top: 8px; }
.subpage { min-height: 100svh; padding: clamp(17px,4vw,58px); background: radial-gradient(ellipse at top,#282129,#111110 62%); }
.subpage-content { width: min(100%, 1110px); margin-inline: auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-block: 4px 12px; color: var(--gold); font-size: .83rem; }
.back-link::before { content: '‹'; font-size: 1.4rem; }
[dir="rtl"] .back-link::before { content: '›'; }
.page-heading { margin-block: 12px 14px; }
.page-heading h1 { margin-block: 10px 0; }
.page-copy { color: var(--muted); margin-bottom: 21px; }
.home-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 10px; padding-block: 26px; }
.home-links a { min-height: 60px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.home-links svg { color: var(--gold); }
.map-frame { display: block; width: 100%; height: clamp(265px, 54vh, 590px); border: 1px solid #927348; border-radius: 14px; background: #dedbd3; }
.map-frame + .page-heading { margin-top: 25px; }
.route-title { font-size: 1.16rem; }
.spec-highlights, .spec-group { margin-top: clamp(22px, 4vw, 42px); }
.spec-highlights h2, .spec-group h2 { font-size: clamp(1.15rem, 2vw, 1.65rem); color: var(--gold); }
.spec-highlights ul { list-style: none; padding: 0; margin: 13px 0 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 10px; }
.spec-highlights li { padding: 15px; border: 1px solid #816745; border-radius: 10px; background: linear-gradient(145deg,#32251a,#201b17); }
.spec-highlights h3 { color: #efca8f; margin-bottom: 6px; }
.spec-highlights p { color: var(--ink); font-size: .88rem; }
.tech-table { margin: 13px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tech-table > div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: 10px; padding: 10px 14px; background: #1d1a17; }
.tech-table > div:nth-child(even) { background: #151413; }
.tech-table > div + div { border-top: 1px solid #302a22; }
.tech-table dt { font-weight: 600; }
.tech-table dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.teaser h2 { font: inherit; font-size: 1.06rem; margin-top: 8px; }
.visit-page { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); border: 1px solid #8b714e; border-radius: 15px; overflow: hidden; background: radial-gradient(ellipse at center,#34291e,#181514); }
.visit-art { position: relative; min-height: 335px; }
.visit-art img { position: absolute; inset: 0; object-position: 50% 36%; }
.visit-art .badge { position: absolute; inset-inline-start: 12px; bottom: 12px; }
.visit-copy { padding: clamp(22px,4vw,58px); align-self: center; }
.visit-copy h2 { font-size: 1.26rem; margin-bottom: 8px; }
.visit-copy p { color: var(--muted); }
.visit-copy .sales-link { margin-top: 21px; }

@media (max-width: 1060px) {
  :root { --rail: 188px; }
  .rail { padding-inline: 11px; }
  .rail nav a { font-size: .76rem; }
  .hero { padding-inline: 22px; }
  .payment { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  main { margin-inline-start: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .rail { display: none; }
  .hero { min-height: 0; grid-template-rows: auto; align-items: start; gap: 9px; padding: 11px clamp(13px, 4vw, 28px) 23px; background: linear-gradient(#1c1b23,#101012); }
  .hero::after { display: none; }
  .top { order: -3; justify-content: center; align-items: center; min-height: 96px; }
  .top .brand { display: grid; }
  .top .brand .site-logo { width: 94px; }
  .languages { position: absolute; inset-inline-end: 0; top: 3px; }
  .language { min-width: 33px; min-height: 33px; padding: 3px 5px; }
  .hero .hero-photo { order: -2; position: relative; inset: auto; z-index: auto; height: min(57svh, 560px); min-height: 250px; overflow: hidden; border: 1px solid #745b3d; border-radius: 15px; mask-image: none; }
  [dir="rtl"] .hero::after { display: none; }
  .hero-photo .desktop-art { display: none; }
  .mobile-teaser { position: absolute; inset: 0; isolation: isolate; display: grid; align-content: end; justify-items: center; gap: 5px; padding: 13px; text-align: center; font-weight: 700; }
  .mobile-teaser::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#0c0b0bed,transparent 34%); }
  .mobile-teaser img { position: absolute; inset: 0; z-index: -2; object-position: 50% 45%; }
  .mobile-teaser > span:first-of-type { font-size: 1.15rem; }
  .slide-panel { order: -1; grid-template-columns: 1fr auto 1fr; }
  .hero-photo:has(.mobile-teaser) ~ .slide-panel .slide-caption { visibility: hidden; }
  .slide-caption > span:last-child { display: none; }
  .slide-controls { gap: 0; }
  .slide-controls button { border-color: transparent; background: transparent; width: 40px; height: 44px; }
  .slide-dots button { width: 27px; }
  .hero-content { width: 100%; margin: 0; padding: 8px 0 13px; }
  .hero-content h1 { font-size: clamp(1.95rem, 7vw, 3rem); }
  .hero-rule { margin-block: 11px; }
  .hero-facts { display: none; }
  .dock { position: fixed; z-index: 3; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,minmax(0, 1fr)); gap: 6px; border-top: 1px solid #594633; background: #121113f5; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .dock a { min-height: 57px; flex-direction: column; justify-content: center; gap: 1px; padding: 2px; border: 1px solid #42352b; background: #211b19; border-radius: 9px; text-align: center; font-size: .66rem; }
  .dock a svg { color: var(--gold); }
  .dock a[aria-current], .dock a:hover { color: var(--gold); border-color: #947648; }
  .visit-page { grid-template-columns: 1fr; }
  .visit-art { min-height: clamp(175px,39vh,360px); }
}
@media (max-width: 550px) {
  footer { grid-template-columns: 1fr 1fr; grid-template-areas: "location logo" "credit credit"; }
  .tech-table > div { grid-template-columns: 1fr; gap: 3px; }
  .intro, .media-layout { grid-template-columns: 1fr; }
  .intro { gap: 14px; }
  .teaser { grid-row: 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .payment li { padding: 9px; }
  .visit .button, .contact-pending { margin-inline-start: 0; }
}
@media (min-width: 721px) and (max-height: 530px) {
  .hero { min-height: 440px; row-gap: 3px; padding-block: 12px; }
  .rail { gap: 12px; }
  .rail .brand .site-logo { width: 75px; }
  .rail nav a { min-height: 33px; }
  .hero-content { padding: 2px 0 6px; }
  .hero-rule { margin-block: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-intro { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
