:root{
  --ink: #f4f1ff;
  --muted: rgba(244, 241, 255, 0.78);

  --navy: #070a22;
  --deep: #0b1033;
  --purple: #7a3cff;
  --purple2: #b08cff;

  --glass: rgba(7, 10, 34, 0.62);
  --glass2: rgba(15, 18, 50, 0.55);
  --stroke: rgba(176, 140, 255, 0.32);
  --shadow: rgba(0, 0, 0, 0.45);

  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

/* Smooth scrolling for in-page anchor links */
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  font-family: "Inconsolata", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
}

/* Only hide the cursor on devices that actually have a mouse */
@media (hover: hover) and (pointer: fine){
  body{ cursor: none; }
}

a { color: inherit; text-decoration: none; }

/* ---------- Start animation (intro overlay) ---------- */
.intro{
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(122,60,255,0.35), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(176,140,255,0.22), transparent 60%),
    linear-gradient(to bottom, rgba(7,10,34,0.96), rgba(7,10,34,0.86));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: introFade 1.6s ease forwards;
}

.intro__inner{
  text-align: center;
  padding: 22px 20px;
}

.intro__logo{
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: lowercase;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.0;
  transform: translateY(10px);
  opacity: 0;
  animation: introPop 900ms cubic-bezier(.2,.9,.2,1) 180ms forwards;
}

.intro__sub{
  margin-top: 10px;
  color: rgba(176,140,255,0.92);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  animation: introPop 900ms cubic-bezier(.2,.9,.2,1) 300ms forwards;
}

.intro__bar{
  width: min(420px, 70vw);
  height: 2px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: rgba(176,140,255,0.25);
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: introBarIn 500ms ease 420ms forwards;
}

.intro__bar::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(122,60,255,0.2), rgba(176,140,255,0.95), rgba(122,60,255,0.2));
  transform: translateX(-70%);
  animation: introBarMove 1100ms ease 520ms forwards;
}

.intro--hide{
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}

@keyframes introFade{
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes introPop{
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introBarIn{
  to { opacity: 1; }
}

@keyframes introBarMove{
  to { transform: translateX(70%); }
}

/* optional: stop movement for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .intro, .intro__logo, .intro__sub, .intro__bar, .intro__bar::after{
    animation: none !important;
  }
  .intro{ display:none; }
}

/* ---------- Background video (pixel-art loop) ---------- */
.bg-video{
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}

/* optional: make pixels look chunkier on some videos */
.bg-video{
  image-rendering: pixelated;
}

/* Fallback (shows if video fails to load) */
.bg-fallback{
  position: fixed;
  inset: 0;
  z-index: -4;
  background: radial-gradient(900px 500px at 50% 30%, rgba(122,60,255,0.25), transparent 60%),
              linear-gradient(to bottom, rgba(7,10,34,0.95), rgba(7,10,34,0.75));
}

/* subtle overlay vignette */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(122,60,255,0.35), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(176,140,255,0.22), transparent 60%),
    radial-gradient(1200px 700px at 50% 100%, rgba(0,0,0,0.55), transparent 60%),
    linear-gradient(to bottom, rgba(7,10,34,0.55), rgba(7,10,34,0.35));
  pointer-events: none;
}

/* ---------- Layout ---------- */
.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.glass{
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 60px var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
}

.section{
  padding: 26px;
  margin: 18px 0;
}

.section__title{
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.muted{ color: var(--muted); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(7,10,34,0.40);
  border-bottom: 1px solid rgba(176,140,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand__mark{
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: var(--ink);
}

/* ---------- Header nav (dropdown on ALL screen sizes) ---------- */
.nav{
  position: absolute;
  top: calc(100% + 10px);
  right: 20px;
  left: 20px;
  z-index: 60;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px;

  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 60px var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;

  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav[data-open="true"]{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__link{
  width: 100%;
  text-align: left;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(176,140,255,0.22);
  background: rgba(7,10,34,0.35);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav__link:hover{
  transform: translateY(-1px);
  border-color: rgba(176,140,255,0.55);
  background: rgba(122,60,255,0.18);
}

/* ---------- Dropdown toggle button ---------- */
.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;
}

.nav-toggle{
  display: inline-flex;
  width: 44px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(176,140,255,0.22);
  background: rgba(7,10,34,0.35);
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle__icon{
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.92;
}

/* prevent sticky header from being covered */
.site-header{ overflow: visible; }

/* ---------- Hero ---------- */
.hero{
  padding: 26px 0 8px;
}

.hero__card{
  padding: 34px 28px;
}

.eyebrow{
  margin: 0 0 10px;
  color: rgba(176,140,255,0.9);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 13px;
}

.title{
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.0;
}

.subtitle{
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 60ch;
}

.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.hero__meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill{
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(176,140,255,0.22);
  background: rgba(0,0,0,0.18);
}

/* ---------- Buttons / Links ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(176,140,255,0.28);
  font-weight: 700;
  letter-spacing: 0.4px;

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(176,140,255,0.58);
}

.btn--primary{
  background: linear-gradient(135deg, rgba(122,60,255,0.95), rgba(176,140,255,0.60));
  box-shadow: 0 14px 40px rgba(122,60,255,0.25);
}

.btn--ghost{
  background: rgba(7,10,34,0.25);
}

.link-ish{
  border-bottom: 1px solid rgba(176,140,255,0.0);
}
.link-ish:hover{
  border-bottom-color: rgba(176,140,255,0.7);
}

/* ---------- Content ---------- */
.prose p{
  margin: 0 0 12px;
  color: rgba(244,241,255,0.88);
  line-height: 1.6;
}

.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(176,140,255,0.18);
  background: rgba(0,0,0,0.18);
}

.card h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.card p{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: rgba(244,241,255,0.86);
}

.hire{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.hire__box{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(176,140,255,0.18);
  background: rgba(0,0,0,0.18);
}

.hire__box h3{ margin: 0 0 8px; }
.hire__box p{ margin: 0 0 12px; color: var(--muted); line-height: 1.55; }

.contact-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-email{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.fineprint{
  margin-top: 14px;
  color: rgba(244,241,255,0.70);
  font-size: 14px;
}

.footer{
  padding: 22px 0 60px;
  text-align: center;
  color: rgba(244,241,255,0.65);
}

/* ---------- Custom Cursor ---------- */
.cursor{
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border:  2px solid rgba(244,241,255,0.85);
  background: rgba(122,60,255,0.08);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease, width 180ms ease, height 180ms ease, border-radius 180ms ease, background 180ms ease;
}

/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse){
  .cursor{ display:none; }
}

.cursor--on{ opacity: 1; }

.cursor__text{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(244,241,255,0.92);
  opacity: 0;
  transform: translateY(1px);
  transition: opacity 160ms ease;
  user-select: none;
}

.cursor--click{
  width: 64px;
  height: 28px;
  border-radius: 999px;
  background: rgba(122,60,255,0.28);
  border-color: rgba(176,140,255,0.85);
}

.cursor--click .cursor__text{
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px){
  .grid{ grid-template-columns: 1fr; }
  .hire{ grid-template-columns: 1fr; }
  .hero__card{ padding: 26px 18px; }
}

/* Extra-small phones */
@media (max-width: 420px){
  .container{ width: min(var(--max), calc(100% - 28px)); }
  .section{ padding: 20px; }
  .title{ font-size: 42px; }
  .subtitle{ font-size: 16px; }
  .pill{ font-size: 13px; padding: 7px 9px; }
  .btn{ width: 100%; }
  .hero__actions{ flex-direction: column; align-items: stretch; }
  .contact-row{ flex-direction: column; align-items: stretch; }
}