/* Header CSS */
/* =====================================================================
   Top Auto Aesthetics — HEADER CSS
   Preloader, custom cursor, sticky nav, mobile sheet, burger.
   ===================================================================== */

/* ---------- NAV ---------- */
.ta-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .6s var(--ease), backdrop-filter .6s var(--ease), border-color .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.ta-nav__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 44px);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
}
.ta-nav__logo {
  display: inline-flex; align-items: center;
  transition: transform .5s var(--ease);
}
.ta-nav__logo:hover { transform: translateY(-1px); }
.ta-nav__logo img {
  height: 68px; width: auto;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(230, 195, 120, 0.18));
  transition: filter .5s var(--ease);
}
.ta-nav__logo:hover img {
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(230, 195, 120, 0.35));
}
.ta-nav__menu { display: flex; gap: 6px; justify-content: center; }
.ta-nav__menu a {
  position: relative; padding: 10px 14px;
  font-family: 'Jost', 'Inter', sans-serif;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-1); transition: color .3s var(--ease);
}
.ta-nav__menu a::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.ta-nav__menu a:hover { color: var(--gold-100); }
.ta-nav__menu a:hover::before { transform: scaleX(1); }
.ta-nav__cta { padding: 11px 18px; font-size: 11px; }

.ta-nav.is-scrolled {
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.ta-nav__burger { display: none; width: 36px; height: 36px; position: relative; }
.ta-nav__burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink-0);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.ta-nav__burger span:nth-child(1) { top: 14px; }
.ta-nav__burger span:nth-child(2) { top: 22px; }
.ta-nav.is-open .ta-nav__burger span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.ta-nav.is-open .ta-nav__burger span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

.ta-nav__sheet {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid; gap: 8px; padding: 24px clamp(20px, 4vw, 44px) 28px;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.ta-nav__sheet a {
  font-family: 'Jost', sans-serif;
  font-size: 22px; font-weight: 400; letter-spacing: -0.01em;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line-soft);
}
.ta-nav__sheet a.ta-btn { border-bottom: 0; margin-top: 8px; justify-self: start; }
.ta-nav.is-open .ta-nav__sheet { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 960px) {
  .ta-nav__menu, .ta-nav__cta { display: none; }
  .ta-nav__burger { display: block; }
  .ta-nav__inner { grid-template-columns: auto 1fr auto; }
}

/* ---------- Preloader ---------- */
.ta-preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg-0);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.ta-preloader.is-done { opacity: 0; visibility: hidden; }
.ta-preloader__inner { display: grid; justify-items: center; gap: 18px; }
.ta-preloader__mark {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.ta-preloader__mark img {
  width: min(220px, 62vw);
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.58));
}
.ta-preloader__mark span {
  font-family: 'Jost', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ta-preloader__bar {
  width: min(280px, 60vw); height: 2px; background: rgba(255,255,255,.08); overflow: hidden; border-radius: 2px;
}
.ta-preloader__bar span {
  display: block; width: 0; height: 100%;
  background: var(--grad-gold);
  transition: width .2s linear;
}
.ta-preloader__label {
  display: flex; gap: 10px; align-items: baseline;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-2);
}
.ta-preloader__label b { color: var(--gold-100); font-weight: 500; }

/* ---------- Cursor (premium light-emitting) ---------- */
.ta-cursor {
  position: fixed; top: 0; left: 0; z-index: 1000;
  pointer-events: none;
  opacity: .52;
  transition: opacity .12s linear;
}
.ta-cursor__dot,
.ta-cursor__ring,
.ta-cursor__aura,
.ta-cursor__halo {
  position: fixed; top: 0; left: 0;
  translate: -50% -50%;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform, width, height, opacity;
}

/* the wide spreading light — biggest, blurred, gold halo */
.ta-cursor__halo {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(246, 228, 177, 0.22) 0%, rgba(230, 195, 120, 0.12) 28%, rgba(198, 146, 64, 0.05) 52%, transparent 72%);
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: .55;
  transition: width .12s linear, height .12s linear, opacity .12s linear;
}

/* mid soft aura */
.ta-cursor__aura {
  width: 46px; height: 46px;
  background: radial-gradient(circle, rgba(255, 234, 184, 0.35) 0%, rgba(246, 228, 177, 0.12) 38%, transparent 70%);
  filter: blur(4px);
  mix-blend-mode: screen;
  transition: width .1s linear, height .1s linear, opacity .1s linear;
}

/* ring outline — barely visible, gold */
.ta-cursor__ring {
  width: 22px; height: 22px;
  border: 1px solid rgba(255, 240, 200, 0.42);
  box-shadow:
    0 0 10px rgba(246, 228, 177, 0.32),
    0 0 22px rgba(246, 228, 177, 0.18),
    inset 0 0 8px rgba(246, 228, 177, 0.2);
  background: rgba(246, 228, 177, 0.02);
  transition: width .1s linear, height .1s linear, border-color .1s linear, background .1s linear, box-shadow .1s linear;
}

/* tight bright core */
.ta-cursor__dot {
  width: 3px; height: 3px;
  background: #fff7df;
  box-shadow:
    0 0 6px #fff3c8,
    0 0 12px rgba(246, 228, 177, 0.78);
  transition: width .08s linear, height .08s linear, background .08s linear;
}

/* hover state — light spreads further, ring fills */
.ta-cursor.is-hover .ta-cursor__halo {
  width: 150px; height: 150px;
  opacity: .7;
}
.ta-cursor.is-hover .ta-cursor__aura {
  width: 58px; height: 58px;
}
.ta-cursor.is-hover .ta-cursor__ring {
  width: 28px; height: 28px;
  background: rgba(246, 228, 177, 0.06);
  border-color: rgba(255, 247, 223, 0.62);
  box-shadow:
    0 0 16px rgba(246, 228, 177, 0.48),
    0 0 32px rgba(246, 228, 177, 0.22),
    inset 0 0 10px rgba(246, 228, 177, 0.28);
}
.ta-cursor.is-hover .ta-cursor__dot {
  width: 3px; height: 3px;
  background: #fffbed;
}

/* click — quick burst of light */
.ta-cursor.is-click .ta-cursor__halo { width: 170px; height: 170px; opacity: .8; transition: width .08s linear, height .08s linear; }
.ta-cursor.is-click .ta-cursor__aura { width: 70px; height: 70px; }
.ta-cursor.is-click .ta-cursor__ring { transform-origin: center; box-shadow: 0 0 22px rgba(246, 228, 177, .7), 0 0 44px rgba(246, 228, 177, 0.32); }

/* gentle breathing on the halo so it feels alive when stationary */
.ta-cursor__halo {
  animation: none;
}
@keyframes cursorBreath {
  0%, 100% { filter: blur(12px); }
  50%      { filter: blur(14px); }
}

/* hidden when leaving viewport */
.ta-cursor.is-hidden { opacity: 0; }

@media (pointer: coarse), (max-width: 900px) {
  .ta-cursor { display: none; }
}

/* tablet/mobile logo scale */
@media (max-width: 1024px) {
  .ta-nav__logo img { height: 60px; }
}
@media (max-width: 720px) {
  .ta-nav__logo img { height: 50px; }
}