/* ============================================================
   Skitrate Solutions — shared component styles (Dala system)
   Tokens live in the per-page <style type="text/tailwindcss"> @theme block.
   ============================================================ */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; background: #000000; }
body {
  background: transparent; /* the aware-field canvas sits behind at z:-1 */
  color: #ffffff;
  font-family: 'Acronym', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #8052ff; color: #ffffff; }

/* ---------- Choreography: preloader, curtain, line reveals ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: transform .95s cubic-bezier(.76, 0, .24, 1);
}
#preloader.done { transform: translateY(-101%); }
#preloader .pl-mark { display: flex; align-items: center; gap: 12px; overflow: hidden; }
#preloader .pl-ch {
  display: inline-block; font-weight: 200; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; color: #fff;
  transform: translateY(120%); animation: pl-up .8s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes pl-up { to { transform: translateY(0); } }
#preloader .pl-line { width: 180px; height: 1px; background: rgba(255,255,255,0.12); overflow: hidden; }
#preloader .pl-fill { height: 100%; width: 100%; background: #8052ff; transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.3,.6,.3,1); }
#preloader.loading .pl-fill { transform: scaleX(1); }

#curtain {
  position: fixed; inset: -2% 0; z-index: 190; background: #000;
  transform: translateY(103%); pointer-events: none;
}
#curtain::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 8px; background: #8052ff; opacity: .9; }
#curtain.in { transform: translateY(0); transition: transform .55s cubic-bezier(.76, 0, .24, 1); }
#curtain.out { transform: translateY(-103%); transition: transform .65s cubic-bezier(.76, 0, .24, 1); }

/* masked line reveals for display type */
.line-mask { display: block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
.line-inner {
  display: block; transform: translateY(118%) rotate(.6deg); transform-origin: left top;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--li, 0) * 95ms);
  will-change: transform;
}
.lines-in .line-inner { transform: none; }

html.js-smooth { scroll-behavior: auto; }

/* ---------- Self-aware layer ---------- */
#aware-field {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
#morph-stage {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  background: #8052ff; transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none;
  border-radius: 50%; will-change: transform;
}
#cursor-dot { width: 7px; height: 7px; background: #8052ff; margin: -3.5px 0 0 -3.5px; }
#cursor-ring {
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 1px solid rgba(255,255,255,0.35);
  transition: width .25s ease, height .25s ease, margin .25s ease, border-color .25s ease, opacity .25s ease;
}
#cursor-ring.is-active {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-color: #8052ff;
}
@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* headline letters that react to the cursor */
.aware-ch { display: inline-block; will-change: transform; transition: color .25s ease; }

/* nav hide/show on scroll */
header.site-nav { transition: transform .4s cubic-bezier(.2,.65,.25,1); }
header.site-nav.nav-hidden { transform: translateY(-100%); }

