/* Norgod Studio — dark premium theme + parallax scenes (loads after style.css) */
:root {
  --ink: #f2f5fc;
  --ink-2: #b7c0d6;
  --muted: #8691ad;
  --line: rgba(255, 255, 255, .09);
  --bg: #060a14;
  --bg-soft: #0a1020;
  --card: #0d1426;
  --card-2: #111a30;
  --navy: #081024;
  --glow-p: rgba(124, 58, 237, .35);
  --glow-b: rgba(17, 109, 255, .35);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); }
::selection { background: #5919c1; color: #fff; }

/* Headings: wide, bold, all caps */
h1, h2, h3, h4, .post-title { text-transform: uppercase; letter-spacing: .005em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.2; }
.post-title { font-size: clamp(1.7rem, 4.2vw, 3rem); }
.post-body h2 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); }
.post-body h3 { font-size: 1.05rem; }
.lead { color: var(--ink-2); }
.eyebrow { color: #a78bfa; }
.section--dark .eyebrow { color: var(--sky); }

/* Sections */
.section { background: transparent; }
.section--soft { background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.035)); border-block: 1px solid var(--line); }
.section--dark { background: radial-gradient(1200px 500px at 15% 0%, rgba(89,25,193,.25), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(17,109,255,.2), transparent 60%), #050812; }
main > .section, main > section { position: relative; isolation: isolate; }

/* Header */
.site-header.is-scrolled { background: rgba(6, 10, 20, .78); box-shadow: 0 1px 0 var(--line); }
.menu-open .site-header { background: #060a14; }
.brand small { color: var(--muted); }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.menu-toggle { background: #fff; color: #060a14; }
@media (max-width: 1120px) { .nav { background: #060a14; } }

/* Buttons */
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(89,25,193,.8); }
.btn--primary::before { background: linear-gradient(120deg, #7c3aed, #3b82f6, #22d3ee); }
.nav .btn { color: #fff; }
.nav .btn:hover { background: var(--grad); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { background: #fff; color: #060a14; }
.btn--light { background: #fff; color: #060a14; }

/* Hero */
.hero { padding-top: 120px; }
.grid-lines { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); opacity: 1; }
.blob { opacity: .5; filter: blur(90px); }
.blob--1 { background: #6d28d9; }
.blob--2 { background: #1d4ed8; }
.blob--3 { background: #0891b2; opacity: .3; }
.hero-meta { color: var(--ink-2); }
.scroll-cue { border-color: rgba(255,255,255,.5); }
.scroll-cue::after { background: #fff; }
.breadcrumb { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }

/* Marquee: solid, no outlined text */
.marquee { background: #050812; border-color: var(--line); }
.marquee-track span { color: #fff; }
.marquee-track span:nth-child(even) { -webkit-text-stroke: 0; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.marquee-track span::after { color: #a78bfa; -webkit-text-fill-color: #a78bfa; }

/* Cards & blocks */
.service-card, .process li, .faq details, .contact-card, .form-card, .post-card, .engine, .stat {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
}
.service-card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124,58,237,.25), transparent 60%); }
.service-card:hover, .post-card:hover, .contact-card:hover { border-color: rgba(167,139,250,.35); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 40px -10px rgba(124,58,237,.35); }
.service-card p, .process li p, .feature p, .post-card p, .faq .answer { color: var(--ink-2); }
.service-card .tag { background: var(--grad); }
.service-card .num { color: #a78bfa; }
.feature { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); }
.feature:hover { background: linear-gradient(180deg, #16203b, var(--card)); }
.feature .icon { background: rgba(124,58,237,.15); color: #c4b5fd; box-shadow: inset 0 0 0 1px rgba(167,139,250,.25); }
.chips li { border-color: rgba(255,255,255,.14); }
.faq summary::after { border-color: #fff; }
.faq details[open] { border-color: rgba(167,139,250,.35); }
.checklist li::before { box-shadow: inset 0 0 0 6px var(--bg); }
.section--soft .checklist li::before { box-shadow: inset 0 0 0 6px #0b1120; }
.stat .label { color: var(--ink-2); }
.visual-card { background: #050812; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); }
.cta { background: #0a0f22; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }

/* Forms */
.form-field input, .form-field select, .form-field textarea { background: #0a1020; border-color: rgba(255,255,255,.12); color: #fff; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #5f6a86; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { background: #0d1530; border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.2); }
.form-field [aria-invalid="true"] { background: rgba(217,45,82,.08); border-color: #f43f5e; }
.form-field .error, .form-error { color: #fb7185; }
.form-field select option { background: #0a1020; color: #fff; }
.skeleton { background: linear-gradient(90deg, #0d1426, #18223d, #0d1426); background-size: 200% 100%; }

/* Blog */
.chip-filter button { background: transparent; color: var(--ink-2); border-color: rgba(255,255,255,.15); }
.chip-filter button:hover { color: #fff; border-color: #fff; }
.chip-filter button[aria-pressed="true"] { background: #fff; color: #060a14; border-color: #fff; }
.post-chip { background: var(--grad); }
.post-tag { background: rgba(255,255,255,.06); color: var(--ink-2); }
.post-body { color: #d6dcea; }
.post-body blockquote { background: rgba(124,58,237,.1); border-left-color: #8b5cf6; color: #fff; }
.post-body a { color: #93c5fd; }
.post-share { border-color: var(--line); }

/* Footer: no outlined text */
.site-footer { background: #03050b; border-top: 1px solid var(--line); }
.big-word { -webkit-text-stroke: 0; color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; }
.notfound .code { -webkit-text-stroke: 0; }
.cursor-glow { background: radial-gradient(circle, rgba(124,58,237,.18), transparent 65%); }

/* ===================== Parallax scenes ===================== */
.hero .container { position: relative; z-index: 2; }
.scene { position: absolute; z-index: 1; pointer-events: none; perspective: 1200px; }
.hero .scene { right: max(0px, calc((100vw - 1200px) / 2 - 40px)); top: 50%; width: min(46vw, 640px); aspect-ratio: 1 / 1; transform: translateY(-50%); }
.hero--page .scene { width: min(42vw, 560px); }
.scene .layer { position: absolute; will-change: transform; transform: translate3d(0, 0, 0); transition: transform .25s linear; }
.scene .layer > * { animation: drift 9s ease-in-out infinite; animation-delay: var(--ad, 0s); }
.scene .layer.slow > * { animation-duration: 13s; }
@keyframes drift { 50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); } }
.scene svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.scene .glass-card { border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); color: #fff; padding: 14px 16px; font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1.35; white-space: nowrap; }
.scene .glass-card small { display: block; color: #c4b5fd; font-weight: 800; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.scene .glass-card strong { font-family: var(--font-display); font-size: 22px; display: block; }
.scene .orb { border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #a78bfa 25%, #5b21b6 60%, #1e1b4b); box-shadow: 0 0 60px rgba(139,92,246,.6); }
.scene .orb.blue { background: radial-gradient(circle at 30% 30%, #fff, #7dd3fc 25%, #1d4ed8 60%, #0b1b4b); box-shadow: 0 0 60px rgba(59,130,246,.6); }
.scene .ring { border-radius: 50%; border: 1.5px solid rgba(167,139,250,.35); }
.scene .glow-floor { position: absolute; left: 10%; right: 10%; bottom: 4%; height: 22%; background: radial-gradient(ellipse at center, rgba(124,58,237,.45), transparent 70%); filter: blur(20px); }

/* Section decorations (parallax shapes behind content) */
.deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.deco .layer { position: absolute; will-change: transform; }
.deco .shape-ring { width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(167,139,250,.18); }
.deco .shape-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 24px rgba(124,58,237,.8); }
.deco .shape-glow { width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.22), transparent 65%); }
.deco .shape-glow.blue { background: radial-gradient(circle, rgba(29,78,216,.22), transparent 65%); }
.deco .shape-mtn { width: 220px; opacity: .1; }

@media (min-width: 901px) {
  .hero .container > * { max-width: min(600px, 47vw); }
  .hero--page .container > * { max-width: min(620px, 48vw); }
  .hero .scene { width: min(44vw, 640px); }
  .hero--page .scene { width: min(40vw, 560px); }
  .hero .container > nav { max-width: none; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: calc(40px + 88vw); }
  .hero .scene, .hero--page .scene { top: auto; bottom: 24px; right: 50%; width: 88vw; transform: translateX(50%); }
  .scroll-cue { display: none; }
  .scene .glass-card { font-size: 11px; padding: 10px 12px; }
  .scene .glass-card strong { font-size: 17px; }
  .deco .shape-glow { width: 320px; height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene .layer, .deco .layer { transform: none !important; }
  .scene .layer > * { animation: none; }
}

/* Visual card floating stats */
.vc-layers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.vc-layers .layer { position: absolute; will-change: transform; transition: transform .25s linear; }
.vc-layers .layer > * { animation: drift 9s ease-in-out infinite; animation-delay: var(--ad, 0s); }
.vc-layers .glass-card { border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; padding: 14px 18px; font-weight: 700; font-size: 13px; white-space: nowrap; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.vc-layers .glass-card small { display: block; color: #ddd6fe; font-weight: 800; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.vc-layers .glass-card strong { font-family: var(--font-display); font-size: clamp(18px, 2vw, 26px); display: block; }
.vc-layers .orb { border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #a78bfa 25%, #5b21b6 60%, #1e1b4b); box-shadow: 0 0 60px rgba(139,92,246,.6); }
.vc-layers .orb.blue { background: radial-gradient(circle at 30% 30%, #fff, #7dd3fc 25%, #1d4ed8 60%, #0b1b4b); box-shadow: 0 0 60px rgba(59,130,246,.6); }
.visual-card .mountains { width: 38%; top: 52%; }

/* Page hero titles: sized so the longest word fits beside the scene */
.hero--page h1 { font-size: clamp(1.9rem, 4.1vw, 4.1rem); }
.hero h1 .line { overflow-wrap: normal; }
@media (max-width: 900px) { .hero--page h1, .hero h1 { font-size: clamp(1.8rem, 8.4vw, 3.4rem); } }
@media (min-width: 901px) { .hero:not(.hero--page) h1 { font-size: clamp(2.3rem, 5.4vw, 5rem); } }