/* Home: hero with rotating dial, three gates, atlas of sections. */

.icon { width: 18px; height: 18px; flex: none; }
.section-head { max-width: var(--wrap); margin: 0 auto 3rem; }
.section-head h2 { margin: 0; }

/* hero */
.hero {
  width: var(--wrap); min-height: calc(100dvh - var(--header-h)); margin: 0 auto; padding: 2rem 0 5rem;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 6vw, 6rem);
}
.hero h1 { margin-bottom: 1.6rem; font-size: clamp(2.6rem, 5vw, 4.7rem); text-wrap: balance; }
.hero h1 em { display: inline-block; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-top: 2.4rem; }
.hero-note { margin: 1.6rem 0 0; font-size: .78rem; color: var(--muted); }

.dial { position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 12px), 0); transition: transform .6s var(--ease); filter: drop-shadow(0 0 60px rgba(124, 99, 230, .35)); }
.dial img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-outer { animation: spin 200s linear infinite; }
.dial-inner { animation: spin 130s linear infinite reverse; }
.dial-core { animation: breathe 8s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.05); opacity: 1; } }

/* gates */
.gates, .atlas { width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.gate-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.gate {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3.4rem 1.6rem 2.2rem; min-height: 440px;
  border: 1px solid var(--line-strong); border-radius: 220px 220px 6px 6px;
  background: linear-gradient(180deg, rgba(60, 46, 130, .5), rgba(13, 11, 26, .72) 70%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid), border-color var(--t-fast);
}
.gate:nth-child(2) { margin-top: 2.6rem; }
.gate:hover, .gate:focus-visible { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 0 60px rgba(124, 99, 230, .35), 0 30px 60px rgba(0, 0, 0, .5); }
.gate-icon { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 1.6rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold-soft); transition: transform var(--t-mid) var(--ease), background var(--t-mid); }
.gate-icon svg { width: 38px; height: 38px; }
.gate:hover .gate-icon { transform: scale(1.08) rotate(-6deg); background: rgba(217, 180, 108, .12); }
.gate-kicker { margin-bottom: .8rem; font-size: .7rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.gate-title { margin-bottom: .9rem; font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
.gate-text { max-width: 19rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.gate-go { display: inline-flex; align-items: center; gap: .6rem; margin-top: auto; padding-top: 1.6rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.gate-go .icon { transition: transform var(--t-mid) var(--ease); }
.gate:hover .gate-go .icon { transform: translateX(6px); }

/* atlas */
.atlas-group { margin-bottom: 3rem; }
.atlas-group h3 { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .6rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-strong); color: var(--gold-soft); }
.atlas { counter-reset: group; }
.atlas-group h3::before { counter-increment: group; content: counter(group, upper-roman); min-width: 2.2rem; font-size: 1.1rem; font-style: italic; color: var(--gold); opacity: .85; }
.atlas-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; }
.atlas-item { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.15rem .2rem; min-height: 64px; border-bottom: 1px solid var(--line); transition: transform var(--t-mid) var(--ease), background var(--t-fast); }
a.atlas-item:hover, a.atlas-item:focus-visible { transform: translateX(8px); }
.atlas-item > .icon:first-child { width: 28px; height: 28px; margin-top: .15rem; color: var(--gold); }
.atlas-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.atlas-body strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.15; transition: color var(--t-fast); }
a.atlas-item:hover strong { color: var(--gold-soft); }
.atlas-body span { font-size: .9rem; line-height: 1.55; color: var(--muted); }
.atlas-item .go { margin-top: .4rem; color: var(--gold); opacity: 0; transition: opacity var(--t-fast); }
a.atlas-item:hover .go { opacity: 1; }
.atlas-item.is-soon { opacity: .55; }
.soon-tag { margin-top: .4rem; font-size: .66rem; font-style: normal; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

.closing { width: var(--wrap); margin: 0 auto; padding-bottom: 2rem; text-align: center; }
.closing-line { max-width: 34rem; margin: 0 auto; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); font-style: italic; line-height: 1.3; color: var(--gold-soft); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 1rem; min-height: auto; }
  .dial { width: min(86%, 420px); order: -1; }
  .gate-row { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .gate { min-height: 0; border-radius: 160px 160px 6px 6px; padding-top: 3rem; }
  .gate:nth-child(2) { margin-top: 0; }
  .atlas-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dial-outer, .dial-inner, .dial-core { animation: none; }
  .dial { transform: none; }
}
