/* ASORIN — home.css (index.html only). Needs common.css first. */
/* ---------- HOME hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 90px) clamp(40px, 6vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-text { min-width: 0; }
.hero-text h1 { margin: 16px 0 22px; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.1; }
html[dir="rtl"] .hero-text h1 { line-height: 1.4; }
.hero-text h1 .ln { display: block; overflow: hidden; padding-block: .04em; }
.hero-text h1 .ln > span { display: inline-block; animation: lineUp 1s var(--ease) both; }
.hero-text h1 .ln:nth-child(2) > span { animation-delay: .14s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.accent { background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero-sub { margin: 0 0 32px; max-width: 52ch; color: var(--fg-2); font-size: 1.1rem; animation: rise .9s .3s var(--ease) both; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .9s .42s var(--ease) both; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 40px; animation: rise .9s .54s var(--ease) both; }
.stat b { display: block; font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
html[dir="rtl"] .stat b { font-family: 'Vazirmatn', sans-serif; font-weight: 900; }
.stat span { font-size: .88rem; color: var(--fg-3); font-weight: 600; }

.logo-stage { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; }
.logo-stage .halo {
  position: absolute; inset: 8%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--glow-a), transparent 40%, var(--glow-b), transparent 75%);
  filter: blur(30px); animation: spin 14s linear infinite;
}
.logo-stage .ring { position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line-2); animation: breathe 5s ease-in-out infinite; }
.logo-stage .ring.r2 { inset: 4%; border-color: var(--line); animation-delay: -2.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: .5; } }
.logo-stage img { position: relative; width: 74%; filter: drop-shadow(0 24px 40px var(--shadow)); animation: logoIn 1.2s .2s var(--ease) both, float 6s ease-in-out 1.4s infinite; }
@keyframes logoIn { from { opacity: .001; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--fg-2); }
html[dir="rtl"] .ticker-track span { font-family: 'Vazirmatn', sans-serif; font-weight: 800; }
.ticker-track span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- fields bento ---------- */
.fields-sec { padding-block: clamp(56px, 8vw, 100px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 28px; margin-bottom: 30px; }
.sec-head h2 { margin: 8px 0 0; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; }
html[dir="rtl"] .sec-head h2 { line-height: 1.5; }
.sec-head p { margin: 0; color: var(--fg-2); max-width: 46ch; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; display: block; grid-column: span 2; min-height: 300px; border-radius: 22px;
  text-decoration: none; color: #fff; background: var(--bg-3); isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card.big { grid-column: span 3; min-height: 360px; }
.card.wide { grid-column: 1 / -1; min-height: 380px; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; z-index: -2; transform: scale(1.32); transition: transform 1.1s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 7, 12, .05) 30%, rgba(5, 7, 12, .88)); }
.card::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(246, 216, 142, .22), transparent 45%); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px var(--shadow); }
.card:hover img { transform: scale(1.42); }
.card:hover::after { opacity: 1; }
.card-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.card-num { font-family: 'Sora', 'Vazirmatn', sans-serif; font-weight: 800; font-size: .85rem; color: #F6D88E; }
html[dir="rtl"] .card-num { font-family: 'Vazirmatn', sans-serif; }
.card-name { font-size: 1.35rem; font-weight: 800; line-height: 1.35; }
.card-tags { font-size: .86rem; color: rgba(255, 255, 255, .78); line-height: 1.6; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.card:hover .card-tags, .card:focus-visible .card-tags { max-height: 80px; opacity: 1; }
.card-go { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .45s var(--ease), background-color .3s; }
html[dir="rtl"] .card-go svg { transform: scaleX(-1); }
.card:hover .card-go { background: #E2B857; color: #07090F; transform: rotate(-45deg); }
html[dir="rtl"] .card:hover .card-go { transform: rotate(45deg); }

/* ---------- CTA ---------- */
.cta-sec { padding-block: 0 clamp(64px, 8vw, 110px); }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px);
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
}
.cta-box::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--glow-a); filter: blur(80px); top: -180px; inset-inline-end: -80px; animation: drift1 14s ease-in-out infinite alternate; pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { margin: 8px 0 6px; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; }
.cta-box p { margin: 0; color: var(--fg-2); }
.phone-big { font-family: 'Sora', sans-serif !important; font-weight: 700 !important; letter-spacing: -.01em; }
html[dir="rtl"] .phone-big { text-align: right; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1, .hero-sub { margin-inline: auto; }
  .cta-row, .stats { justify-content: center; }
  .logo-stage { order: -1; width: min(72%, 340px); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.big, .card.wide { grid-column: span 1; min-height: 260px; }
  .bento.odd .card:first-child { grid-column: 1 / -1; }
  .card-tags { max-height: 80px; opacity: 1; }
  .cta-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card, .card.big, .card.wide { min-height: 230px; }
  .bento.odd .card:first-child { grid-column: auto; }
  .stat b { font-size: 2rem; }
}
