/* Pulsar site: landing and contact pages. The app itself lives in /app/. */
:root {
  --void: #03060d;
  --deep: #070d1a;
  --panel: #0b1322;
  --ink: #eef2fa;
  --muted: #8d9ab0;
  --faint: #56627a;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --accent: #7cc4ff;
  --accent-ink: #04111f;
  --signal: #ff7a3d;
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- type ---------- */
.label { font: 600 12.5px/1 var(--display); font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.h2 { font: 800 clamp(34px, 5vw, 64px)/1.02 var(--display); font-stretch: 112%; letter-spacing: -.01em; margin: 18px 0 0; text-wrap: balance; }
.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; margin: 20px 0 0; }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; padding: 17px 28px; border: 1px solid var(--accent); border-radius: 999px; font: 700 13.5px/1 var(--display); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--accent); background: transparent; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn.solid { background: var(--accent); color: var(--accent-ink); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--void); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(3, 6, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { font: 800 18px/1 var(--display); font-stretch: 125%; letter-spacing: .2em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font: 600 12.5px/1 var(--display); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--ink); }
.nav .btn { padding: 12px 20px; font-size: 12px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .nav .btn { padding: 11px 16px; letter-spacing: .14em; } .nav .btn .long { display: none; } }

/* ---------- hero ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 56px; overflow: hidden;
  background: radial-gradient(70% 80% at 78% 40%, rgba(18, 34, 66, .5) 0, transparent 60%); }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); }
.horizon img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; opacity: .75; animation: drift 40s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--void)); z-index: -1; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; width: 100%; }
.hero-copy { min-width: 0; }
.event { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 9px 16px 9px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 12px/1.2 var(--display); font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.event i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 122, 61, .6); animation: ping 2.4s infinite; }
.event span { color: var(--muted); }
.word { position: relative; z-index: 1; width: fit-content; margin: 26px 0 0; font: 900 clamp(50px, 16vw, 172px)/.86 var(--display); font-stretch: 125%; letter-spacing: .015em; }
.word .trace { position: absolute; left: 0; bottom: -.16em; height: .26em; width: 100%; overflow: visible; }
.word .trace path { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.6s .5s cubic-bezier(.6, .1, .2, 1) forwards; vector-effect: non-scaling-stroke; }
.tagline { margin: 52px 0 0; font: 700 clamp(26px, 3.3vw, 46px)/1.08 var(--display); font-stretch: 105%; letter-spacing: -.01em; max-width: 15em; text-wrap: balance; }
.tagline em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 16px; max-width: 30em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; list-style: none; font: 600 11.5px/1 var(--display); font-stretch: 118%; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* animated pulsar */
.orb { position: relative; min-width: 0; justify-self: center; width: min(100%, 520px); aspect-ratio: 1; }
.orb svg { width: 100%; height: 100%; overflow: visible; }
.orb .beams { transform-origin: 256px 256px; animation: spin 14s linear infinite; }
.orb .halo { transform-origin: 256px 256px; animation: halo 3.2s ease-in-out infinite; }
.orb .beat { stroke-dasharray: 900; stroke-dashoffset: 900; animation: beat 3.2s cubic-bezier(.5, 0, .3, 1) infinite; }
.alert { position: absolute; left: -6%; bottom: 8%; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(11, 19, 34, .86); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: float 6s ease-in-out infinite; max-width: 92%; }
.alert .dot { width: 10px; height: 10px; border-radius: 50%; background: #f3b53f; flex: none; box-shadow: 0 0 14px #f3b53f; }
.alert b { display: block; font: 700 15px/1.25 var(--body); }
.alert small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .hero { align-items: flex-start; padding-top: 104px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .orb { position: absolute; top: -30px; right: -120px; width: 340px; opacity: .55; z-index: -1; }
  .orb .trace-line { display: none; }
  .horizon { height: 40%; }
  .alert { display: none; }
  .tagline { margin-top: 44px; }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: rgba(7, 13, 26, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ticker div { display: flex; width: max-content; animation: flow 38s linear infinite; }
.ticker span { font: 800 clamp(20px, 2.4vw, 30px)/1 var(--display); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding-right: 48px; color: var(--ink); }
.ticker span::after { content: "✦"; color: var(--signal); margin-left: 48px; font-size: .7em; vertical-align: .2em; }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }

/* ---------- sections ---------- */
.sec { padding: clamp(96px, 14vw, 180px) 0; }
.sec + .sec { padding-top: 0; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.phone { margin: 0; }
.phone:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); }
.phone .screen { position: relative; aspect-ratio: 390 / 600; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #1b2740, #070c17); border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(124, 196, 255, .06) inset; animation: float 7s ease-in-out infinite; transition: transform .3s; }
.phone:nth-child(2) .screen { animation-delay: -2.3s; }
.phone:nth-child(3) .screen { animation-delay: -4.6s; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.phone .screen::after { content: ""; position: absolute; inset: 9px; border-radius: 26px; background: linear-gradient(to bottom, transparent 70%, rgba(3, 6, 13, .85)); pointer-events: none; }
.phone figcaption { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; }
.phone .n { font: 900 clamp(34px, 3.4vw, 48px)/1 var(--display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.2px var(--accent); }
.phone b { font: 800 clamp(18px, 1.8vw, 24px)/1.15 var(--display); font-stretch: 112%; }
@media (max-width: 800px) {
  .phones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; margin-right: calc(-1 * max(20px, env(safe-area-inset-right, 0px))); padding-right: 20px; }
  .phone { scroll-snap-align: start; }
  .phone:nth-child(2) { margin-top: 0; }
}

/* full-bleed photo band */
.band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 15vw, 200px) 0; }
.band > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; opacity: .8; will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--void), rgba(3, 6, 13, .35) 30%, rgba(3, 6, 13, .55) 70%, var(--void)), linear-gradient(to right, rgba(3, 6, 13, .8), transparent 70%); }
.delay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.big { font: 900 clamp(46px, 7.4vw, 108px)/.95 var(--display); font-stretch: 118%; letter-spacing: -.01em; margin: 18px 0 0; text-wrap: balance; }
.big em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.legs { list-style: none; margin: 0; padding: 0; }
.legs li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.legs li:first-child { border-top: 1px solid var(--line); }
.legs span { font: 600 13px/1 var(--display); font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.legs b { font: 800 clamp(26px, 3vw, 40px)/1 var(--display); font-stretch: 112%; }
.legs li:last-child b { color: var(--signal); }
.legs-note { color: var(--faint); font-size: 14px; margin: 16px 0 0; }
.delay .big { font-size: clamp(42px, 5.4vw, 80px); }
@media (max-width: 800px) { .delay { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.stat b { display: block; white-space: nowrap; font: 900 clamp(56px, 7vw, 100px)/.9 var(--display); font-stretch: 118%; color: var(--accent); }
.stat span { display: block; margin-top: 16px; color: var(--muted); max-width: 18em; }
.fine { color: var(--faint); font-size: 14px; margin: 40px 0 0; max-width: 46em; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } }

.demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.demo video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; border: 1px solid var(--line-2); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }

.end { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(110px, 15vw, 200px) 0 clamp(150px, 20vw, 260px); }
.end .horizon { height: 75%; }
.end .horizon img { opacity: .55; }
.end .big { margin: 18px auto 0; max-width: 11em; }
.end .ctas { justify-content: center; margin-top: 44px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.foot nav a { font: 600 12px/1 var(--display); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.foot nav a:hover { color: var(--accent); }
.foot p { margin: 14px 0 0; max-width: 44em; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 clamp(72px, 9vw, 120px); background: radial-gradient(60% 70% at 85% 30%, rgba(18, 34, 66, .5) 0, transparent 65%); }
.rings { position: absolute; z-index: -1; left: -12%; top: 4%; width: min(900px, 120vw); aspect-ratio: 1; pointer-events: none; opacity: .7; }
.rings ellipse { fill: none; stroke: var(--accent); transform-origin: 50% 50%; }
.rings .r1 { stroke-opacity: .28; animation: spin 60s linear infinite; }
.rings .r2 { stroke-opacity: .16; stroke-dasharray: 3 9; animation: spin 90s linear infinite reverse; }
.rings .r3 { stroke-opacity: .1; animation: spin 120s linear infinite; }
.rings circle { fill: var(--signal); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.page-hero h1 { font: 900 clamp(52px, 7.6vw, 112px)/.92 var(--display); font-stretch: 118%; letter-spacing: -.01em; margin: 22px 0 0; text-wrap: balance; }
.photo { position: relative; margin: 0; transition: transform .25s ease-out; }
.photo::before { content: ""; position: absolute; inset: -14%; z-index: -1; background: radial-gradient(closest-side, rgba(124, 196, 255, .22), transparent); animation: halo 6s ease-in-out infinite; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.photo figcaption { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 16px; border-radius: 14px; background: rgba(3, 6, 13, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); }
.photo figcaption b { font: 800 14px/1.3 var(--display); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; }
.photo figcaption span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .page-hero { padding-top: 116px; } .page-hero .wrap { grid-template-columns: 1fr; } }

.touch { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--line-2); }
.touch::before { content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; translate: -50% -50%; background: conic-gradient(from 0deg, transparent 0 62%, rgba(124, 196, 255, .9) 78%, rgba(255, 122, 61, .8) 84%, transparent 92%); animation: spin 7s linear infinite; }
.touch::after { content: ""; position: absolute; z-index: -1; inset: 1.5px; border-radius: 27px; background: linear-gradient(160deg, var(--panel), var(--deep)); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 18px 24px; border: 1px solid var(--accent); border-radius: 22px; font: 700 clamp(17px, 1.8vw, 22px)/1.3 var(--display); font-stretch: 105%; text-decoration: none; color: var(--ink); transition: background .25s, color .25s; }
.mail a:hover { background: var(--accent); color: var(--accent-ink); }
.copy { border: 1px solid var(--line-2); background: none; color: var(--muted); border-radius: 999px; padding: 10px 16px; font: 600 11.5px/1 var(--display); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--ink); }
.touch .ctas { margin-top: 20px; }
@media (max-width: 860px) { .touch { grid-template-columns: 1fr; } }

.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 72px); }
.mate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; border-top: 1px solid var(--line-2); padding-top: 30px; }
.face { position: relative; width: clamp(104px, 11vw, 148px); aspect-ratio: 1; }
.face::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(124, 196, 255, .45); animation: spin 40s linear infinite; }
.face::after { content: ""; position: absolute; top: 4%; right: 2%; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--void); }
.face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 1px solid var(--line-2); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.links a { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 11.5px/1 var(--display); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.links a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mate h3 { font: 900 clamp(40px, 5vw, 64px)/1 var(--display); font-stretch: 125%; margin: 0; }
.mate .role { margin-top: 14px; }
.mate p { color: var(--muted); margin: 12px 0 0; max-width: 26em; }
.mate p.role { max-width: none; color: var(--accent); }
@media (max-width: 960px) { .crew { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .mate { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.js .rise { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .rise.in { opacity: 1; transform: none; }
.load { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes beat { 0% { stroke-dashoffset: 900; } 45%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 61, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 122, 61, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes flow { to { transform: translateX(-50%); } }
@keyframes drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.12) translateX(1%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rise { opacity: 1; transform: none; }
  .orb .beat, .word .trace path { stroke-dashoffset: 0; }
}

/* ---------- phone overrides (kept last so they win) ---------- */
@media (max-width: 520px) {
  .ctas .btn { flex: 1 1 100%; justify-content: center; letter-spacing: .14em; }
  .event { flex-wrap: nowrap; font-size: 11px; letter-spacing: .1em; }
  .event span { display: none; }
}
@media (max-width: 860px) {
  .photo figcaption { position: static; margin-top: 12px; }
}
