:root {
  --bg: #07070c;
  --bg-2: #0d0d16;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f1f0f7;
  --muted: #9b99ad;
  --dim: #5f5d72;
  --orange: #ff8a3d;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --accent: var(--orange);
  --grad: linear-gradient(110deg, #ff8a3d 0%, #ec4899 50%, #8b5cf6 100%);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: #000; }
.mono { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.small { font-size: 0.92rem; }

/* ───────── Ambient layers ───────── */
#field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; filter: blur(90px); opacity: 0.55; }
.aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; mix-blend-mode: screen; }
.aurora span:nth-child(1) { background: #ff6a1a; top: -18vmax; left: -12vmax; opacity: 0.35; animation: drift1 26s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { background: #7c3aed; top: 10vmax; right: -16vmax; opacity: 0.4; animation: drift2 32s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { background: #db2777; bottom: -24vmax; left: 20vmax; opacity: 0.22; animation: drift3 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vmax, 10vmax) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -18vmax) scale(1.2); } }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(4%,-6%); } 60% { transform: translate(-3%,5%); } 80% { transform: translate(6%,2%); } }
.cursor-glow {
  position: fixed; z-index: 2; pointer-events: none; width: 520px; height: 520px; left: 0; top: 0;
  border-radius: 50%; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.13), rgba(139, 92, 246, 0.07) 40%, transparent 68%);
  transition: opacity 0.4s; opacity: 0;
}
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
main, .footer, .nav { position: relative; z-index: 3; }

/* ───────── Intro ───────── */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: clip-path 1s var(--ease) 0.15s; clip-path: inset(0 0 0 0); }
.intro.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-mark svg { width: 92px; height: 92px; }
.intro-arc { fill: none; stroke: url(#bm); stroke: var(--orange); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 0.9s var(--ease) forwards; }
.intro-dot { fill: var(--violet); transform-origin: 46px 32px; transform: scale(0); animation: pop 0.5s var(--ease) 0.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 60% { transform: scale(1.5); } to { transform: scale(1); } }

/* ───────── Nav ───────── */
.nav {
  position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 50;
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  border: 1px solid transparent; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease);
}
.nav.scrolled { background: rgba(10, 10, 18, 0.62); border-color: var(--line); backdrop-filter: blur(16px) saturate(1.4); }
.nav.hide { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.1rem var(--display); letter-spacing: -0.01em; }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.brand-mark { width: 30px; height: 30px; transition: transform 0.8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-360deg); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; color: var(--muted); transition: color 0.25s, background 0.25s; font-family: var(--mono); }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links .nav-cta { color: #0b0b12; background: var(--text); font-family: var(--body); font-weight: 600; margin-left: 6px; }
.nav-links .nav-cta:hover { background: var(--orange); color: #0b0b12; }

/* ───────── Buttons ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.btn i { font-style: normal; transition: transform 0.35s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn-primary { background: var(--grad); background-size: 200% 100%; color: #0b0b12; animation: shimmer 6s linear infinite; box-shadow: 0 10px 40px -10px rgba(255, 106, 26, 0.6); }
.btn-primary:hover { box-shadow: 0 16px 50px -8px rgba(236, 72, 153, 0.7); }
@keyframes shimmer { to { background-position: 200% 0; } }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px); }
.btn-ghost::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--panel-2); transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--ease); }
.btn-ghost:hover::before { transform: scaleY(1); }

/* ───────── Reveal ───────── */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ───────── Hero ───────── */
.hero {
  min-height: 100svh; width: min(1180px, calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px;
  padding: 120px 0 80px; position: relative;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 0.82rem var(--mono); color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); margin: 0 0 28px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero-title { font: 700 clamp(2.8rem, 7.2vw, 6.1rem)/0.98 var(--display); letter-spacing: -0.045em; margin: 0 0 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .split { display: inline-block; }
.hero-title .dim { color: var(--dim); }
.char { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.ready .char { transform: none; opacity: 1; }
.word { display: inline-block; white-space: nowrap; }
.rotator { display: inline-block; position: relative; white-space: nowrap; }
.rot-word { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.04em; }
.rot-word.out { animation: rotOut 0.45s var(--ease) forwards; }
.rot-word.in { animation: rotIn 0.6s var(--ease) forwards; }
@keyframes rotOut { to { transform: translateY(-70%); opacity: 0; filter: blur(8px); } }
@keyframes rotIn { from { transform: translateY(70%); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: none; } }
.hero-sub { max-width: 560px; font-size: 1.12rem; color: var(--muted); margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: center; }
.orbit-core { position: absolute; inset: 37%; border-radius: 30%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #1d1a2c, #0b0b14); border: 1px solid var(--line); box-shadow: 0 0 80px -10px rgba(255, 106, 26, 0.45), inset 0 0 30px rgba(139, 92, 246, 0.25); animation: breathe 5s ease-in-out infinite; }
.orbit-core svg { width: 62%; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 110px -6px rgba(236, 72, 153, 0.5), inset 0 0 30px rgba(139, 92, 246, 0.35); } }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.1); animation: spin linear infinite; }
.r1 { inset: 24%; animation-duration: 22s; }
.r2 { inset: 11%; animation-duration: 34s; animation-direction: reverse; }
.r3 { inset: 0; animation-duration: 50s; border-style: solid; border-color: rgba(255, 255, 255, 0.05); }
@keyframes spin { to { transform: rotate(360deg); } }
.sat {
  --r: 50%;
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px;
  display: grid; place-items: center; border-radius: 16px; font-size: 1.3rem;
  background: rgba(20, 18, 32, 0.85); border: 1px solid var(--line); backdrop-filter: blur(8px);
  transform: rotate(var(--a)) translateY(calc(var(--orbit) * -1)) rotate(calc(var(--a) * -1));
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}
.r1 .sat { --orbit: calc(min(480px, 40vw) * 0.26); }
.r2 .sat { --orbit: calc(min(480px, 40vw) * 0.39); }
.r3 .sat { --orbit: calc(min(480px, 40vw) * 0.5); }
/* Each satellite counter-rotates against its ring so it stays upright. */
.r1 .sat { animation: counter1 22s linear infinite; }
.r2 .sat { animation: counter2 34s linear infinite; }
.r3 .sat { animation: counter1 50s linear infinite; }
@keyframes counter1 { from { transform: rotate(var(--a)) translateY(calc(var(--orbit) * -1)) rotate(calc(var(--a) * -1)); } to { transform: rotate(var(--a)) translateY(calc(var(--orbit) * -1)) rotate(calc(var(--a) * -1 - 360deg)); } }
@keyframes counter2 { from { transform: rotate(var(--a)) translateY(calc(var(--orbit) * -1)) rotate(calc(var(--a) * -1)); } to { transform: rotate(var(--a)) translateY(calc(var(--orbit) * -1)) rotate(calc(var(--a) * -1 + 360deg)); } }
.sat img { width: 44px; height: 44px; object-fit: contain; }
.s-ml { color: var(--violet); }
.s-sw { color: #ffe81f; }
.s-tag { width: auto; height: auto; padding: 6px 12px; margin: -16px -30px; border-radius: 999px; font: 500 0.75rem var(--mono); color: var(--muted); }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--dim); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ───────── Stats ───────── */
.stats { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--display); letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ───────── Marquee ───────── */
.marquee { overflow: hidden; padding: 30px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font: 500 0.88rem var(--mono); color: var(--muted); background: var(--panel); white-space: nowrap; transition: color 0.3s, border-color 0.3s; }
.marquee span:hover { color: var(--text); border-color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Sections ───────── */
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 120px 0 40px; }
.section-head { margin-bottom: 64px; }
.kicker { font: 500 0.82rem var(--mono); color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.section-title { font: 700 clamp(2.2rem, 5vw, 4rem)/1.02 var(--display); letter-spacing: -0.04em; margin: 0; max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ───────── Projects ───────── */
.project {
  --accent: var(--orange);
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 64px; margin-bottom: 40px; border-radius: 32px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  overflow: hidden; isolation: isolate;
}
.project::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
}
.project:hover::before { opacity: 1; }
.project::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -140px; z-index: -2; background: var(--accent); filter: blur(120px); opacity: 0.16; }
.project.reverse::after { right: auto; left: -140px; }
.project.reverse .project-copy { order: 2; }
.p-bf { --accent: #ff8a3d; }
.p-ss { --accent: #ff5a1f; }
.p-ml { --accent: #8b5cf6; }
.p-sw { --accent: #ffe81f; }

.project-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.project-meta > div { display: flex; flex-direction: column; gap: 4px; }
.project-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: contain; background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 4px; }
.project-logo.bare { background: none; border: 0; padding: 0; border-radius: 0; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6)); }
.glyph { display: grid; place-items: center; font: 700 1.6rem var(--display); color: #0b0b12; padding: 0; border: 0; }
.ss-glyph { background: linear-gradient(135deg, #ff7a2f, #ff3d1f); box-shadow: 0 8px 26px -8px #ff5a1f; }
.ml-glyph { background: linear-gradient(135deg, #a78bfa, #6d28d9); color: #fff; box-shadow: 0 8px 26px -8px #8b5cf6; }
.sw-glyph { background: #0b0b12; color: #ffe81f; border: 1px solid rgba(255, 232, 31, 0.4); box-shadow: 0 8px 26px -8px rgba(255,232,31,.5); }
.tag-live, .tag-build { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font: 600 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 6px; }
.tag-live { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.tag-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.tag-build { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.project-title { font: 700 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--display); letter-spacing: -0.04em; margin: 0 0 10px; }
.project-lede { font: 500 1.25rem/1.35 var(--display); color: var(--accent); margin: 0 0 18px; }
.project-copy > p { color: var(--muted); margin: 0 0 20px; }
.project-copy b { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font: 500 0.76rem var(--mono); padding: 6px 11px; border-radius: 8px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s; }
.chips li:hover { transform: translateY(-3px); border-color: var(--accent); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 0.72rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }

/* MediaLog: what it tracks and where it imports from */
.ml-group { margin: 0 0 20px; }
.ml-group h5 { margin: 0 0 10px; font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.kinds, .sources { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds li {
  padding: 7px 13px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  color: var(--text); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.kinds li:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--c) 22%, transparent); }
.kinds li.more { --c: #8b5cf6; color: var(--muted); border-style: dashed; animation: breathe-soft 2.6s ease-in-out infinite; }
@keyframes breathe-soft { 50% { opacity: 0.55; } }
.sources li {
  font: 600 0.84rem var(--display); letter-spacing: -0.01em; padding: 6px 12px; border-radius: 9px;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.sources li:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.in-view .sources li { animation: pop-in 0.5s var(--ease) both; }
.in-view .sources li:nth-child(n) { animation-delay: calc(var(--n, 0) * 50ms); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.92); } }
.ml-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.ml-note b { color: var(--text); font-weight: 600; }
.ml-app {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,164,36,0.12), rgba(255,255,255,0.02)); border: 1px solid rgba(255,164,36,0.3);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.ml-app:hover { transform: translateY(-3px); border-color: #ffa424; }
.ml-app img { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6)); }
.ml-app span { font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.ml-app b { display: block; color: var(--text); font: 600 0.98rem var(--display); }

/* NestCast: a PC serving to a TV */
.p-nc { --accent: #ffa424; }
.nc-visual { min-height: 620px; }
/* The real NestCast Server window, front left; the TV sits behind it, bottom right. */
.nc-server {
  position: absolute; left: 0; top: 0; width: min(330px, 66%); z-index: 2; transform: translateZ(60px);
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 40px 80px -25px rgba(0,0,0,1), 0 0 60px -25px var(--accent); animation: float 7s ease-in-out infinite;
}
.nc-beam { position: absolute; left: 60%; top: 26%; width: 24%; height: 30%; overflow: visible; z-index: 1; }
.nc-beam path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 10; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--accent)); animation: beam 1.1s linear infinite; }
@keyframes beam { to { stroke-dashoffset: -24; } }
.nc-tv { position: absolute; right: 0; bottom: 2%; width: min(450px, 88%); transform: translateZ(30px); }
/* The TV app's own screens, stepping through like a remote is in use. */
.nc-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111216;
  border: 7px solid #1c1b22; box-shadow: 0 40px 90px -30px rgba(0,0,0,1), 0 0 80px -30px var(--accent);
}
.nc-stand { width: 26%; height: 10px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #1c1b22; }
@media (max-width: 640px) { .nc-visual { min-height: 440px; } .nc-server { width: 64%; } .nc-tv { width: 90%; } }

/* SailCue: the app in a browser window, its red-night theme floating in front. */
.p-sc { --accent: #2ec4b6; }
.sc-visual { min-height: 520px; }
.sc-desktop { position: absolute; left: 0; top: 6%; width: min(540px, 96%); z-index: 1; transform: translateZ(30px); }
.sc-red {
  position: absolute; right: 0; bottom: 4%; width: min(290px, 54%); z-index: 2; transform: translateZ(60px) rotate(-3deg);
  aspect-ratio: 16 / 10; object-fit: cover; object-position: left top;
  border-radius: 8px; border: 1px solid rgba(255,80,80,0.35);
  box-shadow: 0 40px 80px -25px rgba(0,0,0,1), 0 0 60px -20px #ff3b30;
}
@media (max-width: 640px) { .project-visual.sc-visual { min-height: 350px; } .sc-desktop { width: 100%; top: 0; } .sc-red { width: 52%; top: 205px; bottom: auto; } }

/* Sarmale: the game window, a folk rosette turning behind it, the cookbook page in front. */
.p-sa { --accent: #e8394d; }
.sa-visual { min-height: 540px; }
.sa-rosette {
  position: absolute; right: -6%; top: -4%; width: 46%; aspect-ratio: 1; border-radius: 50%; z-index: 0; opacity: 0.55;
  background: url(assets/sarmale-icon.png) center / cover;
  animation: sa-turn 40s linear infinite;
}
@keyframes sa-turn { to { transform: rotate(360deg); } }
.sa-window {
  position: absolute; left: 0; top: 8%; width: min(520px, 96%); z-index: 1; transform: translateZ(30px);
  border-radius: 10px; overflow: hidden; background: #1c1b22; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,1), 0 0 80px -30px var(--accent);
}
.sa-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font: 600 0.72rem var(--mono); color: rgba(255,255,255,0.5); }
.sa-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.sa-bar span { margin-left: 6px; }
.sa-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f2e6d0; }
.sa-page {
  position: absolute; right: 0; bottom: 2%; width: min(300px, 56%); z-index: 2; transform: translateZ(60px) rotate(3deg);
  aspect-ratio: 16 / 9; object-fit: cover; object-position: 100% 60%;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 40px 80px -25px rgba(0,0,0,1), 0 0 60px -25px var(--accent);
}
@media (max-width: 640px) { .project-visual.sa-visual { min-height: 330px; } .sa-window { width: 100%; top: 0; } .sa-page { width: 58%; top: 170px; bottom: auto; } }

/* What's new carousel */
.whatsnew { grid-column: 1 / -1; order: 3; position: relative; padding: 22px 24px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,0.22); overflow: hidden; }
.whatsnew:empty { display: none; }
.wn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wn-head h4 { margin: 0; font: 700 1.05rem var(--display); display: flex; align-items: center; gap: 8px; }
.wn-spark { color: var(--accent); display: inline-block; animation: twirl 4s var(--ease) infinite; }
.wn-source { font: 0.72rem var(--mono); color: var(--dim); }
.wn-nav { margin-left: auto; display: flex; gap: 6px; }
.wn-nav button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.wn-nav button:hover { color: var(--text); border-color: var(--accent); }
.wn-nav button:active { transform: scale(0.92); }
.wn-viewport { overflow: hidden; }
.wn-track { display: flex; transition: transform 0.7s var(--ease); }
.wn-slide { flex: 0 0 100%; padding-right: 4px; opacity: 0.25; transition: opacity 0.6s var(--ease); }
.wn-slide.current { opacity: 1; }
.wn-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wn-tag { font: 600 0.7rem var(--mono); padding: 3px 8px; border-radius: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.wn-date { font: 0.74rem var(--mono); color: var(--muted); }
.wn-new { font: 700 0.62rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; color: #0b0b12; background: #4ade80; }
.wn-title { margin: 0 0 10px; font: 600 1.15rem/1.35 var(--display); letter-spacing: -0.01em; }
.wn-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.wn-items li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.wn-items li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: 0.7; transform: rotate(45deg); }
.wn-slide.current .wn-items li { animation: wn-in 0.55s var(--ease) both; }
.wn-slide.current .wn-items li:nth-child(2) { animation-delay: 0.06s; } .wn-slide.current .wn-items li:nth-child(3) { animation-delay: 0.12s; }
.wn-slide.current .wn-items li:nth-child(4) { animation-delay: 0.18s; } .wn-slide.current .wn-items li:nth-child(5) { animation-delay: 0.24s; }
@keyframes wn-in { from { opacity: 0; transform: translateY(6px); } }
.wn-dots { display: flex; gap: 6px; margin-top: 16px; }
.wn-dots button { position: relative; flex: 1; max-width: 64px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.wn-dots button i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }
.wn-dots button.seen i { transform: scaleX(1); opacity: 0.45; }
.wn-dots button.on i { animation: wn-progress var(--wn-dur, 7s) linear forwards; opacity: 1; }
.whatsnew.paused .wn-dots button.on i { animation-play-state: paused; }
@keyframes wn-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.whatsnew.swap .wn-viewport { animation: wn-swap 0.5s var(--ease); }
@keyframes wn-swap { from { opacity: 0; transform: translateY(8px); } }

/* MediaLog: desktop window with a phone screenshot in front */
.ml-visual { min-height: 520px; }
.ml-desktop { position: relative; width: min(540px, 92%); margin-right: 8%; transform: rotateY(-8deg) rotateX(3deg); transition: transform 0.8s var(--ease); }
.ml-visual:hover .ml-desktop { transform: none; }
.ml-screen { aspect-ratio: 800 / 637; background: #0c0d12; }
.ml-phone {
  position: absolute; z-index: 3; transform: translateZ(120px); right: 0; bottom: 4%; width: 160px; aspect-ratio: 390 / 844; overflow: hidden;
  border-radius: 22px; border: 1px solid rgba(255,255,255,0.14); background: #0c0d12;
  box-shadow: 0 40px 80px -25px rgba(0,0,0,1), 0 0 60px -20px var(--accent);
  animation: float 6s ease-in-out infinite;
}
@media (max-width: 640px) { .ml-visual { min-height: 400px; } .ml-desktop { width: 100%; margin: 0 0 60px; } .ml-phone { width: 110px; border-radius: 16px; right: -4px; bottom: 0; } }

/* Box & Found: Free vs Premium */
.tiers { grid-column: 1 / -1; order: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.tier { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.tier-premium { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255,255,255,0.02) 55%); }
.tier-premium::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, var(--accent) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 6s linear infinite; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --spin: 360deg; } }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tier-head h4 { margin: 0; font: 700 1.5rem var(--display); letter-spacing: -0.02em; }
.tier-star { color: var(--accent); display: inline-block; animation: twirl 4s var(--ease) infinite; }
@keyframes twirl { 0%, 70% { transform: none; } 85% { transform: rotate(72deg) scale(1.3); } 100% { transform: rotate(144deg); } }
.tier-price { font: 500 0.78rem var(--mono); color: var(--muted); }
.tier-premium .tier-price { color: var(--accent); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { display: flex; gap: 14px; align-items: flex-start; opacity: 0; transform: translateX(-10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.tier.in .features li { opacity: 1; transform: none; }
.tier.in .features li:nth-child(2) { transition-delay: 0.08s; } .tier.in .features li:nth-child(3) { transition-delay: 0.16s; }
.tier.in .features li:nth-child(4) { transition-delay: 0.24s; } .tier.in .features li:nth-child(5) { transition-delay: 0.32s; } .tier.in .features li:nth-child(6) { transition-delay: 0.4s; }
.features b { display: block; font-weight: 600; font-size: 0.96rem; }
.features small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.f-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); }
.f-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tier-premium .f-ic { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.f-hero .f-ic { color: #0b0b12; background: var(--accent); box-shadow: 0 0 24px -4px var(--accent); }
.f-hero .f-ic svg { animation: sparkle 2.8s ease-in-out infinite; }
@keyframes sparkle { 50% { transform: scale(1.18) rotate(12deg); } }
/* Box Detective: the logo art leads the Premium card */
.detective {
  position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center;
  margin: 0 0 22px; padding: 14px 18px 14px 10px; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 50%, rgba(255, 196, 61, 0.16), transparent 60%), rgba(0,0,0,0.25);
  border: 1px solid rgba(255, 196, 61, 0.22);
}
.detective-art { position: relative; aspect-ratio: 1; }
.detective-art::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 50, 0.55), transparent 70%); filter: blur(18px); animation: glow 3.2s ease-in-out infinite; }
.detective-art img {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  /* The art sits on black; feather its square edge into the card. */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 68%, transparent 82%);
  mask-image: radial-gradient(circle at 50% 50%, #000 68%, transparent 82%);
  animation: sleuth 5s ease-in-out infinite; transform-origin: 50% 80%;
}
.detective:hover .detective-art img { animation-duration: 1.6s; }
@keyframes sleuth { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes glow { 50% { opacity: 0.55; transform: scale(1.12); } }
.detective-kicker { display: inline-block; font: 600 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: #ffc43d; margin-bottom: 6px; }
.detective p { margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 640px) { .detective { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 14px; } .detective-art { width: 170px; } }

.beta { font: 600 0.6rem var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; margin-left: 6px; border-radius: 5px; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); vertical-align: 2px; }

/* Site + social links */
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.site-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; margin-right: 6px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: #0b0b12; background: var(--accent); box-shadow: 0 8px 24px -10px var(--accent); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.site-link i { font-style: normal; transition: transform 0.35s var(--ease); }
.site-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--accent); }
.site-link:hover i { transform: translate(3px, -3px); }
.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); transition: color 0.3s, border-color 0.3s, transform 0.35s var(--ease), background 0.3s; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social:hover { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); transform: translateY(-3px) rotate(-6deg); }

/* Platform tabs */
.platforms { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 16px; }
.pf { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.pf.active { color: #0b0b12; }
.platforms .pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--accent); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.pf-panels { display: grid; }
.pf-panel { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.pf-panel.active { opacity: 1; transform: none; pointer-events: auto; }
.pf-panel p { color: var(--muted); margin: 0 0 14px; }

/* Visual column */
.project-visual { position: relative; display: grid; place-items: center; min-height: 560px; transform-style: preserve-3d; perspective: 1000px; }
.tilt { transition: transform 0.6s var(--ease); }
.phone {
  position: relative; width: 270px; height: 560px; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #2a2838, #111019); border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6) inset, 0 0 80px -30px var(--accent);
  animation: float 7s ease-in-out infinite; transform: translateZ(40px);
}
@keyframes float { 50% { translate: 0 -14px; } }
.phone-notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 82px; height: 22px; border-radius: 20px; background: #000; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #0b0b10; }

/* Box & Found mock */
.bf-screen { background: #f7f2ea; color: #2b2118; padding: 50px 14px 14px; font-size: 0.78rem; }
.bf-top { display: flex; justify-content: space-between; align-items: center; font: 700 1.15rem var(--display); margin-bottom: 12px; }
.bf-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; background: #D4760A; color: #fff; }
.bf-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); margin-bottom: 14px; min-height: 38px; }
.bf-search i { font-style: normal; color: #b08a5f; }
.caret { width: 1.5px; height: 14px; background: #D4760A; animation: blink 1s steps(2) infinite; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }
.bf-room { font: 700 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: #a0896e; margin: 12px 2px 6px; }
.bf-box { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; margin-bottom: 7px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.bf-box b { display: block; font-size: 0.82rem; }
.bf-box small { color: #9a8670; }
.bf-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #fbe9d3; font-size: 1rem; }
.bf-box em { margin-left: auto; font: 700 0.62rem var(--mono); font-style: normal; color: #fff; background: #D4760A; padding: 3px 7px; border-radius: 6px; opacity: 0; transform: scale(0.6); transition: 0.4s var(--ease); }
.bf-box.hit { box-shadow: 0 0 0 2px #D4760A, 0 10px 24px -8px rgba(212,118,10,0.6); transform: scale(1.03); }
.bf-box.hit em { opacity: 1; transform: none; }
.bf-fab { position: absolute; right: 16px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: #D4760A; box-shadow: 0 10px 24px -6px rgba(212,118,10,0.8); animation: fab 3s ease-in-out infinite; }
@keyframes fab { 50% { transform: scale(1.1) rotate(90deg); } }

.float-card {
  position: absolute; z-index: 4; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  padding: 12px 16px; border-radius: 16px; font-weight: 600; font-size: 0.86rem;
  background: rgba(22, 20, 34, 0.78); border: 1px solid var(--line); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9); transform: translateZ(90px);
}
.float-card span { grid-row: span 2; font-size: 1.3rem; }
.float-card small { color: var(--muted); font-weight: 400; font-size: 0.76rem; }
.fc-1 { top: 3%; left: -4%; animation: float 6s ease-in-out infinite 0.5s; }
.fc-2 { bottom: 16%; right: -3%; animation: float 8s ease-in-out infinite 1.2s; }
.fc-3 { bottom: 6%; left: 6%; animation: float 7s ease-in-out infinite; }
.qr { display: grid; grid-template-columns: repeat(3, 14px); gap: 4px; padding: 12px; }
.qr i { width: 14px; height: 14px; border-radius: 3px; background: var(--text); animation: qr 2.4s infinite; }
.qr i:nth-child(2n) { animation-delay: 0.4s; } .qr i:nth-child(3n) { animation-delay: 0.9s; } .qr i:nth-child(5) { background: var(--orange); }
@keyframes qr { 50% { opacity: 0.25; } }
.ss-rare { border-color: rgba(250, 204, 21, 0.5); }

/* StreetSeen: plain screenshots, fanned */
.fan { position: relative; width: 100%; height: 520px; display: grid; place-items: center; }
.fan img {
  position: absolute; width: 210px; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.95);
  transform: translateX(calc(var(--x) * 0.55)) rotate(calc(var(--r) * 0.4)) scale(0.92);
  opacity: 0; transition: transform 1.1s var(--ease), opacity 0.8s var(--ease), box-shadow 0.4s;
}
.fan img.front { z-index: 2; box-shadow: 0 40px 90px -25px rgba(0,0,0,1), 0 0 60px -20px var(--accent); }
.in-view .fan img { opacity: 1; transform: translateX(var(--x)) translateY(24px) rotate(var(--r)); }
.in-view .fan img.front { transform: translateY(-10px) scale(1.04); }
/* Five-card fan: smaller cards, depth by scale, staggered entrance */
.fan-5 img { width: 180px; }
.fan-5 img.mid { z-index: 1; }
.in-view .fan-5 img { transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r)) scale(var(--s)); }
.in-view .fan-5 img.front { transform: translateY(-10px) scale(1.04); }
.fan-5 img.mid { transition-delay: 0.08s; }
.fan-5 img:not(.mid):not(.front) { transition-delay: 0.16s; }
.fan img:hover { z-index: 3; transform: translateX(var(--x)) rotate(0deg) translateY(-18px) scale(1.06) !important; }

/* Box & Found: one device per platform */
.bf-visual { min-height: 600px; }
.device { position: absolute; opacity: 0; pointer-events: none; transform: translateY(30px) scale(0.94) rotateY(-12deg); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease); }
.device.active { opacity: 1; pointer-events: auto; transform: translateZ(40px); filter: none; }
.device.phone { animation: none; }
.device.phone.active { animation: float 7s ease-in-out infinite; }
.phone:not(.iphone) .screen { border-radius: 30px; }
.phone:not(.iphone)::before { content: ''; position: absolute; top: 20px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #000; z-index: 3; box-shadow: 0 0 0 2px #1b1a24; }
.browser {
  width: min(560px, 100%); border-radius: 14px; overflow: hidden;
  background: #17161f; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9), 0 0 90px -30px var(--accent);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1f1e29; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { flex: 1; margin-left: 10px; padding: 4px 12px; border-radius: 7px; background: rgba(255,255,255,0.06); font: 0.74rem var(--mono); color: var(--muted); text-align: center; }
.browser-screen { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; background: #f7f4ef; }
.shot-dots { position: absolute; bottom: 0; left: 50%; translate: -50% 0; display: flex; gap: 6px; }
.shot-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--dim); transition: width 0.4s var(--ease), background 0.4s; }
.shot-dots i.on { width: 20px; background: var(--accent); }

/* Cycling screenshots inside a device */
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 1.6s var(--ease); }
.shots img.active { opacity: 1; transform: none; }
.pipeline { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: step; }
.pipeline li { position: relative; font: 600 0.74rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 7px 12px; border-radius: 8px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); transition: all 0.4s var(--ease); }
.pipeline li.on { color: #0b0b12; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 20px -8px var(--accent); }

/* MediaLog */
.ml-stack { position: relative; width: 320px; height: 340px; }
.ml-card {
  position: absolute; left: 0; right: 0; top: calc(var(--i) * 74px);
  padding: 16px 18px; border-radius: 18px; background: rgba(24, 20, 40, 0.88); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.9);
  transform: translateX(calc(var(--i) * 14px)) translateZ(calc(var(--i) * 20px)); transition: transform 0.6s var(--ease);
}
.ml-stack:hover .ml-card { transform: translateX(calc(var(--i) * 22px)) translateY(calc(var(--i) * 6px)) translateZ(calc(var(--i) * 30px)); }
.ml-card b { display: block; font: 600 1rem var(--display); }
.ml-card small { color: var(--muted); font-size: 0.78rem; }
.ml-type { float: right; font: 600 0.62rem var(--mono); text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.ml-type.tv { color: #60a5fa; background: rgba(96,165,250,.14); }
.ml-type.book { color: #34d399; background: rgba(52,211,153,.14); }
.ml-type.game { color: #f472b6; background: rgba(244,114,182,.14); }
.ml-type.movie { color: #fbbf24; background: rgba(251,191,36,.14); }
.bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #ec4899); transition: width 1.6s var(--ease); }
.in-view .bar i { width: var(--w); }
.ml-card:nth-child(2) .bar i { transition-delay: 0.15s; } .ml-card:nth-child(3) .bar i { transition-delay: 0.3s; } .ml-card:nth-child(4) .bar i { transition-delay: 0.45s; }
.ml-timeline { position: absolute; right: -10px; bottom: 30px; padding: 14px 16px; border-radius: 16px; background: rgba(12,10,22,0.9); border: 1px solid var(--line); font: 0.72rem var(--mono); color: var(--muted); transform: translateZ(80px); animation: float 7s ease-in-out infinite 1s; }
.ml-timeline p { margin: 0; padding: 4px 0 4px 16px; position: relative; opacity: 0; transform: translateX(10px); transition: 0.6s var(--ease); }
.ml-timeline i { position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--violet); }
.in-view .ml-timeline p { opacity: 1; transform: none; }
.in-view .ml-timeline p:nth-child(2) { transition-delay: 0.6s; } .in-view .ml-timeline p:nth-child(3) { transition-delay: 1s; } .in-view .ml-timeline p:nth-child(1) { transition-delay: 0.2s; }

/* Star Wars crawl */
.crawl-wrap { position: relative; width: 100%; max-width: 460px; height: 460px; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid rgba(255,232,31,0.18); perspective: 320px; mask-image: linear-gradient(transparent 0%, #000 28%); }
.crawl-stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 60%, #fff, transparent), radial-gradient(1px 1px at 85% 20%, #fff, transparent), radial-gradient(1px 1px at 10% 85%, #fff, transparent), radial-gradient(1px 1px at 55% 15%, #fff, transparent); background-size: 200px 200px; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: 0.4; } }
.crawl { position: absolute; left: 12%; right: 12%; top: 100%; color: #ffe81f; text-align: justify; font: 600 1.15rem/1.5 var(--display); transform-origin: 50% 100%; transform: rotateX(28deg); animation: crawl 34s linear infinite; }
.crawl-ep, .crawl-title { text-align: center; margin: 0; }
.crawl-title { font-size: 1.7rem; margin-bottom: 18px; letter-spacing: 0.04em; }
@keyframes crawl { from { top: 100%; } to { top: -170%; } }

/* ───────── Timeline ───────── */
.timeline { position: relative; padding-left: 48px; max-width: 820px; }
.tl-line { position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl-line i { display: block; width: 100%; height: var(--fill, 0%); background: var(--grad); border-radius: inherit; box-shadow: 0 0 14px rgba(236,72,153,0.7); }
.tl-item { position: relative; padding: 0 0 48px; }
.tl-item::before { content: ''; position: absolute; left: -43px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); transition: all 0.5s var(--ease); }
.tl-item.in::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 6px rgba(255,138,61,0.15); }
.tl-item.now::before { animation: pulse 2s infinite; border-color: #22c55e; background: #22c55e; }
.tl-date { font: 500 0.78rem var(--mono); color: var(--orange); }
.tl-item h4 { font: 600 1.5rem var(--display); letter-spacing: -0.02em; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); margin: 0; }

/* ───────── Bento ───────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.4s; }
.tile:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); }
.t-wide { grid-column: span 2; }
.t-full { grid-column: 1 / -1; }
.tile h4 { font: 600 1.3rem var(--display); margin: 18px 0 8px; letter-spacing: -0.02em; }
.tile p { color: var(--muted); margin: 0; }
.t-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.25rem; background: var(--panel-2); border: 1px solid var(--line); }
.spot::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,138,61,0.12), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* ───────── More ───────── */
.more-group { margin-bottom: 52px; }
.more-title { display: flex; align-items: center; gap: 12px; font: 600 1.35rem var(--display); margin: 0 0 18px; }
.more-title span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; background: var(--panel-2); border: 1px solid var(--line); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mini { display: block; position: relative; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); transition: transform 0.4s var(--ease), border-color 0.3s; overflow: hidden; }
a.mini:hover { transform: translateY(-5px); border-color: var(--orange); }
.mini h5 { font: 600 1.1rem var(--display); margin: 0 0 4px; display: flex; justify-content: space-between; gap: 10px; }
.mini h5 i { font-style: normal; color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s; }
a.mini:hover h5 i { transform: translate(3px, -3px); color: var(--orange); }
.mini .sub { font: 0.76rem var(--mono); color: var(--orange); margin: 0 0 8px; }
.mini p { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.mini.empty { border-style: dashed; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.mini.empty .dots { display: flex; gap: 5px; }
.mini.empty .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: dot 1.4s infinite; }
.mini.empty .dots i:nth-child(2) { animation-delay: 0.2s; } .mini.empty .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 40% { background: var(--orange); transform: translateY(-4px); } }

/* ───────── Contact ───────── */
.contact { width: min(1180px, calc(100% - 32px)); margin: 80px auto 0; padding: 120px 0; text-align: center; border-top: 1px solid var(--line); }
.contact-title { font: 700 clamp(3rem, 10vw, 8.5rem)/0.92 var(--display); letter-spacing: -0.05em; margin: 0 0 24px; }
.contact-title span { display: block; }
.contact-title span:last-child { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
.contact > p { color: var(--muted); font-size: 1.1rem; margin: 0 0 36px; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.contact .kicker { margin-bottom: 20px; }

.footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--dim); font-size: 0.86rem; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; translate: -50% 0; padding: 12px 20px; border-radius: 999px; background: var(--text); color: #0b0b12; font-weight: 600; transform: translateY(140%); opacity: 0; transition: 0.5s var(--ease); }
.toast.show { transform: none; opacity: 1; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; text-align: left; }
  .orbit { max-width: 360px; order: -1; margin-top: 10px; }
  .r1 .sat { --orbit: calc(min(360px, 80vw) * 0.26); }
  .r2 .sat { --orbit: calc(min(360px, 80vw) * 0.39); }
  .r3 .sat { --orbit: calc(min(360px, 80vw) * 0.5); }
  .scroll-hint { display: none; }
  .project { grid-template-columns: 1fr; padding: 36px 24px; gap: 30px; }
  .project.reverse .project-copy { order: 0; }
  .project-visual { min-height: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bento, .tiers { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding-top: 90px; }
  .phone { width: 236px; height: 490px; }
  .float-card { font-size: 0.76rem; padding: 10px 12px; }
  .fc-1 { left: -4px; } .fc-2 { right: -4px; }
  .ml-stack { width: 280px; }
  .ml-timeline { right: 0; bottom: 0; }
  .crawl-wrap { height: 400px; }
  .fan { height: 440px; }
  .fan img { width: 170px; }
  .fan-5 img { width: 118px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .crawl { animation: none; top: 10%; transform: none; }
  .crawl-wrap { mask-image: none; overflow-y: auto; }
}