/* ---------- Type system ---------- */
.type-hero {
  font-weight: 200;
  font-size: clamp(54px, 9.2vw, 113px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.type-display {
  font-weight: 200;
  font-size: clamp(44px, 6.8vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.type-heading-lg {
  font-weight: 200;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.type-heading {
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: 0.021em;
}
.type-heading-sm {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.021em;
}
.type-body { font-size: 15px; line-height: 1.5; letter-spacing: 0.025em; }
.type-body-lg { font-size: 18px; line-height: 1.5; letter-spacing: 0.025em; }
.eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ---------- Long-form prose ---------- */
.prose { max-width: 62ch; }
.prose p { font-size: 15px; line-height: 1.6; letter-spacing: 0.025em; color: #bdbdbd; }
.prose p + p { margin-top: 18px; }
.prose strong { color: #ffffff; font-weight: 600; }
.prose a { color: #ffb829; }
.prose ul { margin-top: 18px; display: grid; gap: 12px; }

/* ---------- Components ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: #8052ff;
  color: #ffffff;
  font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 24px; padding: 14px 22px;
  transition: transform .25s ease, background .25s ease;
  will-change: transform;
}
.btn-primary:hover { background: #6f41f2; }
.btn-primary:active { transform: scale(.96); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid #ffb829;
  color: #ffb829;
  font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 24px; padding: 13px 22px;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
  will-change: transform;
}
.btn-outline:hover { border-color: #ffffff; color: #ffffff; }
.btn-outline:active { transform: scale(.96); }
.nav-link {
  font-size: 14px; letter-spacing: 0.021em; font-weight: 400;
  color: #9a9a9a;
  text-transform: uppercase;
  transition: color .25s ease, transform .25s ease;
  display: inline-block;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #ffffff; }
.nav-link:hover { transform: translateY(-1px); }
.hairline { border: 1px solid rgba(255,255,255,0.10); }
.hairline-card {
  --mx: 50%; --my: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 30px;
  background: #000000;
  transition: border-color .3s ease, transform .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.hairline-card:hover {
  border-color: rgba(255,255,255,0.28);
  background:
    radial-gradient(300px circle at var(--mx) var(--my), rgba(128,82,255,0.08), transparent 70%),
    #000000;
}
.list-tick { display: flex; align-items: baseline; gap: 12px; transition: transform .25s ease; }
.list-tick::before {
  content: "✦"; color: #8052ff; font-size: 11px; flex: none;
  transform: translateY(-1px);
  transition: transform .4s ease;
}
.list-tick:hover { transform: translateX(5px); }
.list-tick:hover::before { transform: translateY(-1px) rotate(180deg); }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link .card-arrow { color: #8052ff; transition: transform .3s ease; display: inline-block; }
.card-link:hover .card-arrow { transform: translateX(6px); }

.chip {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px; padding: 8px 16px;
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
  color: #bdbdbd; white-space: nowrap;
  transition: border-color .25s ease, color .25s ease;
}
.chip:hover { border-color: #8052ff; color: #ffffff; }

/* ---------- Crumb / page hero ---------- */
.crumb { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #9a9a9a; font-weight: 600; }
.crumb a { color: #9a9a9a; transition: color .25s ease; }
.crumb a:hover { color: #ffffff; }
.crumb .sep { color: #8052ff; margin: 0 9px; }

/* ---------- Data tables ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: #9a9a9a; padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.data-table td {
  font-size: 15px; letter-spacing: 0.025em; color: #ffffff; padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .25s ease;
}
.data-table tbody tr { transition: background .25s ease; }
.data-table tbody tr:hover td { background: rgba(128,82,255,0.05); }
.data-table td:first-child { color: #bdbdbd; }
.data-table .yes { color: #8052ff; }
.data-table .muted { color: #9a9a9a; }

/* ---------- Charts ---------- */
.chart-frame {
  --mx: 50%; --my: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px; padding: 30px; background: #000000;
  transition: border-color .3s ease, transform .3s ease;
  will-change: transform;
}
.chart-frame:hover { border-color: rgba(255,255,255,0.28); }
.chart-title { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #ffffff; }
.chart-sub { font-size: 12px; letter-spacing: 0.05em; color: #9a9a9a; margin-top: 3px; }

.chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; margin-top: 24px; }
.chart-bars .bar {
  flex: 1; border-radius: 6px 6px 0 0; background: rgba(255,255,255,0.16);
  transform-origin: bottom; transform: scaleY(0.02);
  transition: transform 1.1s cubic-bezier(.2,.65,.25,1), background .25s ease;
}
.chart-bars .bar:hover { background: rgba(255,255,255,0.3); }
.chart-bars .bar.violet { background: #8052ff; }
.chart-bars .bar.violet:hover { background: #9a73ff; }
.chart-bars .bar.amber { background: #ffb829; }
.chart-bars .bar.teal { background: #15846e; }
.reveal.in .chart-bars .bar, .chart-bars.in .bar { transform: scaleY(1); }
.chart-x { display: flex; gap: 12px; margin-top: 12px; }
.chart-x span { flex: 1; text-align: center; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #9a9a9a; }

.funnel { display: grid; gap: 15px; margin-top: 24px; }
.funnel .frow { display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 15px; }
.funnel .flabel { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #bdbdbd; font-weight: 600; }
.funnel .ftrack { height: 14px; border-radius: 7px; background: rgba(255,255,255,0.07); overflow: hidden; }
.funnel .ffill { height: 100%; border-radius: 7px; background: #8052ff; transform-origin: left; transform: scaleX(0.02); transition: transform 1.2s cubic-bezier(.2,.65,.25,1); }
.reveal.in .funnel .ffill { transform: scaleX(1); }
.funnel .fval { font-size: 14px; font-weight: 600; color: #ffffff; text-align: right; }

.chart-line path.draw {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.2s cubic-bezier(.3,.6,.3,1) .2s;
}
.reveal.in .chart-line path.draw { stroke-dashoffset: 0; }
.chart-line .fill { opacity: 0; transition: opacity 1.4s ease 1s; }
.reveal.in .chart-line .fill { opacity: 1; }
.chart-line text { font-family: inherit; }

.delta { font-weight: 200; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.delta.violet { color: #8052ff; }
.delta.amber { color: #ffb829; }
.delta-label { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #9a9a9a; margin-top: 9px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex; align-items: center; gap: 48px; padding-right: 48px;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ---------- Hero media ---------- */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% center;
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.45) 100%); }
.hero-scrim-bottom { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 62%, rgba(0,0,0,.92) 100%); }

/* ---------- Cinematic full-bleed scenes ---------- */
.scene { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.scene-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.15); will-change: transform;
}
.scene-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.25) 26%, rgba(0,0,0,.12) 52%, rgba(0,0,0,.92) 88%, #000 100%);
}
.scene-content { position: relative; width: 100%; padding-top: 120px; padding-bottom: 96px; }

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid rgba(255,255,255,0.10); transition: border-color .3s ease; }
details.faq:hover { border-color: rgba(255,255,255,0.25); }
details.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .faq-x { color: #8052ff; font-weight: 200; font-size: 26px; line-height: 1; transition: transform .3s ease; flex: none; }
details.faq[open] summary .faq-x { transform: rotate(45deg); }
details.faq .faq-body { overflow: hidden; }

/* ---------- Misc ---------- */
.num-outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.35); }
.img-frame { border-radius: 24px; border: 1px solid rgba(255,255,255,0.10); overflow: hidden; transition: border-color .3s ease, transform .3s ease; will-change: transform; }
.img-frame:hover { border-color: rgba(255,255,255,0.28); }
.img-frame img, .img-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chart-bars .bar, .funnel .ffill { transform: none !important; transition: none; }
  .chart-line path.draw { stroke-dashoffset: 0 !important; transition: none; }
  .chart-line .fill { opacity: 1 !important; }
  #cursor-dot, #cursor-ring, #aware-field, #morph-stage { display: none; }
  .aware-ch { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* live logo mark */
canvas.sk-logo { display:inline-block; vertical-align:middle; }

/* ============ mega-menu nav (v2 repositioning) ============ */
.mega-wrap { position: relative; }
.mega-top { display:inline-flex; align-items:center; gap:5px; cursor:pointer; background:none; border:0; }
.mega-top::after { content:""; width:5px; height:5px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-1px); opacity:.6; transition:transform .25s ease; }
.mega-wrap[data-open="1"] .mega-top::after { transform:rotate(-135deg); }
.mega-panel {
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%) translateY(8px);
  background:rgba(6,6,8,.96); backdrop-filter:blur(14px); border:1px solid rgba(255,255,255,.1);
  border-radius:18px; padding:24px; display:grid; gap:24px 30px; opacity:0; visibility:hidden;
  transition:opacity .25s ease, transform .25s ease; z-index:60; box-shadow:0 30px 80px rgba(0,0,0,.6);
}
.mega-wrap[data-open="1"] .mega-panel { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.mega-panel.cols-4 { grid-template-columns:repeat(4,minmax(160px,1fr)); width:760px; }
.mega-panel.cols-1 { grid-template-columns:1fr; width:240px; }
.mega-col .mega-head { font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:#fff; margin-bottom:12px; display:block; }
.mega-col .mega-head:hover { color:#8052ff; }
.mega-link { display:block; font-size:13px; letter-spacing:.01em; color:#9a9a9a; padding:5px 0; transition:color .2s ease, transform .2s ease; }
.mega-link:hover { color:#fff; transform:translateX(3px); }
@media (max-width:1023px){ .mega-panel{ display:none; } }

/* mobile nav panel */
#nav-toggle { display:none; background:none; border:0; cursor:pointer; flex-direction:column; gap:5px; padding:6px; }
#nav-toggle span { width:22px; height:2px; background:#fff; transition:transform .3s ease, opacity .3s ease; }
#nav-panel { position:fixed; inset:0; z-index:80; background:rgba(2,2,4,.98); backdrop-filter:blur(10px); transform:translateY(-100%); transition:transform .45s cubic-bezier(.76,0,.24,1); overflow-y:auto; padding:90px 28px 40px; }
#nav-panel.open { transform:translateY(0); }
#nav-panel .np-head { font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:#8052ff; margin:22px 0 10px; }
#nav-panel a { display:block; font-size:18px; font-weight:200; letter-spacing:-.01em; color:#cfcabc; padding:8px 0; }
#nav-panel a:hover { color:#fff; }
@media (max-width:1023px){ #nav-toggle{ display:flex; } header .desk-nav{ display:none; } }
